Exemple #1
0
    private void OnButtonOver(UIEvent e)
    {
        SoundManager.Get().LoadAndPlay("quest_log_button_mouse_over", base.gameObject);
        this.m_highlight.ChangeState(ActorStateType.HIGHLIGHT_MOUSE_OVER);
        TooltipZone component = base.GetComponent <TooltipZone>();

        if (component != null)
        {
            component.ShowBoxTooltip(GameStrings.Get("GLUE_TOOLTIP_BUTTON_QUESTLOG_HEADLINE"), GameStrings.Get("GLUE_TOOLTIP_BUTTON_QUESTLOG_DESC"));
        }
    }
Exemple #2
0
    private void OnButtonOver(UIEvent e)
    {
        SoundManager.Get().LoadAndPlay("store_button_mouse_over", base.gameObject);
        if (this.m_highlightState != null)
        {
            this.m_highlightState.ChangeState(ActorStateType.HIGHLIGHT_MOUSE_OVER);
        }
        if (this.m_highlight != null)
        {
            this.m_highlight.SetActive(true);
        }
        TooltipZone component = base.GetComponent <TooltipZone>();

        if (component != null)
        {
            component.ShowBoxTooltip(GameStrings.Get("GLUE_TOOLTIP_BUTTON_STORE_HEADLINE"), GameStrings.Get("GLUE_TOOLTIP_BUTTON_STORE_DESC"));
        }
    }