public DomainNodeRenderer(ConversationNode node, PointF p, Func <Id <LocalizedStringType>, Id <LocalizedText>, string> localizer) : base(node, p) { m_titleSection = new TitleSection(node); m_outputsSection = new OutputsSection(node); m_parametersSection = new ParametersSection(node, localizer); }
private void LoadGameUI() //Change to the Load Game UI { LoadUI.SetActive(true); LoadUI.GetComponent <SaveUI>().Select(1); state = TitleSection.load; }
public EditableUI(ConversationNode node, PointF p, Func <Id <LocalizedStringType>, Id <LocalizedText>, string> localizer) : base(node, p) { m_titleSection = new TitleSection(node); //m_descriptionSection = new DescriptionSection(node); m_outputsSection = new OutputsSection(node); m_parametersSection = new ParametersSection(node, localizer, ShouldRender); m_rounded = RoundedConfig.TryGet(Node.Data.Config) ?? false; }
// Update is called once per frame void Update() { switch (state) { case TitleSection.main: CheckMain(); break; case TitleSection.load: if (Input.GetKeyDown(KeyCode.X)) { state = TitleSection.main; LoadUI.SetActive(false); } break; } }
// Use this for initialization void Start() { //set initializ position depends on if there are save file exists state = TitleSection.main; Select(1); }