public override void DrawMe() { InventoryBox.DrawMe(); if (ItemGrid.IsClicked()) { _maestro.PlayOneShot(ButtonSound); _currentItem = (InventoryItem)ItemGrid.SelectedObject; LoadItemInCommandBar(_currentItem); } CommandBar.DrawMe(); ItemInfoLabel.DrawMe(); if (EquipItemButton.IsClicked()) { _maestro.PlayOneShot(ButtonSound); _controller.EquipItem(_currentItem); } if (UseItemButton.IsClicked()) { _maestro.PlayOneShot(ButtonSound); _controller.UseItem(_currentItem); } }
/// <summary> /// Determines whether the message box is clicked. /// </summary> /// <returns> /// <c>true</c> if this instance is clicked; otherwise, <c>false</c>. /// </returns> public bool IsClicked() { background.DrawMe(); message.DrawMe(); return(okButton.IsClicked()); }
public override void DrawMe() { EquipmentBox.DrawMe(); ArmorIcon.DrawMe(); WeaponIcon.DrawMe(); AccessoryIcon.DrawMe(); ArmorLabel.DrawMe(); WeaponLabel.DrawMe(); AccessoryLabel.DrawMe(); if (ChangeWeapon.IsClicked()) { _maestro.PlayOneShot(ButtonSound); _controller.OpenFilteredItems(ItemType.Weapon); } if (ChangeArmor.IsClicked()) { _maestro.PlayOneShot(ButtonSound); _controller.OpenFilteredItems(ItemType.Armor); } if (ChangeAccessory.IsClicked()) { _maestro.PlayOneShot(ButtonSound); _controller.OpenFilteredItems(ItemType.Accessory); } }
public override void DrawMe() { Background.DrawMe(); SpeakerName.DrawMe(); SpeakerText.DrawMe(); if (_currentContent == null) { return; } for (int i = 0; i < AdvanceButtons.Count; i++) { if (i >= _currentContent.Options.Count) { return; } AsvarduilButton button = AdvanceButtons[i]; if ((button.IsClicked() || _control.GetAxisDown(button.ActivationAxis)) && Time.time >= _lastAdvance + AdvanceLockout) { _dialogueController.AdvanceThread(_currentContent.Options[i].TargetID); break; } } }
public override void DrawMe() { GUI.skin = Skin; Background.DrawMe(); QuestTitle.DrawMe(); QuestDetails.DrawMe(); }
public override void DrawMe() { PartySelectBox.DrawMe(); MemberNameLabel.DrawMe(); if (NextButton.IsClicked()) { _controller.ChangeMember(1); } if (LastButton.IsClicked()) { _controller.ChangeMember(-1); } }
public override void DrawMe() { GUI.skin = Skin; Background.DrawMe(); if (Skills.IsClicked()) { _maestro.PlayOneShot(ButtonSound); _currentAbility = (Ability)Skills.SelectedObject; LoadAbilityDetails(_currentAbility); } CommandBar.DrawMe(); DetailLabel.DrawMe(); }
public override void DrawMe() { GUI.skin = skin; Background.DrawMe(); ThanksHeader.DrawMe(); ThanksContributors.DrawMe(); SpecialThanksHeader.DrawMe(); SpecialThanksContributors.DrawMe(); _backClicked = BackButton.IsClicked(); if (_backClicked) { _maestro.PlaySoundEffect(buttonSound); } }
public override void DrawMe() { StatViewBox.DrawMe(); HealthIcon.DrawMe(); HealthLabel.DrawMe(); MagicIcon.DrawMe(); AttackIcon.DrawMe(); MaxAtbIcon.DrawMe(); AtbSpeedIcon.DrawMe(); MagicLabel.DrawMe(); AttackLabel.DrawMe(); MaxAtbLabel.DrawMe(); AtbSpeedLabel.DrawMe(); }
public void OnGUI() { switch (_Phase) { case SpeechPhase.CanTalk: GUI.skin = MapSkin; if (SpeechNotice.IsClicked()) { _Maestro.PlaySoundEffect(ButtonSound); _Phase = SpeechPhase.Conversation; _DialogueIndex = _DialogueStartIndex; TransitionTextbox(); } break; case SpeechPhase.Conversation: GUI.skin = DialogueSkin; TextBackground.DrawMe(); Speaker.DrawMe(); Content.DrawMe(); for (int i = 0; i < DialogueLines[_DialogueIndex].Buttons.Count; i++) { DialogueButton button = DialogueLines[_DialogueIndex].Buttons[i]; if (button.Button.IsClicked()) { _Maestro.PlaySoundEffect(ButtonSound); _DialogueIndex = button.DialogueIndex; _DialogueStartIndex = button.NewDialogueStartIndex; TransitionTextbox(); } } break; default: break; } }
public float IsMoved() { if (!IsInteractable) { return(Value); } Label.DrawMe(); GUI.depth = Layer; GUI.color = Tint; Rect sliderRect = GetElementRect(Dimensions); if (IsHorizontal) { Value = GUI.HorizontalSlider(sliderRect, Value, MinValue, MaxValue); return(Value); } Value = GUI.VerticalSlider(sliderRect, Value, MaxValue, MinValue); return(Value); }
public void OnGUI() { if (!DialogueAvailable) { return; } GUI.skin = skin; Background.DrawMe(); SpeakerName.DrawMe(); SpeakerText.DrawMe(); bool userWantsToAdvance = NextButton.IsClicked() || Input.GetButtonUp("Interact"); if (Time.time >= _nextAdvance && userWantsToAdvance) { DialogueText text = _currentThread.AdvanceSpeakerText(); if (text != default(DialogueText)) { PresentLine(text); } if (_currentThread.TextExhausted) { if (DebugMode) { Debug.Log("Dialog text is exhausted."); } PlayerHasControl(true); HideElements(); } } }
public virtual void DrawMe() { Background.DrawMe(); WindowName.DrawMe(); }