public override void Init() { base.Init(); this.m_Poplist_RS = base.GetUIObject("pl_rspoplist") as IXUIPopupList; if (this.m_Poplist_RS == null) { Debug.Log("Poplist_RS == null"); } }
private bool OnPopupListResolutionSelect(IXUIPopupList uiPopupList) { XLog.Log.Debug("OnPoP"); bool result; if (1 == UserOptions.Singleton.DisplayMode) { IGraphicsResolution graphicsResolution = (IGraphicsResolution)uiPopupList.GetDataByIndex((int)uiPopupList.SelectedIndex); if (null == graphicsResolution) { result = false; return(result); } UserOptions.Singleton.Resolution = graphicsResolution; XLog.Log.Debug("Set"); Singleton <ScreenManager> .singleton.SetResolution(graphicsResolution.Width, graphicsResolution.Height, (EnumDisplayMode)UserOptions.Singleton.DisplayMode); } else { uiPopupList.SelectedIndex = this.m_cacheResolutionIndexWhenFullSceen; } result = true; return(result); }