/// <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 void OnGUI()
    {
        GUI.skin = Skin;

        YouWinPane.DrawMe();

        if (TitleButton.IsClicked())
        {
            StartCoroutine(ReturnToTitle());
        }
    }
Beispiel #4
0
    public override void DrawMe()
    {
        GUI.skin = Skin;

        Background.DrawMe();
        WorldMapPane.DrawMe();
        SidescrollingPane.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 override void DrawMe()
    {
        Background.DrawMe();

        if (EquipmentButton.IsClicked())
        {
            DebugMessage("The user is viewing stats and equipment...");
            _maestro.PlayOneShot(ButtonSound);
            _controller.OpenEquipment();
        }

        if (ItemsButton.IsClicked())
        {
            DebugMessage("The user is viewing inventory...");
            _maestro.PlayOneShot(ButtonSound);
            _controller.OpenItems();
        }

        if (MagicButton.IsClicked())
        {
            DebugMessage("The user is viewing available magic...");
            _maestro.PlayOneShot(ButtonSound);
            _controller.OpenMagic();
        }

        if (ResumeButton.IsClicked())
        {
            DebugMessage("The user is resuming play...");
            _maestro.PlayOneShot(ButtonSound);
            _controller.Unpause();
        }

        if (SaveButton.IsClicked())
        {
            DebugMessage("The user is saving the game...");
            // TODO: Implement state save
        }

        if (SettingsButton.IsClicked())
        {
            DebugMessage("The user is accessing Settings...");
            _maestro.PlayOneShot(ButtonSound);
            _controller.OpenSettings();
        }
    }
Beispiel #7
0
    public override void DrawMe()
    {
        GUI.skin = Skin;

        SplashBackground.DrawMe();
        TitlePane.DrawMe();

        _settingsClicked     = SettingsButton.IsClicked();
        _loadGameClicked     = LoadGameButton.IsClicked();
        _newGameClicked      = NewGameButton.IsClicked();
        _creditsClicked      = CreditsButton.IsClicked();
        _instructionsClicked = InstructionButton.IsClicked();
        _supportGameClicked  = SupportThisGameButton.IsClicked();

        if (FormResult != Feedback.None)
        {
            _maestro.PlaySoundEffect(ButtonSound);
        }
    }
Beispiel #8
0
    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 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();
            }
        }
    }
Beispiel #10
0
 public override void DrawMe()
 {
     Background.DrawMe();
     SpellIcon.DrawMe();
 }
Beispiel #11
0
 public override void DrawMe()
 {
     ResourceImage.DrawMe();
 }
	public virtual void DrawMe()
	{
		Background.DrawMe();
		WindowName.DrawMe();
	}
Beispiel #13
0
 public void OnGUI()
 {
     UiWidget.DrawMe();
 }