public void AddInfo(MINE_GUILD_CURRENTSTATUS_INFO[] info, byte bType) { this.Clear(); for (int i = 0; i < info.Length; i++) { this.m_listMineGuild_CurrentStatus.Add(info[i]); } if (this.m_dlMineListStyle.IsVisible()) { this.m_dlMineListStyle.SetIndex((int)(bType - 1)); this.m_Style = (eMINE_LISTVIEW_STYLE)bType; } }
public void OnChangeMineListStyle(IUIObject obj) { eMINE_LISTVIEW_STYLE eMINE_LISTVIEW_STYLE = eMINE_LISTVIEW_STYLE.eMINE_LISTVIEW_STYLE_GUILD; if (this.m_dlMineListStyle.Count > 0 && this.m_dlMineListStyle.SelectedItem != null) { ListItem listItem = this.m_dlMineListStyle.SelectedItem.Data as ListItem; if (listItem != null) { eMINE_LISTVIEW_STYLE = (eMINE_LISTVIEW_STYLE)((int)listItem.Key); } } NrTSingleton <MineManager> .Instance.Send_GS_MINE_GUILD_CURRENTSTATUS_INFO_GET_REQ(1, (byte)eMINE_LISTVIEW_STYLE, this.m_GuildID); }
public override void SetComponent() { this.m_lbCurrentStatus = (base.GetControl("NLB_MineCondition") as NewListBox); this.m_lbCurrentStatus.Reserve = false; this.m_btMineSearch = (base.GetControl("BT_MineScarch") as Button); Button expr_3E = this.m_btMineSearch; expr_3E.Click = (EZValueChangedDelegate)Delegate.Combine(expr_3E.Click, new EZValueChangedDelegate(this.OnClickSearchMine)); this.m_bxPage = (base.GetControl("Box_Page") as Box); this.m_btPagePrev = (base.GetControl("BT_Page01") as Button); Button expr_91 = this.m_btPagePrev; expr_91.Click = (EZValueChangedDelegate)Delegate.Combine(expr_91.Click, new EZValueChangedDelegate(this.OnClickPagePrev)); this.m_btPageNext = (base.GetControl("BT_Page02") as Button); Button expr_CE = this.m_btPageNext; expr_CE.Click = (EZValueChangedDelegate)Delegate.Combine(expr_CE.Click, new EZValueChangedDelegate(this.OnClickPageNext)); this.m_btMineBattleRecord = (base.GetControl("BT_MineRecord") as Button); Button expr_10B = this.m_btMineBattleRecord; expr_10B.Click = (EZValueChangedDelegate)Delegate.Combine(expr_10B.Click, new EZValueChangedDelegate(this.OnClickMineBattleRecord)); this.m_btGuildWar = (base.GetControl("BT_GuildWarCondition") as Button); Button expr_148 = this.m_btGuildWar; expr_148.Click = (EZValueChangedDelegate)Delegate.Combine(expr_148.Click, new EZValueChangedDelegate(this.OnClickGuildWar)); this.m_lbMineRecord = (base.GetControl("Label_MineRecord") as Label); if (NrTSingleton <ContentsLimitManager> .Instance.IsNewGuildWarLimit()) { this.m_btGuildWar.Hide(true); this.m_btMineBattleRecord.Hide(true); this.m_lbMineRecord.Visible = false; } this.m_lagoMineJoinCount = (base.GetControl("Label_Label18") as Label); this.m_dlMineListStyle = (base.GetControl("DropDownList_DropDownList19") as DropDownList); this.m_dlMineListStyle.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeMineListStyle)); this.m_dtMineListBG = (base.GetControl("DT_DropDownBG") as DrawTexture); this.m_MineCountGetTime = (base.GetControl("LB_Time02") as Label); this.m_MineCountGetTime.SetText("00:00:00"); this.SetDropDownList(); this.m_GuildID = NrTSingleton <NewGuildManager> .Instance.GetGuildID(); this.m_Style = eMINE_LISTVIEW_STYLE.eMINE_LISTVIEW_STYLE_GUILD; this.Hide(); }