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(); }
private void InitUiElements() { _subview = new NoSubView(); _objectives = new ObjectivesView(); _objectives.Init(); _investigateRoomBranch = new ClickUIBranch("Location Investigation", 1); _locationNameLabel = UiLabels.HeaderLabel(_location.Name, Color.White); _clickUi = new ClickUI(); _tutorialBranch = new ClickUIBranch("Tutorial", 25); _tutorialBranch.Add(_objectives.TutorialButton); _clickUi.Add(_tutorialBranch); }