private void OnClickItemDrawTexture(IUIObject obj) { DrawTexture drawTexture = (DrawTexture)obj; int num = (this.m_ItemCurPage - 1) * SelectItemDlg.NUM_ITEMLIST; num += (int)drawTexture.data; if (num >= this.m_SetPosItem.Count) { return; } if (null == null) { return; } SelectItemDlg.eType dlgType = this.DlgType; if (dlgType != SelectItemDlg.eType.Enhance) { } this._dtItemListOver.SetLocation(drawTexture.GetLocation().x, drawTexture.GetLocationY()); this._dtItemListOver.Visible = true; }
public override void SetComponent() { this.m_BackImage = (base.GetControl("DrawTexture_BGIMG01") as DrawTexture); this.m_ExplainText = (base.GetControl("Label_PageTitleLabel01") as Label); this.m_PrevButton = (base.GetControl("Button_PrePageBtn01") as Button); this.m_PrevButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPrev)); this.m_NextButton = (base.GetControl("Button_NextPageBtn01") as Button); this.m_NextButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickNext)); this.m_btBack = (base.GetControl("Button_Back") as Button); this.m_btBack.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickBack)); this.m_ChallengeControl = new ColosseumChallenge.ChallengeControl[8]; for (int i = 0; i < 8; i++) { this.m_ChallengeControl[i] = new ColosseumChallenge.ChallengeControl(); string name = string.Empty; string str = (i + 1).ToString(); name = "DrawTexture_LeaderFace0" + str; this.m_ChallengeControl[i].m_LeagerFaceImg = (base.GetControl(name) as DrawTexture); this.m_ChallengeControl[i].m_LeagerFaceImg.EffectAni = true; name = "DrawTexture_ClearMark0" + str; this.m_ChallengeControl[i].m_ClearImage = (base.GetControl(name) as DrawTexture); this.m_ChallengeControl[i].m_ClearImage.Visible = false; name = "DrawTexture_DisableMark0" + str; this.m_ChallengeControl[i].m_DisableMark = (base.GetControl(name) as DrawTexture); name = "DrawTexture_DisableBG0" + str; this.m_ChallengeControl[i].m_DisableBG = (base.GetControl(name) as DrawTexture); name = "Button_ChallengeBtn0" + str; this.m_ChallengeControl[i].m_ChallengeButton = (base.GetControl(name) as Button); this.m_ChallengeControl[i].m_ChallengeButton.EffectAni = false; this.m_ChallengeControl[i].m_ChallengeButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickOK)); this.m_ChallengeControl[i].m_ChallengeButton.Data = i; name = "Label_Name0" + str; this.m_ChallengeControl[i].m_Name = (base.GetControl(name) as Label); } base.SetLayerZ(1, -0.2f); this.m_PrevButton.SetLocationZ(this.m_PrevButton.GetLocation().z - 0.5f); base.SetScreenCenter(); this.ShowChallengeList(); ColosseumChallenge.m_CurrentIndex = 0; }
public override void SetComponent() { this.m_nlbFloor = (base.GetControl("NLB_basement") as NewListBox); this.m_dtFloor = (base.GetControl("DT_tower") as DrawTexture); this.m_dtFloor.SetTextureFromBundle(string.Format("ui/NewExploration/NewExploration_tower_BG", new object[0])); this.m_nlbStage = (base.GetControl("NLB_NewExploration") as NewListBox); this.m_nlbStage.Reserve = false; this.m_lbTitle = (base.GetControl("Label_PageTitleLabel01") as Label); this.m_lbDragonHeart = (base.GetControl("LB_DragonHeart") as Label); this.m_lbSoulGem = (base.GetControl("LB_MySoulGem") as Label); this.m_btSoulGemShop = (base.GetControl("Btn_SoulGemShop") as Button); Button expr_C7 = this.m_btSoulGemShop; expr_C7.Click = (EZValueChangedDelegate)Delegate.Combine(expr_C7.Click, new EZValueChangedDelegate(this.OnClickSoulGemShop)); this.m_lbRank = (base.GetControl("LB_MyRank") as Label); this.m_lbRankPercent = (base.GetControl("LB_AllRank") as Label); this.m_btEnd = (base.GetControl("BT_End") as Button); Button expr_130 = this.m_btEnd; expr_130.Click = (EZValueChangedDelegate)Delegate.Combine(expr_130.Click, new EZValueChangedDelegate(this.OnClickEnd)); this.m_btAutoBattle = (base.GetControl("BT_Autobattle") as Button); Button expr_16D = this.m_btAutoBattle; expr_16D.Click = (EZValueChangedDelegate)Delegate.Combine(expr_16D.Click, new EZValueChangedDelegate(this.OnClickAutoBattle)); this.m_btReset = (base.GetControl("BT_Reset") as Button); Button expr_1AA = this.m_btReset; expr_1AA.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1AA.Click, new EZValueChangedDelegate(this.OnClickReset)); this.m_bSelectedFloor = NrTSingleton <NewExplorationManager> .Instance.GetFloor(); this.SetFloorList(); base.SetLayerZ(1, -1.5f); base.SetLayerZ(2, -1.5f); base.SetLayerZ(4, -1.5f); this.closeButton.SetLocationZ(this.closeButton.GetLocation().z - 1.5f); this.m_nlbFloor.SetLocationZ(this.m_nlbFloor.GetLocation().z - 1.7f); this.SetInfo(); this.SetRankInfo(0, 0); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_NEWEXPLORATION_RANK_GET_REQ, new GS_NEWEXPLORATION_RANK_GET_REQ()); }
public override void SetComponent() { this.m_bttransbutton = (base.GetControl("Button_Transbutton") as Button); this.m_bttransbutton.Click = new EZValueChangedDelegate(this.ClickClose); this.m_bttransbutton.UseDefaultSound = false; this.backImage = (base.GetControl("NPCTalk_BG") as DrawTexture); this.m_CenterNpcImage = (base.GetControl("DrawTexture_NPCFace01") as DrawTexture); this.m_CenterNpcImage.SetTexture(eCharImageType.LARGE, 242, -1, string.Empty); this.m_CenterNpcName = (base.GetControl("NPCTalk_npcname") as Label); this.m_CenterNpcName.Text = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(242); this.m_CenterNpcNameBack[0] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_left_line") as DrawTexture); this.m_CenterNpcNameBack[1] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_right_line") as DrawTexture); this.m_CenterNpcNameBack[2] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_left") as DrawTexture); this.m_CenterNpcNameBack[3] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_right") as DrawTexture); this.close = (base.GetControl("NPCTalk_close") as Button); this.close.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickClose)); this.excute = (base.GetControl("Button_Button9") as Button); this.excute.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickExcuteGameGuide)); this.talkText = (base.GetControl("NPCTalk_talklabel") as FlashLabel); this.talkText.Visible = true; this.item1 = (base.GetControl("ItemTexture_Item1") as ItemTexture); this.backItem1 = (base.GetControl("DrawTexture_itemtexture1") as DrawTexture); this.item2 = (base.GetControl("ItemTexture_Item2") as ItemTexture); base.SetShowLayer(2, false); this.RepositionControl(); NrTSingleton <NkCharManager> .Instance.ShowHideAll(false, false, false); this.SetTalkText(); if (null != Camera.main) { this.m_WorldCamera = Camera.main.GetComponent <maxCamera>(); if (this.m_WorldCamera != null) { NrTSingleton <NkClientLogic> .Instance.BackMainCameraInfo(); this.m_WorldCamera.StopCameraControl(); } } }
public override void SetComponent() { this.m_txItemSlotBG = (base.GetControl("DrawTexture_equip2") as DrawTexture); this.m_txBG = (base.GetControl("DrawTexture_bg2") as DrawTexture); this.m_txBG.SetTextureFromBundle("UI/Etc/reforge_magic"); this.m_itxItem = (base.GetControl("DrawTexture_equip3") as ItemTexture); this.m_lbItemName = (base.GetControl("Label_equip2") as Label); this.m_lbItemStat = (base.GetControl("Label_stat2") as Label); this.m_lbItemStat_before = (base.GetControl("Label_stat2_before") as Label); this.m_btnConfirm = (base.GetControl("Button_Confirm") as Button); this.m_btnConfirm.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Click_Confirm)); this.m_lbTradeCount = (base.GetControl("Label_stat3") as Label); this.m_lbTradeCount_before = (base.GetControl("Label_stat3_before") as Label); this.m_btnUndo = (base.GetControl("Button_undo") as Button); this.m_btnUndo.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Click_Undo)); this.m_lbBefore = (base.GetControl("Label_before") as Label); this.m_lbAfter = (base.GetControl("Label_after") as Label); this.m_lbBefore2 = (base.GetControl("Label_before2") as Label); this.m_lbBefore2.Visible = false; this.m_lbAfter2 = (base.GetControl("Label_after2") as Label); this.m_lbAfter2.Visible = false; }
public override void SetComponent() { this.m_lbAlly0CharName = (base.GetControl("Label_mycharname") as Label); this.m_lbAlly1Name = (base.GetControl("Label_ChaName") as Label); this.m_dwBGTurnAlly0 = (base.GetControl("DrawTexture_DrawTexture9") as DrawTexture); this.m_dwBGTurnAlly1 = (base.GetControl("DrawTexture_DrawTexture10") as DrawTexture); if (this.m_dwBGTurnAlly0 != null) { NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_PLAYERTURN_LEFT", this.m_dwBGTurnAlly0, this.m_dwBGTurnAlly0.GetSize()); this.m_dwBGTurnAlly0.AddGameObjectDelegate(new EZGameObjectDelegate(this.effectAlly0)); } if (this.m_dwBGTurnAlly1 != null) { NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_PLAYERTURN_RIGHT", this.m_dwBGTurnAlly1, this.m_dwBGTurnAlly1.GetSize()); this.m_dwBGTurnAlly1.AddGameObjectDelegate(new EZGameObjectDelegate(this.effectAlly1)); } this.nDeadCount0 = 0; this.nDeadCount1 = 0; this.Hide(); }
public override void SetComponent() { this.m_dtMainBG = (base.GetControl("DrawTexture_SubBG") as DrawTexture); this.m_dtMainBG.SetTextureFromBundle("UI/Etc/reforge"); this.m_itSelectItem = (base.GetControl("ItemTexture_Item") as ItemTexture); this.m_lbSelectItem = (base.GetControl("Label_Item") as Label); this.m_lbSelectItemCount = (base.GetControl("Label_Count") as Label); this.m_lbItemResult = (base.GetControl("Label_Result") as Label); this.m_lbItemResult.Visible = false; this.m_btNext_minus = (base.GetControl("Button_Next1") as Button); this.m_btNext_minus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickMinus)); this.m_btNext_add = (base.GetControl("Button_Next2") as Button); this.m_btNext_add.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickAdd)); this.m_btNext_max = (base.GetControl("Button_Max") as Button); this.m_btNext_max.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickMax)); this.m_btNext_ok = (base.GetControl("Button_OK") as Button); this.m_btNext_ok.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickOK)); this.m_nlbNeedItem = (base.GetControl("NewListBox_Item") as NewListBox); this.m_nlbNeedItem.Reserve = false; base.ShowBlackBG(0.5f); base.SetScreenCenter(); }
public override void SetComponent() { this.m_pkLableAPKVersion = (base.GetControl("Label_Version") as Label); string empty = string.Empty; if (TsPlatform.IsAndroid) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("27"), "version", TsPlatform.APP_VERSION_AND }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("27"), "version", TsPlatform.APP_VERSION_IOS }); } this.m_pkLableAPKVersion.SetText("[#66cbff]" + empty); this.m_dtRating1 = (base.GetControl("DT_Rating1") as DrawTexture); this.m_dtRating2 = (base.GetControl("DT_Rating2") as DrawTexture); eSERVICE_AREA currentServiceArea = NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceArea(); if (currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORTSTORE || currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_BANDNAVER || currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORNAVER || currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORKAKAO || currentServiceArea == eSERVICE_AREA.SERVICE_IOS_KORKAKAO) { this.m_dtRating1.SetTexture("Win_I_Deliberation04"); } else { this.m_dtRating1.SetTexture("Win_I_Deliberation01"); } this.m_dtRating1.Visible = false; this.m_dtRating2.Visible = false; }
public override void SetComponent() { this.BattlePosSolName = (base.GetControl("Label_position_chaname") as Label); this.BattlePosSolWeapon1 = (base.GetControl("DrawTexture_position_weapon01") as DrawTexture); this.BattlePosSolWeapon2 = (base.GetControl("DrawTexture_position_weapon02") as DrawTexture); this.BattlePosSolImage = new DrawTexture[9]; this.BattlePosCoverImage = new DrawTexture[9]; this.BattlePosSolSelect = new UIRadioBtn[9]; for (int i = 0; i < 9; i++) { string str = (i + 1).ToString(); this.BattlePosSolImage[i] = (base.GetControl("DrawTexture_sol_0" + str) as DrawTexture); Vector2 size = this.BattlePosSolImage[i].GetSize(); this.BattlePosSolSelect[i] = UICreateControl.RadioBtn(this, "BattlePosSolSelect0" + str, string.Empty, size.x, size.y); this.BattlePosSolSelect[i].Data = i; this.BattlePosSolSelect[i].Layer = 3; this.BattlePosSolSelect[i].SetLocation(this.BattlePosSolImage[i].GetLocationX(), this.BattlePosSolImage[i].GetLocationY(), -0.12f); this.BattlePosSolSelect[i].SetValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBattlePosSolSelect)); this.BattlePosCoverImage[i] = (base.GetControl("DrawTexture_p_0" + str) as DrawTexture); this.BattlePosCoverImage[i].Visible = false; } this.BattlePosSelectedPos = (base.GetControl("DrawTexture_selectsol") as DrawTexture); this.BattlePosSelectedPos.Visible = false; this.BattlePosReturn = (base.GetControl("btn_return") as Button); this.BattlePosReturn.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBattlePosCancel)); this.BattlePosApply = (base.GetControl("btn_apply") as Button); this.BattlePosApply.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBattlePosChange)); this.fBattlePosSlotSize = this.BattlePosSolImage[0].GetSize().x; this.m_btClose = (base.GetControl("Button_Exit") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); if (!this.MakeMilitary()) { base.CloseNow(); } base.SetScreenCenter(); this.InitBattlePosInfo(); this.InitData(); }
public override void SetComponent() { this._btKeyboard = (base.GetControl("Button_Input") as Button); Button expr_1C = this._btKeyboard; expr_1C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C.Click, new EZValueChangedDelegate(this.OnClickKeyboard)); this._dtChatBG = (base.GetControl("DrawTexture_ChatBG") as DrawTexture); base.SetLocation(0f, GUICamera.height - base.GetSizeY()); Vector2 vPos = new Vector2(this._dtChatBG.GetSize().x, 0f); this._clChat = ChatManager.MakeChatLabel(this, "ChatLabel_Allchat", vPos); this._clChatAll = ChatManager.MakeChatLabel(this, "ChatLabel_Allchat", vPos); this._clChatGuild = ChatManager.MakeChatLabel(this, "ChatLabel_Guildchat", vPos); this._clChatSystem = ChatManager.MakeChatLabel(this, "ChatLabel_Systemchat", vPos); this._clChat.RemoveBoxCollider(); base.ShowLayer(1); ChatMobile_Sub_Dlg chatMobile_Sub_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.CHAT_MOBILE_SUB_DLG) as ChatMobile_Sub_Dlg; if (chatMobile_Sub_Dlg != null) { chatMobile_Sub_Dlg.Hide(); } }
public override void SetComponent() { this.m_lbResult = (base.GetControl("Label_Result") as Label); this.m_lbResult.SetCharacterSize(45f); 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_btConfirmMail = (base.GetControl("Button_ok") as Button); Button expr_E9 = this.m_btConfirmMail; expr_E9.Click = (EZValueChangedDelegate)Delegate.Combine(expr_E9.Click, new EZValueChangedDelegate(this.OnClickTakeMail)); this.m_btReplay = (base.GetControl("Button_Replay") as Button); Button expr_126 = this.m_btReplay; expr_126.Click = (EZValueChangedDelegate)Delegate.Combine(expr_126.Click, new EZValueChangedDelegate(this.OnClickReplay)); }
public override void SetComponent() { this.lb_Title = (base.GetControl("LB_Title") as Label); this.nlb_CardArea1 = (base.GetControl("NLB_CardArea1") as NewListBox); this.nlb_CardArea2 = (base.GetControl("NLB_CardArea2") as NewListBox); this.dt_Back = (base.GetControl("DT_Back") as DrawTexture); this.dt_Back.SetTextureFromBundle("ui/soldier/background"); this.bt_TouchArea = (base.GetControl("BT_TouchArea") as Button); this.bt_TouchArea.Click = new EZValueChangedDelegate(this.ClickClose); this.lb_Touch = (base.GetControl("LB_Touch") as Label); Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture("UI/pvp/cardback"); if (null != texture) { this._backBG = texture; } else { NrTSingleton <UIImageBundleManager> .Instance.RequestBundleImage("UI/pvp/cardback", new PostProcPerItem(this.SetImage)); } this.IsCloseTouch = false; UIDataManager.MuteSound(false); }
public override void SetComponent() { this.m_dtBG = (base.GetControl("DrawTexture_MonSlotBG") as DrawTexture); this.m_lbMonsterName = (base.GetControl("Label_MonsterName") as Label); this.m_lbMonsterName.SetText(string.Empty); this.m_dtClearRank = (base.GetControl("DrawTexture_Rank") as DrawTexture); this.m_dtClearRankBG = (base.GetControl("DrawTexture_rankbg") as DrawTexture); this.m_dtMonFaceBG = (base.GetControl("DrawTexture_MonFaceBG") as DrawTexture); this.m_dtMonFace = (base.GetControl("DrawTexture_MonFace") as DrawTexture); this.m_itRewardItem = (base.GetControl("ItemTexture_Reward") as ItemTexture); this.m_lbReward = (base.GetControl("Label_Reward") as Label); this.m_lbReward.SetText(string.Empty); this.m_itRewardItem2 = (base.GetControl("ItemTexture_Reward2") as ItemTexture); this.m_lbReward2 = (base.GetControl("Label_Reward2") as Label); this.m_lbReward2.SetText(string.Empty); this.m_lbClear = (base.GetControl("Label_Clear") as Label); this.m_btAccept = (base.GetControl("Button_StartBTN") as Button); this.m_btAccept.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickAccept)); this.m_btClose = (base.GetControl("Button_Exit") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); base.SetScreenCenter(); base.ShowBlackBG(0.5f); }
public override void SetComponent() { this.NPCTalk_BG = (base.GetControl("NPCTalk_BG") as Box); this.BGLine1 = (base.GetControl("NPCTalk_BG_line") as DrawTexture); this.BGLine2 = (base.GetControl("NPCTalk_BG_line2") as DrawTexture); this.NPCName = (base.GetControl("NPCTalk_npcname") as Label); this.NPCTalk = (base.GetControl("NPCTalk_talklabel") as FlashLabel); this.MiniDramaSkip = (base.GetControl("Button_CancelBTN") as Button); Button expr_8A = this.MiniDramaSkip; expr_8A.Click = (EZValueChangedDelegate)Delegate.Combine(expr_8A.Click, new EZValueChangedDelegate(this.Event_SkipMiniDrama)); if (this.NPCName != null) { this.NPCName.SetText(string.Empty); } if (this.NPCTalk != null) { this.NPCTalk.SetFlashLabel(string.Empty); } this.Show(); this.ShowBG(this._BGShow); this.SetPosition(); }
public override void SetComponent() { this.m_lbNowHearts = (base.GetControl("Label_hearts") as Label); this.m_lbVIPLevel = (base.GetControl("Label_Label_vip_level") as Label); this.m_lbVIPExp = (base.GetControl("Label_Label_vip_exp") as Label); this.m_lbRemainTime = (base.GetControl("LB_RemainTime") as Label); this.m_lbRewardHelp = (base.GetControl("LB_Refresh_Reward") as Label); this.m_lbSoulGem = (base.GetControl("Label_SoulGem") as Label); this.m_dtVIPExpBarBG = (base.GetControl("vip_DrawTexture_bg01") as DrawTexture); this.m_dtVIPExpBar = (base.GetControl("vip_DrawTexture_bg2") as DrawTexture); this.m_dtVIPMark = (base.GetControl("DrawTexture_VIPMark") as DrawTexture); this.m_dtBanner = (base.GetControl("DT_Banner") as DrawTexture); this.m_dtBanner.SetTextureFromBundle("ui/itemshop/timeshop_banner"); this.m_btnHeartStateBG = (base.GetControl("Button_heartsState1") as Button); this.m_btnHeartStateBG.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_HeartState)); this.m_btnHeartState = (base.GetControl("Button_heartsState2") as Button); this.m_btnHeartState.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_HeartState)); this.m_btnVIPInfo = (base.GetControl("Button_VIP_info") as Button); this.m_btnVIPInfo.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_VIPInfo)); this.m_btnRefresh = (base.GetControl("BT_Refresh") as Button); this.m_btnRefresh.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_Refresh)); this.m_btnSoulGemState = (base.GetControl("Button_SoulGemState1") as Button); this.m_btnSoulGemState.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_HeartState)); this.m_btnSoulGem = (base.GetControl("Button_SoulGem") as Button); this.m_btnSoulGem.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_HeartState)); this.m_btnHelp = (base.GetControl("BT_Help") as Button); this.m_btnHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_Help)); this.m_btnRewardHelp = (base.GetControl("BT_RewardHelp") as Button); this.m_btnRewardHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_RewardHelp)); this.m_btnBanner = (base.GetControl("BT_Banner") as Button); this.m_btnBanner.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_Help)); this.m_btnRefreshReward = (base.GetControl("BT_Refresh_RewardGet") as Button); this.m_btnRefreshReward.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_RewardHelp)); this.m_nlbItemList = (base.GetControl("NLB_Timeshop") as NewListBox); this.Init_Data(); this.Set_UserInfo(); }
public void SetComponent() { this._mySolKindListBox = this._componentSetter.SetMySolListBox(this._owner); this._costumeListBox = this._componentSetter.SetCostumeListBox(this._owner); this._skillIcon = (this._owner.GetControl("DrawTexture_SkillIcon") as DrawTexture); this._skillName = this._componentSetter.SetSkillName(this._owner); this._skillInfoBtn = this._componentSetter.SetSkillInfoBtn(this._owner); this._statLabels = this._componentSetter.SetStatLabels(this._owner); this._costumeTouchArea = (this._owner.GetControl("DrawTexture_TouchArea") as DrawTexture); this._costumeCharView = (this._owner.GetControl("DrawTexture_CharView") as DrawTexture); this._mainBG = this._componentSetter.SetBG(this._owner); this._backBtn = this._componentSetter.SetBackButton(this._owner); this._btnWalk = this._componentSetter.SetActionWalkBtn(this._owner); this._btnStay = this._componentSetter.SetActionStayBtn(this._owner); this._btnAttack = this._componentSetter.SetActionAttackBtn(this._owner); this._btnImmediatelyBuy = this._componentSetter.SetImmediatelyBuyBtn(this._owner); this._lbCostumeName = this._componentSetter.SetCostumeName(this._owner); this._uiHideCheckBox = this._componentSetter.SetCostumeUIHideCheckBox(this._owner); this._skillTitle = (this._owner.GetControl("Label_SkillTitle") as Label); this._skillBG = (this._owner.GetControl("DrawTexture_titleline") as DrawTexture); this._skillLine = (this._owner.GetControl("DrawTexture_SkillSlot") as DrawTexture); this._lbImmediate = (this._owner.GetControl("Label_Label51") as Label); this._charSkillBGGradation = (this._owner.GetControl("DrawTexture_SkillTitleBG") as DrawTexture); this._charStatBGGradation = (this._owner.GetControl("DrawTexture_C_info_bg") as DrawTexture); this._sameKindSolCheckBox = this._componentSetter.SetSameKindSolCheckBox(this._owner); this._btMyCharListLeftArrow = this._componentSetter.SetMyCharListLeftBtn(this._owner); this._btMyCharListRightArrow = this._componentSetter.SetMyCharListRightBtn(this._owner); this._dtMyCharListLeftArrowBG = this._componentSetter.SetMyCharListLeftArrowBG(this._owner); this._dtMyCharListRightArrowBG = this._componentSetter.SetMyCharListRightArrowBG(this._owner); this._lbSoulGem = this._componentSetter.SetSolGemLabel(this._owner); this._lbMythElixir = this._componentSetter.SetMythElixirLabel(this._owner); this._btnSoulGemLink = this._componentSetter.SetSoulGemLinkButton(this._owner); this._btnSoulGemLink_2 = this._componentSetter.SetSoulGemLinkButton_2(this._owner); this._btnMythElixirLink = this._componentSetter.SetMythElixirButton(this._owner); this._btnMythElixirLink_2 = this._componentSetter.SetMythElixirButton_2(this._owner); this._bthHelp = this._componentSetter.SetHelpButton(this._owner); }
private void SolComposeSuccess(WWWItem _item, object _param) { Main_UI_SystemMessage.CloseUI(); if (null != _item.GetSafeBundle() && null != _item.GetSafeBundle().mainAsset) { GameObject gameObject = _item.GetSafeBundle().mainAsset as GameObject; if (null != gameObject) { this.rootGameObject = (UnityEngine.Object.Instantiate(gameObject) as GameObject); if (null == this.rootGameObject) { return; } NkUtil.SetAllChildLayer(this.rootGameObject, GUICamera.UILayer); base.InteractivePanel.MakeChild(this.rootGameObject); DrawTexture drawTexture = _param as DrawTexture; if (_param == null) { this.rootGameObject.transform.localPosition = new Vector3(430f, -170f, -1f); } else { this.rootGameObject.transform.localPosition = drawTexture.GetLocation(); } if (TsPlatform.IsMobile && TsPlatform.IsEditor) { NrTSingleton <NkClientLogic> .Instance.SetEditorShaderConvert(ref this.rootGameObject); } this.Show(); if (this.m_TargetSolInfo.IsLeader() && this.m_bLevelUP) { AlarmManager.GetInstance().ShowLevelUpAlarm1(); AlarmManager.GetInstance().ShowLevelUpAlarm2(); } } } }
public override void Initialize() { if (checkForRageVersionClass.checkForRageVersion(requiredVersion)) { // read the gaugefuel positions from the gui.ini file ReadIniFile.ReadIni(); string databaseFile = @"plugins/LSPDFR/PoliceLifeS/Database/PoliceLifeS.db"; if (!File.Exists(databaseFile)) { DatabaseManager.CreateDatabaseFile(); } myPlayer = HungerManager.SelectPlayerLife(); saveTimer = new SaveTimer(300000, myPlayer); sf = new StaticFinalizer(CleanYourScript); newUpdateHasBeenShow = false; Update(); //Only if current Version equals the minVersion if (CheckUpdate.isNewVersionAvaiable() != 2 && CheckUpdate.serverurl != "") { ScreenWidth = Game.Resolution.Width; ScreenHeight = Game.Resolution.Height; DrawTexture.initTextures(); Progress(); Functions.OnOnDutyStateChanged += Functions_OnOnDutyStateChanged; } else if (CheckUpdate.serverurl == "") { NotificationManager.addNotification("[~b~Police~s~Life~r~S~s~]: ~r~Not possible to determine the API-Url, please try again later!"); } } else { NotificationManager.addNotification("[~b~Police~s~Life~r~S~s~]: ~r~Rage Version not valid, RPH " + requiredVersion.ToString() + "+ required!"); } }
public override void SetComponent() { this.m_LB_MythEvolutionTime = (base.GetControl("LB_MythEvolutionTime") as Label); this.m_LB_LegendEvolutionTime = (base.GetControl("LB_LegendEvolutionTime") as Label); this.m_Button_MINUS = (base.GetControl("Button_MINUS") as Button); this.m_Button_MINUS.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnValueMinus)); this.m_Button_PLUS = (base.GetControl("Button_PLUS") as Button); this.m_Button_PLUS.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnValueAdd)); this.m_Button_Button01 = (base.GetControl("Button_Button01") as Button); this.m_Button_Button01.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnCanCelClose)); this.m_Button_Button02 = (base.GetControl("Button_Button02") as Button); this.m_Button_Button02.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnItemUse)); this.m_Button_NumPad = (base.GetControl("Button_NumPad") as Button); this.m_Button_NumPad.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickNumPad)); this.m_Label_Count = (base.GetControl("Label_Count") as Label); this.m_DT_elixir = (base.GetControl("DT_elixir") as DrawTexture); this.m_HSlider_HSlider1 = (base.GetControl("HSlider_HSlider1") as HorizontalSlider); base.SetScreenCenter(); base.ShowBlackBG(0.5f); if (null != base.BLACK_BG) { base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); } }
private void _OnShadowImageProcess(IDownloadedItem wItem, object objs) { if (wItem != null && wItem.canAccessAssetBundle) { Texture2D texture = wItem.mainAsset as Texture2D; DrawTexture[] array = objs as DrawTexture[]; DrawTexture[] array2 = array; for (int i = 0; i < array2.Length; i++) { DrawTexture drawTexture = array2[i]; if (drawTexture != null) { drawTexture.SetTexture(texture); } } } if (wItem.mainAsset == null) { TsLog.LogWarning("wItem.mainAsset is null -> Path = {0}", new object[] { wItem.assetPath }); } }
public override void SetComponent() { this.m_DT_DrawTexture0 = (base.GetControl("DrawTexture_DrawTexture0") as DrawTexture); this.m_DT_NpcImg = (base.GetControl("DT_NpcImg") as DrawTexture); this.m_LB_Label01 = (base.GetControl("LB_Label01") as Label); this.m_DT_LabelBG01 = (base.GetControl("DT_LabelBG01") as DrawTexture); this.m_DT_LabelBG02 = (base.GetControl("DT_LabelBG02") as DrawTexture); this.m_BT_Select01 = (base.GetControl("BT_Select01") as Button); this.m_BT_Select02 = (base.GetControl("BT_Select02") as Button); this.m_BT_Select03 = (base.GetControl("BT_Select03") as Button); this.m_BT_Select01.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_ClickBT_Select1)); this.m_BT_Select02.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_ClickBT_Select2)); this.m_BT_Select03.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_ClickBT_Select3)); base.Draggable = false; base.SetScreenCenter(); this.SetupBalck_BG("Win_T_BK", 0f, 0f, GUICamera.width, GUICamera.height); string textureFromBundle = string.Empty; this.m_DT_NpcImg.SetTextureFromUISoldierBundle(eCharImageType.LARGE, "mine"); textureFromBundle = string.Format("UI/CharSelect/ChaSelect_BG", new object[0]); this.m_DT_DrawTexture0.SetTextureFromBundle(textureFromBundle); this.ShowDrawHide(false); this.SupporterDlgGuiSet(); }
public override void SetComponent() { this.m_kReputeRewardList = (base.GetControl("ListBox_List") as ListBox); this.m_kReputeRewardList.UseColumnRect = true; this.m_kReputeRewardList.ColumnNum = 5; this.m_kReputeRewardList.LineHeight = 106f; this.m_kReputeRewardList.itemSpacing = 5f; this.m_kReputeRewardList.SelectStyle = "Win_B_ListBtn02"; this.m_kReputeRewardList.AutoListBox = false; this.m_kReputeRewardList.touchScroll = false; this.m_kReputeRewardList.SetColumnRect(0, new Rect(6f, 6f, 94f, 94f)); this.m_kReputeRewardList.SetColumnRect(1, new Rect(13f, 13f, 80f, 80f)); this.m_kReputeRewardList.SetColumnRect(2, new Rect(108f, 24f, 380f, 24f), SpriteText.Anchor_Pos.Middle_Left, 24f); this.m_kReputeRewardList.SetColumnRect(3, new Rect(108f, 56f, 380f, 24f), SpriteText.Anchor_Pos.Middle_Left, 24f); this.m_kReputeRewardList.Reserve = false; if (this.m_kReputeRewardList.slider) { UnityEngine.Object.Destroy(this.m_kReputeRewardList.slider.gameObject); } this.m_Ok = (base.GetControl("Button_OK") as Button); this.m_Ok.AddValueChangedDelegate(new EZValueChangedDelegate(NrTSingleton <NkQuestManager> .Instance.OnClose)); this.m_Ok.data = G_ID.QUEST_REWARD; this.m_BGImage = (base.GetControl("DrawTexture_Innerbg") as DrawTexture); }
public override void SetComponent() { base.SetLocation(0f, 0f); this.m_btBuyGold1 = (base.GetControl("Button_Gold01") as Button); Button expr_2C = this.m_btBuyGold1; expr_2C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_2C.Click, new EZValueChangedDelegate(this.OnClickBuyGold)); this.m_btBuyGold1.DeleteSpriteText(); this.m_btBuyGold2 = (base.GetControl("Button_Gold02") as Button); Button expr_74 = this.m_btBuyGold2; expr_74.Click = (EZValueChangedDelegate)Delegate.Combine(expr_74.Click, new EZValueChangedDelegate(this.OnClickBuyGold)); this.m_btBuyGold2.DeleteSpriteText(); this.m_btBuyHearts1 = (base.GetControl("Button_Hearts01") as Button); Button expr_BC = this.m_btBuyHearts1; expr_BC.Click = (EZValueChangedDelegate)Delegate.Combine(expr_BC.Click, new EZValueChangedDelegate(this.OnClickBuyHearts)); this.m_btBuyHearts1.DeleteSpriteText(); this.m_btBuyHearts2 = (base.GetControl("Button_Hearts02") as Button); Button expr_104 = this.m_btBuyHearts2; expr_104.Click = (EZValueChangedDelegate)Delegate.Combine(expr_104.Click, new EZValueChangedDelegate(this.OnClickBuyHearts)); this.m_btBuyHearts2.DeleteSpriteText(); this.m_btBuySoulGem = (base.GetControl("Button_SoulGem01") as Button); this.m_btBuySoulGem.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBuyHearts)); this.m_btBuySoulGem.DeleteSpriteText(); this.m_btBuySoulGem2 = (base.GetControl("Button_SoulGem02") as Button); this.m_btBuySoulGem2.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBuyHearts)); this.m_btBuySoulGem2.DeleteSpriteText(); this.costumeMenu = (base.GetControl("BT_Costume") as Button); this.costumeMenu.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCostumeMenu)); this.newCostume = (base.GetControl("Icon_New") as DrawTexture); this.newCostume.Visible = NrTSingleton <NrCharCostumeTableManager> .Instance.IsNewCostumeExist(); this.m_lbCostume = (base.GetControl("LB_Costume") as Label); if (NrTSingleton <ContentsLimitManager> .Instance.IsCostumeLimit()) { this.costumeMenu.Visible = false; this.newCostume.Visible = false; this.m_lbCostume.Visible = false; this.costumeMenu.SetValueChangedDelegate(null); } this.m_btAttend = (base.GetControl("BT_DailyCheck") as Button); this.m_btAttend.Click = new EZValueChangedDelegate(this.OnAttend); this.m_bxAttend = (base.GetControl("Box_Notice2") as Box); this.m_lbAttend = (base.GetControl("LB_DailyCheck") as Label); this.Attend_Notice_Show(); this.m_lbHearts = (base.GetControl("Label_Hearts") as Label); this.m_lbHearts.SetText(string.Empty); this.m_lbSoulGems = (base.GetControl("Label_SoulGemLabel") as Label); this.m_lbSoulGems.SetText(string.Empty); this.gold = (base.GetControl("Label_GoldLabel") as Label); this.oldMoney = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money; this.gold.Text = ANNUALIZED.Convert(this.oldMoney); this.btWillCharge1 = (base.GetControl("Button_WillCharge1") as Button); this.m_lbActivityTime = (base.GetControl("Label_Time") as Label); this.m_lb_WillNum = (base.GetControl("Label_WillNum") as Label); if (NrTSingleton <ContentsLimitManager> .Instance.IsWillSpend()) { Button expr_390 = this.btWillCharge1; expr_390.Click = (EZValueChangedDelegate)Delegate.Combine(expr_390.Click, new EZValueChangedDelegate(this.OnClickWillCharge)); this.btWillCharge1.DeleteSpriteText(); } else { this.btWillCharge1.Visible = false; this.m_lbActivityTime.Visible = false; this.m_lb_WillNum.Visible = false; } this.m_dwRightTop = (base.GetControl("DrawTexture_MainBG_RightTop") as DrawTexture); this.m_dwRightTop.SetLocation(GUICamera.width - this.m_dwRightTop.GetSize().x, 0f); this.m_dwRightBottom = (base.GetControl("DrawTexture_MainBG_RightBottom") as DrawTexture); this.m_dwRightBottom.SetLocation(GUICamera.width - this.m_dwRightBottom.GetSize().x, GUICamera.height - this.m_dwRightBottom.GetSize().y); this.m_bxNotice = (base.GetControl("Box_Notice") as Box); int num = NrTSingleton <NrTable_BurnningEvent_Manager> .Instance.CurrentEventCount(); this.m_bxNotice.SetText(NrTSingleton <CTextParser> .Instance.GetTextColor("1002") + num.ToString()); this.m_btEvent = (base.GetControl("BT_Event") as Button); this.m_btEvent.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickEvent)); this.m_btnTimeShop = (base.GetControl("BT_TimeShop") as Button); this.m_btnTimeShop.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_TimeShop)); this.m_lbTimeShop = (base.GetControl("LB_Timeshop") as Label); this.m_lbTimeShopRemain = (base.GetControl("LB_Timeshop_Remain") as Label); this.m_dtTimeShopBG1 = (base.GetControl("DT_TimeShop_timeBG01") as DrawTexture); this.m_dtTimeShopBG2 = (base.GetControl("DT_TimeShop_timeBG01_C_C") as DrawTexture); if (!NrTSingleton <ContentsLimitManager> .Instance.IsTimeShop()) { this.m_btnTimeShop.Visible = false; this.m_lbTimeShop.Visible = false; this.m_lbTimeShopRemain.Visible = false; this.m_dtTimeShopBG1.Visible = false; this.m_dtTimeShopBG2.Visible = false; } if (0 >= NkUserInventory.GetInstance().Get_First_ItemCnt(70000)) { this.m_lbHearts.SetText(this.m_iHeartsNum.ToString()); } if (0 >= NkUserInventory.GetInstance().Get_First_ItemCnt(70002)) { this.m_lbSoulGems.SetText(this.m_iSoulGemsNum.ToString()); } }
public override void SetComponent() { this.m_dtCharBG = new DrawTexture[4]; this.m_btSelect = new Button[4]; this.m_btDetail = new Button[4]; this.m_dtShadowBG = new DrawTexture[4]; string text = string.Empty; this.m_dtMaingBG = (base.GetControl("BT_DrawTexture_DrawTexture22") as DrawTexture); Texture2D texture2D; for (int i = 0; i < 4; i++) { text = string.Format("BT_DrawTexture_CharBG{0}", (i + 1).ToString()); this.m_dtCharBG[i] = (base.GetControl(text) as DrawTexture); text = string.Format("BT_Select0{0}", (i + 1).ToString()); this.m_btSelect[i] = (base.GetControl(text) as Button); this.m_btSelect[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelect)); text = string.Format("BT_Detail0{0}", (i + 1).ToString()); this.m_btDetail[i] = (base.GetControl(text) as Button); this.m_btDetail[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickDetail)); text = string.Format("BT_DrawTexture_CharShadow{0}", (i + 1).ToString()); this.m_dtShadowBG[i] = (base.GetControl(text) as DrawTexture); text = string.Format("UI/charselect/ChShadow" + NrTSingleton <UIDataManager> .Instance.AddFilePath, new object[0]); texture2D = (ResourceCache.GetResource(text) as Texture2D); if (null == texture2D) { CharChangeMainDlg.RequestDownload(text, new PostProcPerItem(CharChangeMainDlg._OnImageProcess), this.m_dtShadowBG[i]); } else { CharChangeMainDlg.SetTexture(this.m_dtShadowBG[i], texture2D); } } this.m_dtSelect = (base.GetControl("DT_Select01") as DrawTexture); this.m_dtSelect.Hide(true); this.m_btSelect[0].TabIndex = 2; this.m_btSelect[1].TabIndex = 3; this.m_btSelect[2].TabIndex = 1; this.m_btSelect[3].TabIndex = 4; this.m_btDetail[0].TabIndex = 2; this.m_btDetail[1].TabIndex = 3; this.m_btDetail[2].TabIndex = 1; this.m_btDetail[3].TabIndex = 4; this.m_lbMoney = (base.GetControl("LB_Gold") as Label); charSpend charSpend = NrTSingleton <NrBaseTableManager> .Instance.GetCharSpend(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel().ToString()); if (charSpend != null) { this.m_lNeedMoney = charSpend.lCharChangeGold; } this.m_lbMoney.SetText(ANNUALIZED.Convert(this.m_lNeedMoney)); this.m_HelpButton = (base.GetControl("Help_Button") as Button); this.m_HelpButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp)); this.m_btChange = (base.GetControl("BT_Change") as Button); this.m_btChange.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickChange)); text = string.Format("UI/charselect/ChaSelect_BG" + NrTSingleton <UIDataManager> .Instance.AddFilePath, new object[0]); texture2D = (ResourceCache.GetResource(text) as Texture2D); if (null == texture2D) { CharChangeMainDlg.RequestDownload(text, new PostProcPerItem(CharChangeMainDlg._OnImageProcess), this.m_dtMaingBG); } else { CharChangeMainDlg.SetTexture(this.m_dtMaingBG, texture2D); } CharChangeMainDlg.SetCharImage(this.m_dtCharBG[0], 3); CharChangeMainDlg.SetCharImage(this.m_dtCharBG[1], 6); CharChangeMainDlg.SetCharImage(this.m_dtCharBG[2], 1); CharChangeMainDlg.SetCharImage(this.m_dtCharBG[3], 2); base.SetScreenCenter(); }
public static void SetTexture(DrawTexture dt, Texture2D texture2D) { dt.SetTexture(texture2D); }
public override void SetComponent() { this.m_txItemBG = (base.GetControl("DrawTexture_DrawTexture22") as DrawTexture); this.m_txBG = (base.GetControl("DrawTexture_subbg") as DrawTexture); this.m_txBG.SetTextureFromBundle("UI/Etc/reforge"); this.m_btConfirm = (base.GetControl("Button_confirm") as Button); this.m_btConfirm.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickConfirm)); this.m_lbItemName = (base.GetControl("Label_equip") as Label); this.m_lbHaveMoney = (base.GetControl("Label_text3") as Label); this.m_lbRequestMoney = (base.GetControl("Label_text5") as Label); this.m_lbItemGrade = (base.GetControl("Label_grade") as Label); this.m_dHelpBack = (base.GetControl("DrawTexture_TicketHelp1") as DrawTexture); this.m_dHelpBack.SetLocationZ(-0.3f); this.m_lbHelp = (base.GetControl("Label_TicketHelp") as Label); this.m_lbHelp.SetLocationZ(-0.4f); this.m_ivReforgeItem = (base.GetControl("ImageView_equip") as ImageView); this.m_ivReforgeItem.SetImageView(1, 1, 80, 80, 1, 1, (int)this.m_ivReforgeItem.GetSize().y); this.m_ivReforgeItem.spacingAtEnds = false; this.m_ivReforgeItem.touchScroll = false; this.m_ivReforgeItem.clipContents = false; this.m_ivReforgeItem.ListDrag = false; if (TsPlatform.IsMobile) { this.m_ivReforgeItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Mouse_Over)); } else { this.m_ivReforgeItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Mouse_Click)); this.m_ivReforgeItem.AddMouseOutDelegate(new EZValueChangedDelegate(this.On_Mouse_Out)); } this.m_ivReforgeItemTiket = (base.GetControl("ImageView_Ticket") as ImageView); this.m_ivReforgeItemTiket.SetImageView(1, 1, 80, 80, 1, 1, (int)this.m_ivReforgeItem.GetSize().y); this.m_ivReforgeItemTiket.spacingAtEnds = false; this.m_ivReforgeItemTiket.touchScroll = false; this.m_ivReforgeItemTiket.clipContents = false; this.m_ivReforgeItemTiket.ListDrag = false; this.m_btnReforgeHelp = (base.GetControl("Button_TicketHelp") as Button); this.m_btnReforgeHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickTicketHelp)); this.m_btnReforgeHelp.Visible = false; this.m_btnReforgeTicket = (base.GetControl("Button_Ticket") as Button); this.m_btnReforgeTicket.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickShowTicket)); this.m_btnReforgeTicket.Visible = false; this.m_lbRequestTicketCount = (base.GetControl("Label_Ticket4") as Label); this.m_lbHaveTicketCount = (base.GetControl("Label_Ticket5") as Label); this.m_lbTicketName = (base.GetControl("Label_Ticket1") as Label); this.m_lbAgitNPCInfo = (base.GetControl("Label_AgitNPC") as Label); if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.IsGuildAgit() && NrTSingleton <NewGuildManager> .Instance.IsAgitNPC(2)) { AGIT_NPC_SUB_DATA agitNPCSubDataFromNPCType = NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataFromNPCType(2); AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(agitNPCSubDataFromNPCType.ui8NPCType.ToString()); if (agitNPCSubDataFromNPCType != null && agitNPCData != null) { string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2747"), "count", agitNPCData.i32LevelRate[(int)(agitNPCSubDataFromNPCType.i16NPCLevel - 1)] / 100 }); this.m_lbAgitNPCInfo.SetText(empty); this.m_bAgitNPC = true; } } if (!this.m_bAgitNPC) { this.m_lbAgitNPCInfo.Visible = false; } this.ItemSlotClear(); float x = (GUICamera.width - base.GetSizeX() * 2f) / 2f; float y = (GUICamera.height - base.GetSizeY()) / 2f; base.SetLocation(x, y); this.m_lbHaveMoney.Text = Protocol_Item.Money_Format(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money); ReforgeSelectDlg reforgeSelectDlg = base.SetChildForm(G_ID.REFORGESELECT_DLG, Form.ChildLocation.RIGHT) as ReforgeSelectDlg; if (reforgeSelectDlg != null) { reforgeSelectDlg.Show(); } TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "PRODUCTION", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); NrTSingleton <FiveRocksEventManager> .Instance.Placement("itemreforgedlg_open"); base.SetShowLayer(3, false); base.SetShowLayer(4, false); }
public override void SetComponent() { base.SetScreenCenter(); this.bt_Enter = (base.GetControl("BT_Start") as Button); Button expr_22 = this.bt_Enter; expr_22.Click = (EZValueChangedDelegate)Delegate.Combine(expr_22.Click, new EZValueChangedDelegate(this._clickEnter)); this.lb_BossDESC = (base.GetControl("LB_BossDESC") as Label); this.lb_BossName = (base.GetControl("LB_BossName") as Label); int kind = 3806; MYTHRAIDINFO_DATA mythRaidInfoData = NrTSingleton <NrBaseTableManager> .Instance.GetMythRaidInfoData(NrTSingleton <MythRaidManager> .Instance.GetMyInfo().nRaidSeason.ToString() + NrTSingleton <MythRaidManager> .Instance.GetMyInfo().nRaidType.ToString()); if (mythRaidInfoData == null) { Debug.LogError("MythRaid Info Load Fail"); } else { kind = mythRaidInfoData.nMainBossCharKind; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(mythRaidInfoData.nMainBossCharKind); this.lb_BossDESC.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mythRaidInfoData.i32TextExplain.ToString())); if (charKindInfo != null) { this.lb_BossName.SetText(charKindInfo.GetName()); } } this.dt_RaidBoss = (base.GetControl("DT_RaidBoss_Img") as DrawTexture); this.dt_RaidBoss.SetTexture(eCharImageType.LARGE, kind, -1, string.Empty); this.dt_RaidBG = (base.GetControl("DT_Raid_BG") as DrawTexture); this.dt_RaidBG.SetTextureFromBundle("UI/mythicraid/mythic_raid_bg"); this.dt_RaidBoss_BG = (base.GetControl("DT_RaidBoss_BG") as DrawTexture); this.dt_RaidBoss_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_monsterbox"); this.dt_RaidBoss_effect = (base.GetControl("DT_RaidBoss_effect") as DrawTexture); NrTSingleton <FormsManager> .Instance.RequestAttachUIEffect("ui/mythicraid/fx_myth_raid_lobby_mobile", this.dt_RaidBoss_effect, this.dt_RaidBoss_effect.GetSize()); this.bt_RewardInfo = (base.GetControl("BT_RewardInfo") as Button); Button expr_1D8 = this.bt_RewardInfo; expr_1D8.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1D8.Click, new EZValueChangedDelegate(this.OnClickRewardGet)); this.bt_RewardInfo.Visible = false; this.bt_PartySearch = (base.GetControl("BT_PartySearch") as Button); Button expr_221 = this.bt_PartySearch; expr_221.Click = (EZValueChangedDelegate)Delegate.Combine(expr_221.Click, new EZValueChangedDelegate(this.OnClickPartySearch)); this.bt_SearchCancel = (base.GetControl("BT_SearchCancel") as Button); Button expr_25E = this.bt_SearchCancel; expr_25E.Click = (EZValueChangedDelegate)Delegate.Combine(expr_25E.Click, new EZValueChangedDelegate(this.OnClickSearchCancel)); this.bt_SearchCancel.Visible = false; this.partyCancelPosition = this.bt_SearchCancel.transform.localPosition; this.dt_RewardAlarm = (base.GetControl("DT_RewardAlarm") as DrawTexture); this.dt_RewardAlarm.Visible = false; this.dt_PartySearch_Waiting = (base.GetControl("DT_PartySearch_Waiting") as DrawTexture); this.btn_Back = (base.GetControl("BTN_Back") as Button); this.btn_Back.Click = new EZValueChangedDelegate(this.OnClickBack); this.tb_Rank = (base.GetControl("ToolBar_Rank") as Toolbar); this.nlb_Rank = (base.GetControl("NLB_Rank") as NewListBox); this.tb_Rank.Control_Tab[0].ButtonClick = new EZValueChangedDelegate(this.OnClickSoloRank); this.tb_Rank.Control_Tab[0].SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3152")); this.tb_Rank.Control_Tab[1].ButtonClick = new EZValueChangedDelegate(this.OnClickPartyRank); this.tb_Rank.Control_Tab[1].SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3153")); this.tb_Rank.Control_Tab[2].ButtonClick = new EZValueChangedDelegate(this.OnClickMyInfo); this.tb_Rank.Control_Tab[2].SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3138")); this.enablePosition[0] = this.tb_Rank.Control_Tab[0].spriteText.transform.localPosition; this.enablePosition[1] = this.tb_Rank.Control_Tab[1].spriteText.transform.localPosition; this.enablePosition[2] = this.tb_Rank.Control_Tab[2].spriteText.transform.localPosition; this.disablePosition[0].x = this.enablePosition[0].x; this.disablePosition[0].y = this.enablePosition[0].y - 7f; this.disablePosition[0].z = this.enablePosition[0].z; this.disablePosition[1].x = this.enablePosition[1].x; this.disablePosition[1].y = this.enablePosition[1].y - 7f; this.disablePosition[1].z = this.enablePosition[1].z; this.disablePosition[2].x = this.enablePosition[2].x; this.disablePosition[2].y = this.enablePosition[2].y - 7f; this.disablePosition[2].z = this.enablePosition[2].z; this.lb_MyRank_Rank = (base.GetControl("LB_MyRank_Rank") as Label); this.lb_MyRank_Name = (base.GetControl("LB_MyRank_Name") as Label); this.lb_MyRank_Damage = (base.GetControl("LB_MyRank_Damage") as Label); this.TextAniSetting(this.lb_MyRank_Damage, -1f, 0.01f, 0.5f, true, true, true); this.bt_RankPage1 = (base.GetControl("BT_RankPage1") as Button); Button expr_636 = this.bt_RankPage1; expr_636.Click = (EZValueChangedDelegate)Delegate.Combine(expr_636.Click, new EZValueChangedDelegate(this.OnClickPagePrev)); this.bt_RankPage2 = (base.GetControl("BT_RankPage2") as Button); Button expr_673 = this.bt_RankPage2; expr_673.Click = (EZValueChangedDelegate)Delegate.Combine(expr_673.Click, new EZValueChangedDelegate(this.OnClickPageNext)); this.lb_RankPageInfo = (base.GetControl("LB_RankPageInfo") as Label); this.lb_SolRank = (base.GetControl("LB_SolRank") as Label); this.TextAniSetting(this.lb_SolRank, 1.2f, 0.01f, 0.4f, true, true, false); this.lb_PartyRank = (base.GetControl("LB_PartyRank") as Label); this.TextAniSetting(this.lb_PartyRank, 1.2f, 0.01f, 0.4f, true, true, false); this.lb_SolDamage = (base.GetControl("LB_SolDamage") as Label); this.TextAniSetting(this.lb_SolDamage, -1f, 0.01f, 0.5f, true, true, true); this.lb_PartyDamage = (base.GetControl("LB_PartyDamage") as Label); this.TextAniSetting(this.lb_PartyDamage, -1f, 0.01f, 0.5f, true, true, true); this.dt_SoloRank_BG = (base.GetControl("DT_SoloRank_BG") as DrawTexture); this.dt_SoloRank_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_dragonframe"); this.dt_PartyRank_BG = (base.GetControl("DT_PartyRank_BG") as DrawTexture); this.dt_PartyRank_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_dragonframe"); this.lb_RoundInfo = (base.GetControl("LB_RoundInfo") as Label); this.dt_RoundInfo_BG = (base.GetControl("DT_RoundInfo_BG") as DrawTexture); this.dt_RoundInfo_BG.SetTextureFromBundle("UI/mythicraid/mythic_raid_dragonframe"); this.nlb_ClearRewardinfo = (base.GetControl("NLB_ClearRewardinfo") as NewListBox); this.nlb_ClearRewardinfo.BackButtonAniEnable(false); base.ShowBlackBG(1f); if (null != base.BLACK_BG) { base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); } }
public static void Progress() { GameFiber.StartNew(delegate { Game.DisplayNotification("[~b~Police~s~Life~r~S~s~]: ~b~Please wait ..."); GameFiber.Sleep(5000); PlayerAuthenticate.Login(); CreateStations.CreateGasStations(); while (true) { try { var player = Game.LocalPlayer.Character; if (player != null) { if (player.IsAlive) { HungerFactory.ConsumptionsHitPoints(myPlayer); DrawTexture.changePlayerLifeTexture(myPlayer); CalloutManagement.checkisCalloutRunning(); if (ScreenWidth != Game.Resolution.Width || ScreenHeight != Game.Resolution.Height) { //Reinitalisiere Texturen, wenn Auflösung sich ändert ScreenWidth = Game.Resolution.Width; ScreenHeight = Game.Resolution.Height; DrawTexture.initTextures(); } } if (player.IsInAnyVehicle(false)) { var currentVehicle = player.CurrentVehicle; if (currentVehicle != null) { currentVehicle.Metadata.BrakeEnable = (Game.IsKeyDownRightNow(ReadIniFile.HandBrakeKey) ? true : false); if (Game.IsKeyDown(ReadIniFile.ToggleEngineKey)) { currentVehicle.IsEngineOn = !currentVehicle.IsEngineOn; } if (Game.IsKeyDown(Keys.F9)) { if (!DrawTexture.getTextureVisible("policeRadio")) { var policeRadio = DrawTexture.getDrawObject("policeRadio"); if (policeRadio != null) { if (policeRadio.texture == null) { policeRadio.texture = DrawTexture.getTextureFromResource(Resources.policeradio); policeRadio.x = policeRadio.texture.Size.Width * 2; policeRadio.y = Game.Resolution.Height - policeRadio.texture.Size.Height; policeRadio.width = policeRadio.texture.Size.Width; policeRadio.height = policeRadio.texture.Size.Height; } DrawTexture.setTextureVisible("policeRadio", true); } else { Game.DisplayNotification("[~b~Police~s~Life~r~S~s~]: ~r~PoliceRadio Texture Initialization Error"); } } else { DrawTexture.setTextureVisible("policeRadio", false); } } if (Game.IsKeyDown(ReadIniFile.IndicatorLeftKey)) { if (currentVehicle.Metadata.IndicatorLeft != null && currentVehicle.Metadata.IndicatorLeft) { currentVehicle.Metadata.IndicatorLeft = false; currentVehicle.Metadata.IndicatorRight = false; DrawTexture.blinkTimer.Stop(); DrawTexture.blinkStatus = false; currentVehicle.IndicatorLightsStatus = VehicleIndicatorLightsStatus.Off; } else { currentVehicle.Metadata.IndicatorLeft = true; currentVehicle.Metadata.IndicatorRight = false; DrawTexture.blinkTimer.Start(); currentVehicle.IndicatorLightsStatus = VehicleIndicatorLightsStatus.LeftOnly; } } else if (Game.IsKeyDown(ReadIniFile.IndicatorRightKey)) { if (currentVehicle.Metadata.IndicatorRight != null && currentVehicle.Metadata.IndicatorRight) { currentVehicle.Metadata.IndicatorRight = false; currentVehicle.Metadata.IndicatorLeft = false; DrawTexture.blinkTimer.Stop(); DrawTexture.blinkStatus = false; currentVehicle.IndicatorLightsStatus = VehicleIndicatorLightsStatus.Off; } else { currentVehicle.Metadata.IndicatorRight = true; currentVehicle.Metadata.IndicatorLeft = false; DrawTexture.blinkTimer.Start(); currentVehicle.IndicatorLightsStatus = VehicleIndicatorLightsStatus.RightOnly; } } else if (Game.IsKeyDown(ReadIniFile.IndicatorBothKey)) { if (currentVehicle.Metadata.IndicatorRight != null && currentVehicle.Metadata.IndicatorRight && currentVehicle.Metadata.IndicatorLeft != null && currentVehicle.Metadata.IndicatorLeft) { currentVehicle.Metadata.IndicatorRight = false; currentVehicle.Metadata.IndicatorLeft = false; DrawTexture.blinkTimer.Stop(); DrawTexture.blinkStatus = false; currentVehicle.IndicatorLightsStatus = VehicleIndicatorLightsStatus.Off; } else { currentVehicle.Metadata.IndicatorRight = true; currentVehicle.Metadata.IndicatorLeft = true; DrawTexture.blinkTimer.Start(); currentVehicle.IndicatorLightsStatus = VehicleIndicatorLightsStatus.Both; } } } // If the player increases the first time in the vehicle if (playerEnterVehicle == false) { playerEnterVehicle = true; // Then there is no longer the first time dbVehicle = DBVehicleManager.SelectVehicle(player); // When he got no DBVehicle if (dbVehicle == null) { // We use DBVehicle - We store the vehicle in the database DBVehicleManager.InsertVehicle(DBVehicleFactory.GetRandomVehicle(player.CurrentVehicle.LicensePlate)); dbVehicle = DBVehicleManager.SelectVehicle(player); } // We know this vehicle, this vehicle is in our database if (dbVehicle != null) { } GameFiber.Yield(); } // We start to calculate the tank fuelConsumption.PlayerIsDriving(player, dbVehicle); // Displays only the tank level when the player moves more than 5Kmh if (DrawTexture.getTextureVisible("SpeedoMeter") == false && NativeFunction.CallByName <int>("GET_FOLLOW_PED_CAM_VIEW_MODE") != 4 && !player.IsDead) { //Enable Speedo if in Vehicle DrawTexture.toggleSpeedoTexture(true); } else if (NativeFunction.CallByName <int>("GET_FOLLOW_PED_CAM_VIEW_MODE") == 4 && !player.IsDead) { if (ReadIniFile.viewInCockpit) { //Enable Speedo if in Vehicle and Cockpit View if enabled DrawTexture.toggleSpeedoTexture(true); } else { //Disable Speedo if in Vehicle and Cockpit View if wanted DrawTexture.toggleSpeedoTexture(false); } } else if (DrawTexture.getTextureVisible("SpeedoMeter") == true && player.IsDead) { //Disable Speedo, because Player Dead DrawTexture.toggleSpeedoTexture(false); } DrawTexture.changeSpeedoTexture(dbVehicle); } if (!player.IsInAnyVehicle(false) && playerEnterVehicle) { // Then we set this field to False // So the next boarding is his first time playerEnterVehicle = false; DrawTexture.toggleSpeedoTexture(false); // Memory the vehicle tank when the player leaves the vehicle DBVehicleManager.UpdateVehicle(dbVehicle, dbVehicle.tankful); GameFiber.Yield(); } if (Game.IsKeyDownRightNow(ReadIniFile.ViewOverlayKey)) { DrawTexture.setTextureVisible("Hungery", true); DrawText.DrawMoneyStatus(); if (DutyState && ShiftWork.inShiftWork) { DrawText.DrawShiftWorkStatus(); } } else { DrawTexture.setTextureVisible("Hungery", false); } if (DutyState) { if (Game.IsKeyDown(Keys.F7)) { /* if (!DrawTexture.getTextureVisible("policeRadio")) * { * DrawTexture.setTextureVisible("policeRadio", true); * DrawTexture.setTextureVisible("policeRadioInner", true); * } * else * { * DrawTexture.setTextureVisible("policeRadio", false); * DrawTexture.setTextureVisible("policeRadioInner", false); * } * Vehicle v = null; * vehicles.TryTake(out v); * if(v != null) * { * Game.LocalPlayer.Character.Position = v.RearPosition; * }*/ } var position = player.Position; for (int i = 0; i < CreateStations.stations.Count; i++) { // If the position of the player to a station is less than if (position.DistanceTo(CreateStations.stations[i].position) <= 30) { CreateStations.stations[i].TryUse(player, dbVehicle, myPlayer); } if (position.DistanceTo(CreateStations.stations[i].position) <= 3000f) { CreateStations.stations[i].iconBlip.Alpha = 1.0f; } else { CreateStations.stations[i].iconBlip.Alpha = 0.0f; } } foreach (Vector3 sPed in ShiftWork.shiftPed) { if (Vector3.Distance(sPed, position) <= 1 && !ShiftWork.inShiftWork) { Game.DisplayHelp("Want to start your shift work? ~g~(" + (new KeysConverter()).ConvertToString(ReadIniFile.ShiftWorkStartKey) + ") Yes~s~ - ~r~(" + (new KeysConverter()).ConvertToString(ReadIniFile.ShiftWorkCancelKey) + ") No"); if (Game.IsKeyDown(ReadIniFile.ShiftWorkStartKey)) { ShiftWork.arrestedPeds = 0; ShiftWork.inShiftWork = true; ShiftWork.Start(); LiveTicker.AddTicker("I started my shift work"); } break; } else if (Vector3.Distance(sPed, position) <= 1 && ShiftWork.inShiftWork) { Game.DisplayHelp("Want to cancel your shift work? ~g~(" + (new KeysConverter()).ConvertToString(ReadIniFile.ShiftWorkStartKey) + ") Yes~s~ - ~r~(" + (new KeysConverter()).ConvertToString(ReadIniFile.ShiftWorkCancelKey) + ") No"); if (Game.IsKeyDown(ReadIniFile.ShiftWorkStartKey)) { ShiftWork.inShiftWork = false; LiveTicker.AddTicker("I canceled my shift work"); ShiftWork.timer.Stop(); NotificationManager.addNotification("[~b~Police~s~Life~r~S~s~]: Your shift was ~r~canceled by yourself"); } break; } } // if the player is in a shiftwork if (ShiftWork.inShiftWork) { if (player.IsDead && !playerDeath) { playerDeath = true; ShiftWork.inShiftWork = false; LiveTicker.AddTicker("Dies while his shift work"); ShiftWork.timer.Stop(); NotificationManager.addNotification("[~b~Police~s~Life~r~S~s~]: The shift work was ~r~terminated~s~ because ~r~you died."); } } if (player.IsAlive && playerDeath) { playerDeath = false; } } } }catch (Exception ex) { Game.LogTrivial(ex.ToString()); } GameFiber.Yield(); } }); GameFiber.StartNew(delegate { while (true) { var player = Game.LocalPlayer.Character; if (player != null) { if (PlayerAuthenticate.isLogged) { LiveTicker.SendTickerToServer(); var nearbyPeds = player.GetNearbyPeds(10); if (nearbyPeds.Count() > 0) { int arrested = 0; var position = player.Position; foreach (Ped np in nearbyPeds) { if (!np.IsValid()) { continue; } if (np.IsDead) { continue; } if (Vector3.Distance(np.Position, position) <= 20) { if (Functions.IsPedArrested(np) && Functions.GetPedArrestingOfficer(np) == player) { if (!arrestedPeds.Contains(np)) { arrestedPeds.Add(np); if (ShiftWork.inShiftWork) { ShiftWork.arrestedPeds += 1; } arrested++; } } } } if (arrested > 0) { ExperienceManager.addArrestedPeds(arrested, ShiftWork.inShiftWork); } } if (arrestedPeds.Count() > 0) { for (int i = arrestedPeds.Count - 1; i >= 0; i--) { if (!arrestedPeds[i].IsValid()) { arrestedPeds.RemoveAt(i); continue; } if (!arrestedPeds[i].IsDead) { continue; } ExperienceManager.UpdateExp(-20, "Suspect Died in your presence"); arrestedPeds.RemoveAt(i); } } } } NotificationManager.TakeNotification(); GameFiber.Sleep(2000); } }); }
public override void SetComponent() { this.dtBackGround = (base.GetControl("Bg_Win") as DrawTexture); this.dtBackGround.AddBoxCollider(); this.dtBackGround.SetUseBoxCollider(true); this.m_lbBattleResult = (base.GetControl("Label_Label6") as Label); for (int i = 0; i < 5; i++) { int num = i + 1; this.m_lbGeneralName[i] = (base.GetControl("Label_Slot" + num + "_Name") as Label); this.m_lbGeneralLevel[i] = (base.GetControl("Label_Slot" + num + "_Lv") as Label); this.m_lbGeneralExp[i] = (base.GetControl("Label_Slot" + num + "_Lael2") as Label); this.m_lbExpGot[i] = (base.GetControl("Label_Slot" + num + "_Lael1") as Label); this.m_lbGeneralDeathSOL[i] = (base.GetControl("Label_Slot" + num + "_Lael3") as Label); this.m_lbGeneralinjurySOL[i] = (base.GetControl("Label_Slot" + num + "_Lael4") as Label); this.m_dtGeneralBG[i] = (base.GetControl("DrawTexture_Slot" + num + "_bg") as DrawTexture); this.m_dtGeneralIconBG[i] = (base.GetControl("DrawTexture_slot" + num + "_GBG1") as DrawTexture); this.m_dtExpBG[i] = (base.GetControl("DrawTexture_slot" + num + "_GBG2") as DrawTexture); this.m_dtSOLBG[i] = (base.GetControl("DrawTexture_slot" + num + "_GBG3") as DrawTexture); this.m_dtGeneralIcon[i] = (base.GetControl("DrawTexture_slot" + num + "_Img1") as DrawTexture); this.m_dtExp[i] = (base.GetControl("DrawTexture_slot" + num + "_Img2") as DrawTexture); this.m_dtSOL[i] = (base.GetControl("DrawTexture_slot" + num + "_Img3") as DrawTexture); } this.m_btClose = (base.GetControl("Button_Button90") as Button); Button expr_27D = this.m_btClose; expr_27D.Click = (EZValueChangedDelegate)Delegate.Combine(expr_27D.Click, new EZValueChangedDelegate(this.OnClickClose)); if (Screen.width > 1024) { this.m_btTakeItem = (base.GetControl("Button_Close2") as Button); Button expr_2C9 = this.m_btTakeItem; expr_2C9.Click = (EZValueChangedDelegate)Delegate.Combine(expr_2C9.Click, new EZValueChangedDelegate(this.OnClickTakeItem)); Button button = base.GetControl("Button_Close") as Button; button.Hide(true); } else { this.m_btTakeItem = (base.GetControl("Button_Close") as Button); Button expr_323 = this.m_btTakeItem; expr_323.Click = (EZValueChangedDelegate)Delegate.Combine(expr_323.Click, new EZValueChangedDelegate(this.OnClickTakeItem)); Button button2 = base.GetControl("Button_Close2") as Button; button2.Hide(true); } this.m_listbox_Item = (base.GetControl("ListBox_ListBox84") as ListBox); this.m_listbox_Item.UseColumnRect = true; this.m_listbox_Item.ColumnNum = 12; this.m_listbox_Item.LineHeight = 66f; this.m_listbox_Item.SetColumnRect(0, 0, 0, 61, 61); this.m_listbox_Item.SetColumnRect(1, 0, 0, 60, 60); this.m_listbox_Item.SetColumnRect(2, 67, 9, 158, 20, SpriteText.Anchor_Pos.Middle_Left); this.m_listbox_Item.SetColumnRect(3, 68, 34, 158, 20, SpriteText.Anchor_Pos.Middle_Left); this.m_listbox_Item.SetColumnRect(4, 230, 0, 61, 61); this.m_listbox_Item.SetColumnRect(5, 230, 0, 60, 60); this.m_listbox_Item.SetColumnRect(6, 297, 9, 158, 20, SpriteText.Anchor_Pos.Middle_Left); this.m_listbox_Item.SetColumnRect(7, 297, 34, 158, 20, SpriteText.Anchor_Pos.Middle_Left); this.m_listbox_Item.SetColumnRect(8, 460, 0, 61, 61); this.m_listbox_Item.SetColumnRect(9, 460, 0, 60, 60); this.m_listbox_Item.SetColumnRect(10, 527, 9, 158, 20, SpriteText.Anchor_Pos.Middle_Left); this.m_listbox_Item.SetColumnRect(11, 527, 34, 158, 20, SpriteText.Anchor_Pos.Middle_Left); this.m_listbox_Item.SelectStyle = "Com_I_Transparent"; this.dtSymbol_Win = (base.GetControl("Symbol_Win") as DrawTexture); this.dtSymbol_Win.SetTextureKey("Bat_I_ResultWin"); this.dtSymbol_Win.SetAlpha(0.6f); this.dtSymbol_Lose = (base.GetControl("Symbol_Lose") as DrawTexture); this.dtSymbol_Lose.SetTexture("Bat_I_ResultLose"); this.dtSymbol_Lose.SetAlpha(0.6f); this.dtSymbol_Expedition = (base.GetControl("Symbol_Expedition") as DrawTexture); this.dtSymbol_Expedition.SetTexture("Bat_I_Expedition"); }
public override void SetComponent() { this.m_obAnger = new ColosseumObserverControlDlg.OBSERVER_ANGER[2]; this.m_dtAngerFrame1 = (base.GetControl("DT_AngerFrame_1P") as DrawTexture); this.m_dtAngerFrame2 = (base.GetControl("DT_AngerFrame_2P") as DrawTexture); Texture2D texture2D = CResources.Load(NrTSingleton <UIDataManager> .Instance.FilePath + "Texture/AngerBG") as Texture2D; if (texture2D != null) { if (this.m_dtAngerFrame1 != null) { this.m_dtAngerFrame1.SetTexture(texture2D); } if (this.m_dtAngerFrame2 != null) { this.m_dtAngerFrame2.SetTexture(texture2D); } } this.m_btExit = (base.GetControl("btn_Retreat") as Button); Button expr_B9 = this.m_btExit; expr_B9.Click = (EZValueChangedDelegate)Delegate.Combine(expr_B9.Click, new EZValueChangedDelegate(this.OnClickRetreat)); this.m_obSoldier = new ColosseumObserverControlDlg.OBSERVER_SOLDIERINFO[2][]; for (int i = 0; i < 2; i++) { this.m_obAnger[i] = new ColosseumObserverControlDlg.OBSERVER_ANGER(); this.m_obAnger[i].m_nMaxAngerPoint = 1000; string name = string.Empty; name = string.Format("DT_AngerGage_{0}P", (i + 1).ToString("0")); this.m_obAnger[i].m_dtAngerGage = (base.GetControl(name) as DrawTexture); name = string.Format("LB_AngerNum_{0}P", (i + 1).ToString("0")); this.m_obAnger[i].m_lbAngerPoint = (base.GetControl(name) as Label); this.m_obAnger[i].m_lbAngerPoint.SetText("0"); this.m_obAnger[i].m_fMaxAngerSize = this.m_obAnger[i].m_dtAngerGage.GetSize().y; this.m_obAnger[i].m_fBeforeAngerSize = -1f; this.m_obAnger[i].m_fLoactionY = this.m_obAnger[i].m_dtAngerGage.GetLocationY(); this.SetAngerText((eBATTLE_ALLY)i); this.m_obSoldier[i] = new ColosseumObserverControlDlg.OBSERVER_SOLDIERINFO[6]; for (int j = 0; j < 6; j++) { this.m_obSoldier[i][j] = new ColosseumObserverControlDlg.OBSERVER_SOLDIERINFO(); name = string.Format("ItemTexture_SolFace_{0}P_{1}", (i + 1).ToString("0"), (j + 1).ToString("00")); this.m_obSoldier[i][j].m_itSol = (base.GetControl(name) as ItemTexture); this.m_obSoldier[i][j].m_itSol.AddGameObjectDelegate(new EZGameObjectDelegate(this.TurnEffect)); NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_SKILL_ACTIVE", this.m_obSoldier[i][j].m_itSol, this.m_obSoldier[i][j].m_itSol.GetSize()); name = string.Format("DrawTexture_SolBG_{0}P_{1}", (i + 1).ToString("0"), (j + 1).ToString("00")); this.m_obSoldier[i][j].m_dtBG = (base.GetControl(name) as DrawTexture); this.m_obSoldier[i][j].m_dtBG.AddGameObjectDelegate(new EZGameObjectDelegate(this.HitEffect)); NrTSingleton <FormsManager> .Instance.AttachEffectKey("BATTLE_HIT_UI", this.m_obSoldier[i][j].m_dtBG, this.m_obSoldier[i][j].m_dtBG.GetSize()); name = string.Format("DrawTexture_HPBarPrg_{0}P_{1}", (i + 1).ToString("0"), (j + 1).ToString("00")); this.m_obSoldier[i][j].m_dtHP = (base.GetControl(name) as DrawTexture); this.m_obSoldier[i][j].m_faxHpSize = this.m_obSoldier[i][j].m_dtHP.GetSize().x; name = string.Format("DrawTexture_DeadMark_{0}P_{1}", (i + 1).ToString("0"), (j + 1).ToString("00")); this.m_obSoldier[i][j].m_dtDeadMark = (base.GetControl(name) as DrawTexture); this.m_obSoldier[i][j].m_dtDeadMark.Visible = false; name = string.Format("DrawTexture_QuestionMark_{0}P_{1}", (i + 1).ToString("0"), (j + 1).ToString("00")); this.m_obSoldier[i][j].m_dtQuestion = (base.GetControl(name) as DrawTexture); this.m_obSoldier[i][j].m_dtQuestion.Visible = true; } } this.MakeAllBattleCharInfo(); this._SetDialogPos(); }