Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 private void LoadGameUI()
 //Change to the Load Game UI
 {
     LoadUI.SetActive(true);
     LoadUI.GetComponent <SaveUI>().Select(1);
     state = TitleSection.load;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
    // 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;
        }
    }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     //set initializ position depends on if there are save file exists
     state = TitleSection.main;
     Select(1);
 }