public override void SetComponent() { this.m_bEquip = (base.GetControl("Button_Button1") as Button); this.m_bEquip.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickEquipItem)); this.m_bClose = (base.GetControl("Button_Button2") as Button); this.m_bClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickClose)); ItemTooltipDlg_Second itemTooltipDlg_Second = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.ITEMTOOLTIP_SECOND_DLG) as ItemTooltipDlg_Second; TsLog.LogWarning("ItemTooltipDlg_Second GetLocation() = {0}", new object[] { itemTooltipDlg_Second.GetLocation() }); base.SetLocation(GUICamera.width - base.GetSizeX(), GUICamera.height - base.GetSizeY(), itemTooltipDlg_Second.GetLocation().z - 2f); TsLog.LogWarning("This GetLocation() = {0}", new object[] { base.GetLocation() }); ItemEvolution_Dlg itemEvolution_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.ITEMEVOLUTION_DLG) as ItemEvolution_Dlg; if (itemEvolution_Dlg != null) { this.m_bEquip.SetEnabled(false); this.m_bEquip.Visible = false; this.m_bEquip.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.OnClickEquipItem)); } base.InteractivePanel.twinFormID = G_ID.ITEMTOOLTIP_SECOND_DLG; }
public void SetEvolutionResultData(GS_ITEMEVOLUTION_ACK pPacket) { this.m_SelectItem = NkUserInventory.GetInstance().GetItemFromItemID(pPacket.i64BaseItemID); if (this.m_SelectItem == null) { ItemEvolution_Dlg itemEvolution_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.ITEMEVOLUTION_DLG) as ItemEvolution_Dlg; if (itemEvolution_Dlg == null) { this.CloseForm(null); return; } NrCharUser nrCharUser = NrTSingleton <NkCharManager> .Instance.GetChar(1) as NrCharUser; if (nrCharUser == null) { return; } NkSoldierInfo soldierInfoFromSolID = nrCharUser.GetPersonInfo().GetSoldierInfoFromSolID(itemEvolution_Dlg.GetItemSelectSolID()); if (soldierInfoFromSolID != null) { this.m_SelectItem = soldierInfoFromSolID.GetEquipItemInfo().GetItemFromItemID(pPacket.i64BaseItemID); } } if (this.m_SelectItem == null) { return; } this.m_IT_ItemIcon.SetItemTexture(this.m_SelectItem); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2931"), "grade", NrTSingleton <ItemManager> .Instance.GetItemInfo(this.m_SelectItem.m_nItemUnique).m_nStarGrade, "target", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(this.m_SelectItem.m_nItemUnique) }); this.m_LB_ItemRank.SetText(empty); empty = string.Empty; int num = this.m_SelectItem.m_nOption[5]; int skillUnique = this.m_SelectItem.m_nOption[4]; BATTLESKILL_BASE battleSkillBase = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(skillUnique); if (battleSkillBase == null) { return; } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1292"), "skillname", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_strTextKey), "skilllevel", num }); this.m_LB_ItemSkillLv.SetText(empty); this.LoadSolComposeSuccessBundle(); this.m_Btn_Ok.SetEnabled(true); }