Example #1
0
 protected override void InitBindings()
 {
     ButtonChoose.SetOnClickCommand(ViewModel.AskUserAboutFancyThingsCommand);
     ButtonShow.SetOnClickCommand(ViewModel.ShowLastFanciedThingCommand);
     ButtonNavigate.SetOnClickCommand(ViewModel.NavigateSomewhereElseCommand);
     ButtonReset.SetOnClickCommand(ViewModel.ResetFanciness);
     ButtonDialog.SetOnClickCommand(ViewModel.ShowDialogCommand);
     ButtonDialogB.SetOnClickCommand(ViewModel.ShowDialogBCommand);
     ButtonInput.SetOnClickCommand(ViewModel.InputFanciness);
     FancyLoading.SetOnClickCommand(ViewModel.ShowLoadingDialogCommand);
 }
Example #2
0
        private void ShowQuestion()
        {
            TextBoxQ.Text         = "";
            TextBoxA.Text         = "";
            AnswerPanel.IsEnabled = false;

            if (Logic.CurrentMemo == null)
            {
                return;
            }

            TextBoxQ.Text            = $"\r\n{Logic.CurrentMemo.Question}";
            LabelLevelValue.Content  = Logic.CurrentMemo.PostponeLevel.ToString();
            LabelScoresValue.Content = Logic.CurrentMemo.Scores.ToString();
            ButtonShow.Focus();
        }
Example #3
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Debug.Log("Duplicate Found!");
         Destroy(gameObject);
     }
     DontDestroyOnLoad(gameObject);
     if (!anim.gameObject.activeSelf)
     {
         anim.gameObject.SetActive(true);
     }
 }