示例#1
0
    internal void ShowSubtitlesInternal(GuiSubtitles inSubtitles)
    {
        //Debug.Log(Time.realtimeSinceStartup + " ShowSubtitlesInternal");
        if (m_CurrentSubtitles != null)
        {
            Deactivate();
        }

        m_CurrentSubtitles = inSubtitles;

        if (m_CurrentSubtitles != null)
        {
            enabled = true;

            if (m_Label)
            {
                m_Label.Clear();
            }

            StartCoroutine("RunSubtitlesSequence");
        }
    }
    void UpdateButtonLabel(GUIBase_Widget inWidget)
    {
        //get label
        GUIBase_Label l = GuiBaseUtils.GetChildLabel(inWidget, "GUIBase_Label", false);

        //get index of button
        int btnIndex = GetButtonIndex(inWidget);

        //check if it is awaiting input
        if (m_InputIndex == btnIndex)
        {
            const string strAwaitingInput = "...";
            l.Clear();
            l.SetNewText(strAwaitingInput);
        }
        else
        {
            string s = GetButtonLabel(btnIndex);
            l.SetNewText(s);
        }
    }