Пример #1
0
        protected override void OnInit()
        {
            _headerText = UiLabels.HeaderLabel("Options", Color.White);
            Add(UiButtons.Back(() => Scene.NavigateTo(CurrentGameState.CurrentLocation)));

            _startingY = UI.OfScreenHeight(0.15f);
            AddGameplayOptions();
            AddDisplayOptions();
            AddAudioOptions();
            AddResetControls();
        }
Пример #2
0
 protected override void OnInit()
 {
     Add(UiButtons.Back(() => Scene.NavigateTo(GameResources.DilemmasSceneName)));
     _header = UiLabels.FullWidthHeaderLabel(_dilemmaDescription, Color.White);
     _deductions.ForEachIndex((d, i) =>
     {
         var position = Position(i);
         var button   = d.CreateButton(position);
         AddUi(button);
         AddVisual(button);
         if (d.IsNew)
         {
             AddVisual(d.CreateNewIndicator(position));
         }
     });
 }
Пример #3
0
        protected override void OnInit()
        {
            Audio.PlayMusic("Pondering", 0.78f);
            _header = UiLabels.FullWidthHeaderLabel("Current Investigation", Color.White);

            Add(UiButtons.Back(() => Scene.NavigateTo(CurrentGameState.CurrentLocation)));
            if (GameObjects.Dilemmas.HasTheory)
            {
                Add(UiButtons.MenuRed("Resolve", new Vector2(UI.OfScreenWidth(0.5f) - 180, 980), () => Scene.NavigateTo(GameResources.EndingSceneName)));
            }

            GameObjects.Dilemmas.GetActiveDilemmas().ForEach(d =>
            {
                Add(d.CreateButton());
                d.GetVisuals().ForEach(AddVisual);
            });
            Add(new DilemmasTutorial());
        }