コード例 #1
0
    // PRIVATE METHODS

    void Refresh()
    {
        IGuiPagePlayerStats statsPage = CurrentPage as IGuiPagePlayerStats;

        if (statsPage != null)
        {
            statsPage.Refresh(UserPPI);
        }

        GuiBaseUtils.GetControl <GUIBase_Label>(Layout, USERNAME).SetNewText(UserPPI.NameForGui);
    }
コード例 #2
0
    // GUISCREENMULTIPAGE INTERFACE

    protected override void OnPageVisible(GuiScreen page)
    {
        if (CurrentPageIndex < 0 || CurrentPageIndex >= m_Buttons.Length)
        {
            return;
        }

        IGuiPagePlayerStats statsPage = CurrentPage as IGuiPagePlayerStats;

        if (statsPage != null)
        {
            statsPage.Refresh(UserPPI);
        }

        m_Buttons[CurrentPageIndex].stayDown = true;
        m_Buttons[CurrentPageIndex].ForceDownStatus(true);
    }