public override void SetComponent() { this.m_nlbEmoticon = (base.GetControl("NLB_Emoticon") as NewListBox); this.m_nlbEmoticon.Reserve = false; this.m_nlbEmoticon.AddRightMouseDelegate(new EZValueChangedDelegate(this.OnClickEmoticonListBox)); this._SetDialogPos(); }
public override void SetComponent() { this.m_ddlCombinationGradeList = (base.GetControl("DDL_Grade") as DropDownList); this.m_ddlCombinationGradeList.Reserve = false; this.m_ddlCombinationGradeList.AddValueChangedDelegate(new EZValueChangedDelegate(this.Change_CombinationGrade)); this.m_ddlCombinationGradeList.SetViewArea(this._gradeTextKeyDic.Count); foreach (KeyValuePair <int, string> current in this._gradeTextKeyDic) { ListItem listItem = new ListItem(); listItem.Key = current.Key; listItem.SetColumnStr(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(current.Value)); this.m_ddlCombinationGradeList.Add(listItem); } this.m_ddlCombinationGradeList.RepositionItems(); this.m_ddlCombinationGradeList.SetFirstItem(); this.m_cbCompleteCombinationView = (base.GetControl("CheckBox_complet") as CheckBox); this.m_cbCompleteCombinationView.CheckedChanged = new EZValueChangedDelegate(this.CheckBoxChange_CompleteCombinationView); this.m_nlbCombinationList = (base.GetControl("NLB_Combination") as NewListBox); this.m_nlbCombinationList.Reserve = false; this.m_nlbCombinationList.AddScrollDelegate(new EZScrollDelegate(this.ChangeCobinationInfo)); this.m_nlbCombinationList.ReUse = true; this.m_btHelp = (base.GetControl("Help_Button") as Button); this.m_btHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp)); this.m_cbCompleteCombinationView.SetToggleState(1); this.m_btSolGuide = (base.GetControl("Button_SolGuide") as Button); this.m_btSolGuide.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSolGuide)); base.SetLayerZ(1, -0.2f); this.Hide(); GS_SOLCOMBINATIONLIMIT_INFO_REQ gS_SOLCOMBINATIONLIMIT_INFO_REQ = default(GS_SOLCOMBINATIONLIMIT_INFO_REQ); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_SOLCOMBINATIONLIMIT_INFO_REQ, gS_SOLCOMBINATIONLIMIT_INFO_REQ); }
public override void SetComponent() { base.SetScreenCenter(); this.dt_Background = (base.GetControl("DT_Result_BG") as DrawTexture); this.dt_Background.SetTextureFromBundle("UI/mythicraid/mythic_raid_bg"); this.dt_RaidResult = (base.GetControl("DT_RaidResult") as DrawTexture); this.dt_RaidResult.SetTextureFromBundle("UI/mythicraid/mythic_raid_result"); this.lb_OK = (base.GetControl("LB_OK") as Label); this.lb_Loading = (base.GetControl("LB_Loading") as Label); this.lb_RoundCount = (base.GetControl("LB_ClearRound") as Label); this.bt_Test = (base.GetControl("ButtonTest") as Button); Button expr_B0 = this.bt_Test; expr_B0.Click = (EZValueChangedDelegate)Delegate.Combine(expr_B0.Click, new EZValueChangedDelegate(this._clickClose)); this.lb_MyDamage = (base.GetControl("LB_MyDamage") as Label); this.lb_Damage_Info = (base.GetControl("LB_Damage_Info") as Label); this.lb_MyRank = (base.GetControl("LB_MyRank") as Label); this.lb_NextRankInfo = (base.GetControl("LB_NextRankInfo") as Label); this.lb_Damage_Refresh_info = (base.GetControl("LB_Damage_Refresh_info") as Label); this.nlb_HeroInfo = (base.GetControl("NLB_HeroInfo") as NewListBox); this.nlb_HeroInfo.BackButtonAniEnable(false); this.dt_RoundBG = (base.GetControl("DT_ClearRound_BG") as DrawTexture); this.dt_RoundBG.SetTextureFromBundle("UI/mythicraid/mythic_raid_dragonframe"); this.lb_RoundHelper = (base.GetControl("LB_RoundHelper") as Label); base.ShowBlackBG(1f); if (null != base.BLACK_BG) { base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); } }
public override void SetComponent() { this.m_DT_WEAPON = (base.GetControl("DT_WEAPON") as DrawTexture); this.m_Label_character_name = (base.GetControl("Label_character_name") as Label); this.m_Label_SeasonNum = (base.GetControl("Label_SeasonNum") as Label); this.m_DrawTexture_rank = (base.GetControl("DrawTexture_rank") as DrawTexture); this.m_DrawTexture_character = (base.GetControl("DrawTexture_character") as DrawTexture); this.m_DT_SKILLICON = (base.GetControl("DT_SKILLICON") as DrawTexture); this.m_DT_SKILLBUTTON = (base.GetControl("DT_SKILLBUTTON") as Button); this.m_DT_SKILLBUTTON.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_SkillInfo)); this.m_Button_MovieBtn = (base.GetControl("Button_MovieBtn") as Button); this.m_Button_MovieBtn.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_PreViewHero)); this.m_NewListBox_Reincarnate = (base.GetControl("NewListBox_Reincarnate") as NewListBox); this.m_NewListBox_Reincarnate.touchScroll = false; this.m_Close_Button = (base.GetControl("Close_Button") as Button); this.m_Close_Button.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_Close)); this.m_Button_Help = (base.GetControl("Button_Help") as Button); this.m_Button_Help.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp)); this.m_Label_Gold2 = (base.GetControl("Label_Gold2") as Label); this.m_Label_Essence2 = (base.GetControl("Label_Essence2") as Label); this.m_btn_Legend = (base.GetControl("btn_Legend") as Button); this.m_btn_Legend.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickReincarnate)); this.m_Label_LegendTime = (base.GetControl("Label_LegendTime") as Label); this.m_btn_LegendTime = (base.GetControl("BTN_LegendTime") as Button); this.m_btn_LegendTime.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickTimeEnd)); base.SetScreenCenter(); base.ShowBlackBG(0.8f); if (null != base.BLACK_BG) { base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); } }
public override void SetComponent() { Dictionary <string, UIEmoticonInfo> uIEmoticonDictionary = NrTSingleton <UIEmoticonManager> .Instance.UIEmoticonDictionary; this._nlbEmo = (base.GetControl("NLB_Emo") as NewListBox); NewListItem newListItem = new NewListItem(this._nlbEmo.ColumnNum, true, string.Empty); int num = 0; foreach (KeyValuePair <string, UIEmoticonInfo> current in uIEmoticonDictionary) { int num2 = num * 3; string text = current.Key; text = text.Replace("^", string.Empty); newListItem.SetListItemData(num2, string.Empty, current.Key, new EZValueChangedDelegate(this.OnClickEmoticon), null); newListItem.SetListItemData(num2 + 1, current.Key, null, null, null); newListItem.SetListItemData(num2 + 2, text, null, null, null); num++; if (num >= 3) { num = 0; this._nlbEmo.Add(newListItem); newListItem = new NewListItem(this._nlbEmo.ColumnNum, true, string.Empty); } } this._nlbEmo.RepositionItems(); this.fTime = Time.realtimeSinceStartup + 0.5f; }
public override void SetComponent() { this.m_lbLoading = (base.GetControl("Label_Loading") as Label); this.m_btClose = (base.GetControl("Button_ok") as Button); Button expr_32 = this.m_btClose; expr_32.Click = (EZValueChangedDelegate)Delegate.Combine(expr_32.Click, new EZValueChangedDelegate(this.OnClickClose)); this.m_lbSolList = (base.GetControl("plunder_result_sollist") as NewListBox); this.m_lbSolList.Clear(); this.m_lbWin = (base.GetControl("LB_Win") as Label); this.m_lbLose = (base.GetControl("LB_Lose") as Label); this.m_lbGold = (base.GetControl("LB_Gold") as Label); this.m_lbScore = (base.GetControl("LB_Score") as Label); this.m_lbScore.SetText(string.Empty); this.m_lbAttacker = (base.GetControl("LB_WinText") as Label); this.m_lbDefencer = (base.GetControl("LB_LoseText") as Label); this.m_lbAttackerDeadStartPos = new Label[3]; this.m_lbDefencerDeadStartPos = new Label[3]; for (int i = 0; i < 3; i++) { string name = string.Format("Label_A_result{0}", i.ToString()); string name2 = string.Format("Label_D_result{0}", i.ToString()); this.m_lbAttackerDeadStartPos[i] = (base.GetControl(name) as Label); this.m_lbDefencerDeadStartPos[i] = (base.GetControl(name2) as Label); } this.m_lbInfiBattleReward_1 = (base.GetControl("LB_reward1") as Label); this.m_lbInfiBattleRank_1 = (base.GetControl("LB_rank1") as Label); this.m_lbInfiBattleReward_2 = (base.GetControl("LB_reward2") as Label); this.m_lbInfiBattleRank_2 = (base.GetControl("LB_rank2") as Label); this.m_lbInfiBattleWin = (base.GetControl("LB_winningpoint") as Label); this.m_itInfiBattleRewardItem = (base.GetControl("ItemTexture_ItemTexture36") as ItemTexture); this.m_itInfiBattleRewardItem.Hide(false); this.m_btClose.Visible = false; this.m_fCloseEnableTime = 0f; }
public override void SetComponent() { this.m_BackImage = (base.GetControl("DrawTexture_ADImg01") as DrawTexture); this.m_TicketList = (base.GetControl("Listbox_TicketList") as NewListBox); this.m_TicketList.Reserve = false; this.m_btPrimiumMall = (base.GetControl("Button_premium") as Button); this.m_btPrimiumMall.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPrimiumMall)); this.m_HelpButton = (base.GetControl("Help_Button") as Button); this.m_HelpButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp)); base.SetScreenCenter(); NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); ITEMMALL_POPUPSHOP atbToIDX = NrTSingleton <ItemMallPoPupShopManager> .Instance.GetAtbToIDX(ItemMallPoPupShopManager.ePoPupShop_Type.RecruitOpen); if (atbToIDX != null) { GS_ITEMSHOP_ITEMPOPUP_INFO_REQ gS_ITEMSHOP_ITEMPOPUP_INFO_REQ = new GS_ITEMSHOP_ITEMPOPUP_INFO_REQ(); gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64PersonID = myCharInfo.m_PersonID; gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i64Idx = (long)atbToIDX.m_Idx; gS_ITEMSHOP_ITEMPOPUP_INFO_REQ.i32ATB = 3; SendPacket.GetInstance().SendObject(2536, gS_ITEMSHOP_ITEMPOPUP_INFO_REQ); } NrTSingleton <FiveRocksEventManager> .Instance.Placement("user_card"); NrTSingleton <FiveRocksEventManager> .Instance.Placement("solrecruitdlg_open"); NrTSingleton <NkClientLogic> .Instance.SetCanOpenTicket(true); }
private UIListItemContainer GetMoveTargetItem_By_MySolID(NewListBox costumeListBox, NkSoldierInfo selectedMySolInfo) { if (costumeListBox == null) { return(null); } if (selectedMySolInfo == null) { return(null); } for (int i = 0; i < costumeListBox.Count; i++) { UIListItemContainer item = costumeListBox.GetItem(i); if (!(item == null)) { if (item.Data != null) { NkSoldierInfo nkSoldierInfo = (NkSoldierInfo)item.Data; if (nkSoldierInfo != null) { if (nkSoldierInfo.GetSolID() == selectedMySolInfo.GetSolID()) { return(item); } } } } } return(null); }
public override void SetComponent() { this.m_ListBox = (base.GetControl("NLB_FaceBooK") as NewListBox); this.m_btnBack = (base.GetControl("BT_Back") as Button); this.m_btnBack.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickPrev)); this.m_btnNext = (base.GetControl("BT_Next") as Button); this.m_btnNext.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickNext)); this.m_bxPage = (base.GetControl("Box_Page") as Box); MsgHandler.Handle("FacebookFriendDataArrage", new object[0]); this.m_InviteList = new List <FacebookUserData>(NmFacebookManager.instance.FriendsData.Values); if (this.m_InviteList != null && this.m_InviteList.Count > 0) { this.m_InviteList.Sort(new Comparison <FacebookUserData>(this.ComparerData)); } TsLog.LogWarning("m_InviteList Count = {0} NmFacebookManager.instance.FriendsData.Count = {1}", new object[] { this.m_InviteList.Count, NmFacebookManager.instance.FriendsData.Count }); this.m_nCurPage = 1; this.m_nMaxPage = this.m_InviteList.Count / 4 + 1; this.PageView(); this.RequestData(); this.UpdateList(); }
public override void SetComponent() { this.m_tbTab = (base.GetControl("ToolBar") as Toolbar); this.m_tbTab.Control_Tab[0].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("326"); this.m_tbTab.Control_Tab[1].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1912"); this.m_tbTab.Control_Tab[2].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1100"); UIPanelTab expr_86 = this.m_tbTab.Control_Tab[0]; expr_86.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_86.ButtonClick, new EZValueChangedDelegate(this.OnClickTab)); UIPanelTab expr_B4 = this.m_tbTab.Control_Tab[1]; expr_B4.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_B4.ButtonClick, new EZValueChangedDelegate(this.OnClickTab)); UIPanelTab expr_E2 = this.m_tbTab.Control_Tab[2]; expr_E2.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_E2.ButtonClick, new EZValueChangedDelegate(this.OnClickTab)); this.m_nlbGiftTarget = (base.GetControl("NLB_Gift_Target") as NewListBox); this.m_nlbGiftTarget.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickGiftTargetList)); this.m_dtNPCFace = (base.GetControl("DT_NPCIMG") as DrawTexture); this.m_dtNPCFace.SetTextureFromUISoldierBundle(eCharImageType.LARGE, "mine"); this.m_btClose = (base.GetControl("Button_Exit") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); this.SelectTab(this.m_eTab); base.SetScreenCenter(); base.ShowBlackBG(0.5f); }
public override void SetComponent() { this.m_nlbList = (base.GetControl("newlistbox_mythicexchange") as NewListBox); this.m_nlbList.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickList)); this.m_tgNewItem = (base.GetControl("CheckBox_Ticket") as Toggle); this.m_tgNewItem.Value = true; this.m_tgNewItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_NewItemExchange)); this.m_tgOldItem = (base.GetControl("CheckBox_Item") as Toggle); this.m_tgOldItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_OldItemExchange)); this.m_itSelectItem = (base.GetControl("ImageView_equip") as ItemTexture); this.m_itSelectItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectItem)); this.m_btnSell = (base.GetControl("Button_confirm") as Button); this.m_btnSell.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSell)); this.m_btnMinus = (base.GetControl("Button_CountDown") as Button); this.m_btnMinus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickMinus)); this.m_btnPlus = (base.GetControl("Button_CountUp") as Button); this.m_btnPlus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPlus)); this.m_btnAll = (base.GetControl("Button_MaxCountUp") as Button); this.m_btnAll.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickAll)); this.m_lbName = (base.GetControl("Label_text1") as Label); this.m_lbLimitTicketNum = (base.GetControl("Label_text2") as Label); this.m_lbName2 = (base.GetControl("Label_text03") as Label); this.m_lbLimitTicketNum2 = (base.GetControl("Label_text04") as Label); this.m_lbSelectItemName = (base.GetControl("Label_text") as Label); this.m_tfSellNum = (base.GetControl("TextField_Count") as TextField); this.m_tfSellNum.NumberMode = true; this.m_btnInputBox = (base.GetControl("Button_NumPad") as Button); this.m_btnInputBox.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickInputBox)); this.m_btnHelp = (base.GetControl("Help_Button") as Button); this.m_btnHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp)); base.SetScreenCenter(); GS_MYTHICSOLLIMIT_INFO_REQ gS_MYTHICSOLLIMIT_INFO_REQ = default(GS_MYTHICSOLLIMIT_INFO_REQ); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_MYTHICSOLLIMIT_INFO_REQ, gS_MYTHICSOLLIMIT_INFO_REQ); }
public override void SetComponent() { this.m_dxMainBG = (base.GetControl("DrawTexture_MainBG") as DrawTexture); this.m_dxMainBG.SetSize(GUICamera.width, GUICamera.height); this.m_dxMainBG.SetTextureFromBundle("ui/item/bg_solcompose2"); this.m_lbTitle = (base.GetControl("Label_Title") as Label); this.m_dxTitleLine = (base.GetControl("DrawTexture_TitleLine") as DrawTexture); this.m_btSkip = (base.GetControl("Button_ButtonSkip") as Button); this.m_btSkip.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Button)); this.m_flCloseText = (base.GetControl("FlashLabel_CloseText") as FlashLabel); this.m_flCloseText.Visible = false; this.m_ShowList1 = (base.GetControl("NewListBox_ItemResult1") as NewListBox); this.m_ShowList1.touchScroll = false; this.m_ShowList1.SelectStyle = "Com_B_Transparent"; this.m_ShowList1.clipContents = false; this.m_ShowList2 = (base.GetControl("NewListBox_ItemResult2") as NewListBox); this.m_ShowList2.touchScroll = false; this.m_ShowList2.SelectStyle = "Com_B_Transparent"; this.m_ShowList2.clipContents = false; this.m_ShowList3 = (base.GetControl("NewListBox_ItemResult3") as NewListBox); this.m_ShowList3.touchScroll = false; this.m_ShowList3.SelectStyle = "Com_B_Transparent"; this.m_ShowList3.clipContents = false; this.m_dxMiddleLine = (base.GetControl("DrawTexture_MiddleLine") as DrawTexture); this.SetPositon(); }
public override void SetComponent() { this.m_nlbList = (base.GetControl("newlistbox_exchangeevolution") as NewListBox); this.m_nlbList.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickList)); this.m_itSelectItem = (base.GetControl("ImageView_equip") as ItemTexture); this.m_itSelectItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectItem)); this.m_tItem = (base.GetControl("CheckBox_Item") as Toggle); this.m_btnSell = (base.GetControl("Button_confirm") as Button); this.m_btnSell.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSell)); this.m_btnMinus = (base.GetControl("Button_CountDown") as Button); this.m_btnMinus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickMinus)); this.m_btnPlus = (base.GetControl("Button_CountUp") as Button); this.m_btnPlus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPlus)); this.m_btnAll = (base.GetControl("Button_MaxCountUp") as Button); this.m_btnAll.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickAll)); this.m_lbName = (base.GetControl("Label_text1") as Label); this.m_lbLimitTicketNum = (base.GetControl("Label_text2") as Label); this.m_lbName2 = (base.GetControl("Label_text03") as Label); this.m_lbLimitTicketNum2 = (base.GetControl("Label_text04") as Label); this.m_lbSelectItemName = (base.GetControl("Label_text") as Label); this.m_tfSellNum = (base.GetControl("TextField_Count") as TextField); this.m_tfSellNum.NumberMode = true; this.m_btnInputBox = (base.GetControl("Button_NumPad") as Button); this.m_btnInputBox.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickInputBox)); this.m_btnHelp = (base.GetControl("Help_Button") as Button); this.m_btnHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp)); this.InitSelectItem(); this.Show_ExchangeList(); base.SetShowLayer(2, false); base.SetScreenCenter(); this.m_nTicketNum = NkUserInventory.GetInstance().Get_First_ItemCnt(this.FIRST_ELEMENT); this.Set_UserItemNum(); }
public override void SetComponent() { this.m_dtEffect = (base.GetControl("DrawTexture_popup_BG") as DrawTexture); this.m_LabelTitle = (base.GetControl("Label_title") as Label); this.m_ButtonCancel = (base.GetControl("Button_cancel") as Button); this.m_ButtonCancel.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBtCancel)); this.m_dtMyVipMark = (base.GetControl("DT_MyVIP_Mark") as DrawTexture); this.m_lVipLevel = (base.GetControl("LB_VIPlv_01") as Label); this.m_DT_VipDrawTextureBg1 = (base.GetControl("DT_VIPgage") as DrawTexture); this.m_DT_VipDrawTextureBg2 = (base.GetControl("DT_VIPgagein") as DrawTexture); this.m_lVipExp = (base.GetControl("LB_VIPexp") as Label); this.m_nlbVip = (base.GetControl("NLB_VIPBtn") as NewListBox); this.m_nlbVip.Clear(); this.m_lVip = (base.GetControl("LB_VIP") as Label); this.m_lVipState = (base.GetControl("Label_VIPState") as Label); this.m_dtVIPMark1 = (base.GetControl("DT_VIP_Rank_Mark1") as DrawTexture); this.m_lVipTile = (base.GetControl("Label_VIPTitle") as Label); this.m_dtVIPMark2 = (base.GetControl("DT_VIP_Rank_Mark2") as DrawTexture); this.m_lheart = (base.GetControl("LB_Heart") as Label); this.m_lheart.Visible = false; this.m_lSpeedUp = (base.GetControl("LB_SpeedUP") as Label); this.m_lSpeedUp.Visible = false; this.m_lBabelTower = (base.GetControl("LB_BabelTower") as Label); this.m_lBabelTower.Visible = false; string text = string.Empty; text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2849"); this.m_LabelTitle.SetText(text); this.MAX_SLOT_COUNT = NrTSingleton <NrVipSubInfoManager> .Instance.GetSize(); base.SetScreenCenter(); }
private void OnClickExtractOK(object obj) { this.m_SolExtract.Clear(); base.ShowExtractSol(false); if (this._selectedDummySoldierList == null) { return; } NewListBox listBox = this.GetListBox(); listBox.Clear(); SolComposeDirection solComposeDirection = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.SOLCOMPOSE_DIRECTION_DLG) as SolComposeDirection; if (solComposeDirection == null) { return; } int[] array = new int[10]; bool[] array2 = new bool[10]; for (int i = 0; i < this._selectedDummySoldierList.Count; i++) { array[i] = (int)Mathf.Ceil((float)UnityEngine.Random.Range(10, 90)); array[i] = array[0] - array[0] % 10; array2[i] = false; } solComposeDirection.SetExtractData(array2, array); solComposeDirection.AddCloseCallback(new OnCloseCallback(this.OnExtractDirectionEnd)); }
public override void SetComponent() { this.m_btBack = (base.GetControl("Button_Back") as Button); this.m_btBack.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBack)); this.m_tbTab = (base.GetControl("ToolBar_ToolBar") as Toolbar); this.m_tbTab.Control_Tab[0].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2988"); this.m_tbTab.Control_Tab[1].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2989"); UIPanelTab expr_92 = this.m_tbTab.Control_Tab[0]; expr_92.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_92.ButtonClick, new EZValueChangedDelegate(this.OnClickTab)); UIPanelTab expr_C0 = this.m_tbTab.Control_Tab[1]; expr_C0.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_C0.ButtonClick, new EZValueChangedDelegate(this.OnClickTab)); this.m_tbTab.SetSelectTabIndex(0); this.m_nlbRecordList = (base.GetControl("NLB_MineRecord") as NewListBox); this.m_nlbRecordList.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBattleResult)); this.m_btNextPage = (base.GetControl("Button_Pre") as Button); this.m_btNextPage.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickPrev)); this.m_btPrevPage = (base.GetControl("Button_Next") as Button); this.m_btPrevPage.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickNext)); this.m_btAll = (base.GetControl("Button_ALL") as Button); this.m_btAll.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickAll)); this.m_Box_Page = (base.GetControl("Box_Page") as Box); }
public override void SetComponent() { this.m_lbResult = (base.GetControl("Label_Result") as Label); this.m_lbResult.SetCharacterSize(45f); this.m_lbItem = (base.GetControl("Label_RootItem") as Label); this.m_dtTotalBG = (base.GetControl("DrawTexture_TotalBG") as DrawTexture); this.m_dtWinLose = (base.GetControl("DrawTexture_DrawTexture1_C") as DrawTexture); string path = string.Format("{0}Texture/Loading/0{1}", NrTSingleton <UIDataManager> .Instance.FilePath, NrTSingleton <UIDataManager> .Instance.AddFilePath); Texture2D texture = (Texture2D)CResources.Load(path); this.m_dtTotalBG.SetTexture(texture); this.m_lbSolList = (base.GetControl("NLB_SolGetExp") as NewListBox); this.m_lbSolList.Reserve = false; this.m_lbItemList = (base.GetControl("NLB_MineItemList") as NewListBox); this.m_lbItemList.Reserve = false; this.m_btTakeReward = (base.GetControl("Button_ok") as Button); Button expr_FF = this.m_btTakeReward; expr_FF.Click = (EZValueChangedDelegate)Delegate.Combine(expr_FF.Click, new EZValueChangedDelegate(this.OnClickTakReward)); this.m_lbContRankList = (base.GetControl("NLB_MineRank") as NewListBox); this.m_lbContRankList.Reserve = false; this.m_btReplay = (base.GetControl("Button_Replay") as Button); Button expr_15E = this.m_btReplay; expr_15E.Click = (EZValueChangedDelegate)Delegate.Combine(expr_15E.Click, new EZValueChangedDelegate(this.OnClickReplay)); }
public override void SetComponent() { this.m_dtBossImg = (base.GetControl("DrawTexture_character") as DrawTexture); this.m_dtBossCurHP = (base.GetControl("DrawTexture_BG2") as DrawTexture); this.m_dtBossVictoyImg = (base.GetControl("DrawTexture_Victory") as DrawTexture); this.m_dtBossVictoyImg.Visible = false; this.m_laGuildBossName = (base.GetControl("Label_BossName") as Label); this.m_laGuildBossHp = (base.GetControl("Label_BossHp") as Label); this.m_laBasicReward = (base.GetControl("Label_BaseGoldCount") as Label); this.m_lbRewardBaseItemNum = (base.GetControl("LB_BaseItemCount") as Label); this.m_btGuildBossStart = (base.GetControl("btn_PLUS") as Button); this.m_btBasicRewardExplain = (base.GetControl("btn_HELP1") as Button); Button expr_D8 = this.m_btBasicRewardExplain; expr_D8.Click = (EZValueChangedDelegate)Delegate.Combine(expr_D8.Click, new EZValueChangedDelegate(this.OnClickBasicRewardExplain)); this.m_btRankRewardExplain = (base.GetControl("btn_HELP2") as Button); Button expr_115 = this.m_btRankRewardExplain; expr_115.Click = (EZValueChangedDelegate)Delegate.Combine(expr_115.Click, new EZValueChangedDelegate(this.OnClickRankRewardExplain)); this.m_lbGuildMemberList = (base.GetControl("NewListBox_guildmember") as NewListBox); this.m_dtRewardBaseItem = (base.GetControl("DT_BaseItem") as DrawTexture); this.m_itClearUserFace = (base.GetControl("ItemTexture_Winner") as ItemTexture); this.m_itClearUserFace.Visible = false; this.m_lbClearUserName = (base.GetControl("Label_WinnerName") as Label); this.m_lbClearUserName.Visible = false; this.m_dtClearUserBG = (base.GetControl("DrawTexture_VictoryBG") as DrawTexture); this.m_dtClearUserBG.Visible = false; this.m_dtClearBG = (base.GetControl("DrawTexture_Victory2") as DrawTexture); this.m_dtClearBG.Visible = false; this.BOSSHP_BAR_WIDTH = this.m_dtBossCurHP.GetSize().x; base.SetLocation(base.GetLocationX(), base.GetLocationY(), base.GetLocation().z - 8f); base.ShowBlackBG(0.5f); base.SetScreenCenter(); }
public NewListBox SetMySolListBox(CostumeRoom_Dlg owner) { NewListBox newListBox = owner.GetControl("NewListBox_MySolList") as NewListBox; newListBox.Reserve = false; return(newListBox); }
public override void SetComponent() { this.m_btBack = (base.GetControl("Button_Back") as Button); this.m_btBack.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBack)); this.m_strText = string.Format("UI/ETC/Plunder", new object[0]); this.m_nlbBaseReward = (base.GetControl("nlb_BaseReward") as NewListBox); this.m_nlbGuildRank = (base.GetControl("nlb_rank") as NewListBox); this.m_btRewardGet = (base.GetControl("BT_RewardGet") as Button); this.m_btRewardGet.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickedRewardGet)); this.m_btRewardGet.SetEnabled(false); this.m_box_Noti1 = (base.GetControl("Box_Notice1") as Box); this.m_box_Noti1.Hide(true); this.m_bxPage = (base.GetControl("Box_Page") as Box); this.SetPage(1, 1); this.m_PagePrev = (base.GetControl("BT_Page01") as Button); this.m_PagePrev.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickPrevPage)); this.m_PageNext = (base.GetControl("BT_Page02") as Button); this.m_PageNext.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickNextPage)); this.btHelp01 = (base.GetControl("BT_Help01") as Button); this.btHelp01.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickedHelp1)); this.lbHelpText01 = (base.GetControl("LB_HelpText01") as Label); this.lbHelpText01.Hide(true); this.lbHelpText01.SetLocationZ(this.lbHelpText01.GetLocation().z - 1f); this.dtHelpBg01 = (base.GetControl("DT_HelpBG01") as DrawTexture); this.dtHelpBg01.Hide(true); this.dtHelpBg01.SetLocationZ(this.dtHelpBg01.GetLocation().z - 1f); this.dtHelpTail01 = (base.GetControl("DT_HelpTail01") as DrawTexture); this.dtHelpTail01.Hide(true); this.dtHelpTail01.SetLocationZ(this.dtHelpTail01.GetLocation().z - 1f); NrTSingleton <GuildWarManager> .Instance.Send_GS_GUILDWAR_RANKINFO_REQ(-1); this.SetRewardList(); }
private UIListItemContainer GetMoveTargetItem_By_SolCostume(NewListBox costumeListBox, NkSoldierInfo solInfo) { if (costumeListBox == null) { return(null); } if (solInfo == null) { return(null); } for (int i = 0; i < costumeListBox.Count; i++) { UIListItemContainer item = costumeListBox.GetItem(i); if (!(item == null)) { if (item.Data != null) { CharCostumeInfo_Data charCostumeInfo_Data = (CharCostumeInfo_Data)item.Data; if (charCostumeInfo_Data != null) { if (charCostumeInfo_Data.m_costumeUnique == (int)solInfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_COSTUME)) { return(item); } } } } } return(null); }
public override void SetComponent() { this.m_lbOpenRoomList = (base.GetControl("NewListBox_roomlist") as NewListBox); this.m_lbOpenRoomList.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickJoinRoom)); this.m_btJoinQuickRoom = (base.GetControl("BT_QuickJoin") as Button); this.m_btJoinQuickRoom.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickQuickJoinRoom)); this.m_btSearch = (base.GetControl("BT_Search") as Button); this.m_btSearch.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickSearch)); this.m_btRefresh = (base.GetControl("BT_Reset") as Button); this.m_btRefresh.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickRefreshList)); this.m_btSearchFloor = (base.GetControl("Button_Floor") as Button); this.m_btSearchFloor.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickInputSearchFloor)); this.m_lbFloorText = (base.GetControl("LB_FloorText") as Label); this.m_laTitle = (base.GetControl("Label_title") as Label); this.m_laPage = (base.GetControl("LB_Page") as Label); this.m_laPage.SetText(string.Empty); this.m_btBackPage = (base.GetControl("BT_BackPage") as Button); this.m_btBackPage.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickBackPage)); this.m_btNextPage = (base.GetControl("BT_NextPage") as Button); this.m_btNextPage.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickNextPage)); this.m_ddlFloorList = (base.GetControl("DropDownList_FloorInfo") as DropDownList); this.m_btClose = (base.GetControl("Button_Exit") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); base.SetScreenCenter(); }
public override void SetComponent() { this.m_itItemEquip = (base.GetControl("ImageView_equip") as ItemTexture); this.m_itItemEquip.AddValueChangedDelegate(new EZValueChangedDelegate(this.ShowToolTip)); this.m_lbGuideText = (base.GetControl("LB_TextBG") as Label); this.m_itHaveItem = new ItemTexture[3]; this.m_lbHaveItemName = new Label[3]; this.m_lbHaveItemCount = new Label[3]; this.m_dtHaveItemBG = new DrawTexture[3]; for (int i = 0; i < 3; i++) { this.m_itHaveItem[i] = (base.GetControl(string.Format("IT_ITEMICON{0}", (i + 1).ToString())) as ItemTexture); this.m_itHaveItem[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ShowToolTip)); this.m_lbHaveItemName[i] = (base.GetControl(string.Format("LB_Item{0}", (i + 1).ToString())) as Label); this.m_lbHaveItemName[i].SetText(string.Empty); this.m_lbHaveItemCount[i] = (base.GetControl(string.Format("LB_ItemHave{0}", (i + 1).ToString())) as Label); this.m_lbHaveItemCount[i].SetText(string.Empty); this.m_dtHaveItemBG[i] = (base.GetControl(string.Format("DT_ITEM{0}BG", (i + 1).ToString())) as DrawTexture); this.m_dtHaveItemBG[i].Visible = false; } this.m_ListBox = (base.GetControl("NLB_eventsellist") as NewListBox); this.m_ListBox.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnItemClick)); this.m_btnClick = (base.GetControl("BT_Confirm") as Button); this.m_btnClick.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnConfirm)); GS_EXCHANGE_EVENTITEM_LIMITCOUNT_INFO_REQ gS_EXCHANGE_EVENTITEM_LIMITCOUNT_INFO_REQ = new GS_EXCHANGE_EVENTITEM_LIMITCOUNT_INFO_REQ(); if (gS_EXCHANGE_EVENTITEM_LIMITCOUNT_INFO_REQ != null) { SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_EXCHANGE_EVENTITEM_LIMITCOUNT_INFO_REQ, gS_EXCHANGE_EVENTITEM_LIMITCOUNT_INFO_REQ); } }
public override void SetComponent() { this.m_laTargetRank = (base.GetControl("Label_Rank") as Label); this.m_laTargetCharName = (base.GetControl("Label_charname") as Label); this.m_laTargetLevel = (base.GetControl("Label_level") as Label); this.m_laMatchPoint = (base.GetControl("Label_MatchPoint") as Label); this.m_dtRankUpDown = (base.GetControl("DrawTexture_DrawTexture28") as DrawTexture); this.m_laMatchingNoticeMsg = (base.GetControl("Label_Label29") as Label); this.m_btMyRank = (base.GetControl("Button_MyRank") as Button); Button expr_A0 = this.m_btMyRank; expr_A0.Click = (EZValueChangedDelegate)Delegate.Combine(expr_A0.Click, new EZValueChangedDelegate(this.OnClickMyInfo)); this.m_btSearch = (base.GetControl("Button_search") as Button); Button expr_DD = this.m_btSearch; expr_DD.Click = (EZValueChangedDelegate)Delegate.Combine(expr_DD.Click, new EZValueChangedDelegate(this.OnClickSearchFriend)); this.m_btClose = (base.GetControl("Button_close") as Button); Button expr_11A = this.m_btClose; expr_11A.Click = (EZValueChangedDelegate)Delegate.Combine(expr_11A.Click, new EZValueChangedDelegate(this.OnClickClose)); this.m_tfSearchName = (base.GetControl("TextField_TextField11") as TextField); this.m_lbRankList = (base.GetControl("NewListBox_rank_list") as NewListBox); for (int i = 0; i < 2; i++) { int num = i + 1; this.m_tgRankList[i] = (base.GetControl("Toggle_tab" + num) as Toggle); this.m_tgRankList[i].data = i; this.m_tgRankList[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickTabControl)); this.bReqInfo[i] = false; } this.i32OldRank = PlayerPrefs.GetInt("Plunder Rank"); base.SetShowLayer(3, false); }
private void OnClickSoldierSelect(IUIObject obj) { NewListBox newListBox = obj as NewListBox; if (obj == null || null == newListBox) { return; } IUIListObject selectedItem = newListBox.SelectedItem; UIListItemContainer uIListItemContainer = (UIListItemContainer)selectedItem; if (null == uIListItemContainer) { return; } if (uIListItemContainer.data != null) { this.m_SelectSolID = (long)uIListItemContainer.Data; } if (this.m_pkParentDlg == null || !this.m_pkParentDlg.Visible) { this.CloseForm(null); } Protocol_Item.Item_Use(this.m_pkEquipItem, this.m_SelectSolID); this.Close(); }
public override void SetComponent() { this.m_nlbDonationList = (base.GetControl("NLB_goldrecord") as NewListBox); this.m_btClose = (base.GetControl("Button_close") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickClose)); base.SetScreenCenter(); base.ShowBlackBG(0.5f); }
public override void SetComponent() { this.m_lTitle = (base.GetControl("Label_title") as Label); this.m_nlbWaitGuildInfo = (base.GetControl("Newlistbox_mine_battlewait") as NewListBox); this.m_nlbWaitGuildInfo.touchScroll = true; this.m_nlbWaitGuildInfo.Clear(); base.SetScreenCenter(); }
public override void SetComponent() { this.m_nlbItem = (base.GetControl("NewListBox_reduce1") as NewListBox); this.m_nlbItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickItemSelectConfirm)); this.m_btClose = (base.GetControl("Button_Exit") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); this.InitData(); }
private void OnClickRemove(IUIObject obj) { this.m_SolExtract.Clear(); base.ShowExtractSol(false); NewListBox listBox = this.GetListBox(); listBox.Clear(); }
public override void SetComponent() { this.m_Title = (base.GetControl("LB_Title") as Label); this.m_StoryChatLikeList = (base.GetControl("NLB_Like") as NewListBox); this.m_btConfirm = (base.GetControl("BT_OK") as Button); this.m_btConfirm.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); base.SetScreenCenter(); }