// PRIVATE METHODS void Refresh() { IGuiPagePlayerStats statsPage = CurrentPage as IGuiPagePlayerStats; if (statsPage != null) { statsPage.Refresh(UserPPI); } GuiBaseUtils.GetControl <GUIBase_Label>(Layout, USERNAME).SetNewText(UserPPI.NameForGui); }
// 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); }