Example #1
0
    private void ShowToolTip(IUIObject pObj)
    {
        ItemTexture itemTexture = (ItemTexture)pObj;

        if (itemTexture == null)
        {
            return;
        }
        ItemTooltipDlg itemTooltipDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;

        if (itemTooltipDlg != null)
        {
            if (itemTexture.Data is int)
            {
                itemTooltipDlg.Set_Tooltip(base.Orignal_ID, (int)itemTexture.Data);
            }
            else if (itemTexture.Data is ITEM)
            {
                itemTooltipDlg.Set_Tooltip(base.Orignal_ID, itemTexture.Data as ITEM, null, false);
            }
            else
            {
                itemTooltipDlg.Close();
            }
        }
    }
 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();
 }
Example #3
0
    private void ClickItemDrawTexture(IUIObject obj)
    {
        ItemTexture itemTexture = (ItemTexture)obj;
        int         num         = (this.m_CurrentPage - 1) * ItemListDlg.NUM_ITEMLIST;

        num += (int)itemTexture.data;
        if (num >= this.m_ItemList.Count)
        {
            return;
        }
        SelectItemDlg selectItemDlg = (SelectItemDlg)NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SELECTITEM_DLG);

        SelectItemDlg.eType dlgType = selectItemDlg.DlgType;
        if (dlgType != SelectItemDlg.eType.Enhance)
        {
        }
        if (this._btItem[num] != null)
        {
            this._dtSelectItem.SetLocation(this._btItem[num].GetLocation().x, this._btItem[num].GetLocationY());
            this._dtSelectItem.Visible = true;
        }
        string itemMaterialCode = NrTSingleton <ItemManager> .Instance.GetItemMaterialCode(this.m_ItemList[num].m_nItemUnique);

        if (!string.IsNullOrEmpty(itemMaterialCode))
        {
            TsAudioManager.Container.RequestAudioClip("UI_ITEM", itemMaterialCode, "DROP", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
        }
        if (TsPlatform.IsMobile)
        {
            selectItemDlg.CloseNow();
        }
    }
    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();
    }
Example #5
0
    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_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 Item(int id, string name, int maxStackSize, ItemTexture texture)
 {
     this.id           = id;
     this.name         = name;
     this.maxStackSize = maxStackSize;
     this.texture      = texture;
 }
 public override void SetComponent()
 {
     this.m_lbTitle            = (base.GetControl("Label_title") as Label);
     this.m_lbClass            = (base.GetControl("Label_name") as Label);
     this.m_lbType             = (base.GetControl("Label_kind") as Label);
     this.m_lbMainOption       = (base.GetControl("Label_01") as Label);
     this.m_lbSubOption        = (base.GetControl("Label_02") as FlashLabel);
     this.m_lbText             = (base.GetControl("Label_03") as FlashLabel);
     this.m_lbItemSkillName    = (base.GetControl("Label_04") as FlashLabel);
     this.m_lbItemSkillText    = (base.GetControl("Label_05") as FlashLabel);
     this.m_lbItemSkillText2   = (base.GetControl("Label_07") as FlashLabel);
     this.m_flMainValue        = (base.GetControl("FlashLabel_01") as FlashLabel);
     this.m_flSubValue         = (base.GetControl("FlashLabel_02") as FlashLabel);
     this.m_itItemTex          = (base.GetControl("ItemTexture_Item") as ItemTexture);
     this.m_txClass            = (base.GetControl("DrawTexture_class") as DrawTexture);
     this.m_txBG               = (base.GetControl("DrawTexture_BG") as DrawTexture);
     this.m_btnEquip           = (base.GetControl("Button_Button01") as Button);
     this.m_btnUpgrade         = (base.GetControl("Button_Button02") as Button);
     this.m_btnSell            = (base.GetControl("Button_Button03") as Button);
     this.m_btnEquip.Visible   = false;
     this.m_btnUpgrade.Visible = false;
     this.m_btnSell.Visible    = false;
     this.m_txSetItemView_01   = (base.GetControl("DT_GRA") as DrawTexture);
     this.m_txSetItemView_02   = (base.GetControl("DT_SETICON") as DrawTexture);
     this.m_txSetItemView_03   = (base.GetControl("DT_SetText") as DrawTexture);
     this.m_btnSetItemView     = (base.GetControl("BT_SET") as Button);
     this.m_btnSetItemView.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSetItemView));
     this.SetItemView(false);
     this.m_txLine = (base.GetControl("DrawTexture_MainBorder") as DrawTexture);
 }
 public override void SetComponent()
 {
     this.m_lbTitle = (base.GetControl("LB_Title") as Label);
     for (int i = 0; i < 28; i++)
     {
         this.m_ItItemIcon[i] = (base.GetControl(string.Format("DT_ItemIcon{0}", i + 1)) as ItemTexture);
         this.m_ItItemIcon[i].UsedCollider(true);
         this.m_ItItemIcon[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickItemDT));
         this.m_lbDayNum[i]       = (base.GetControl(string.Format("LB_DayNum{0}", i + 1)) as Label);
         this.m_lbDayNum[i].Text  = string.Format("{0}", i + 1);
         this.m_lbReward[i]       = (base.GetControl(string.Format("Label_ItemName{0}", i + 1)) as Label);
         this.m_dtRewardClear[i]  = (base.GetControl(string.Format("DT_Check{0}", i + 1)) as DrawTexture);
         this.m_dtRewardItemBG[i] = (base.GetControl(string.Format("DT_CheckBG{0}", i + 1)) as DrawTexture);
     }
     this.m_btOK = (base.GetControl("Btn_OK") as Button);
     this.m_btOK.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickOK));
     this.m_btClose       = (base.GetControl("Button_Close") as Button);
     this.m_btClose.Click = new EZValueChangedDelegate(this.OnClickOK);
     this.m_laDday_Count  = (base.GetControl("LB_DdayCount") as Label);
     this.m_LB_ItemName   = (base.GetControl("LB_ItemName") as Label);
     this.m_IT_RewardItem = (base.GetControl("IT_RewardItem") as ItemTexture);
     this.m_IT_RewardItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickItemAttend));
     this.m_LB_RewardDay = (base.GetControl("LB_RewardDay") as Label);
     this.m_btItemGet    = (base.GetControl("Btn_Reward01") as Button);
     this.m_btItemGet.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Item_Get));
 }
Example #10
0
    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_lbItemTypeName = (base.GetControl("Label_name") as Label);
     this.m_itItemTex      = (base.GetControl("ItemTexture_Item") as ItemTexture);
     this.m_lbItemTitle    = (base.GetControl("Label_title") as Label);
     this.m_lbMainOption   = (base.GetControl("Label_01") as Label);
     this.m_flMainValue    = (base.GetControl("FlashLabel_01") as FlashLabel);
     this.m_lbSubOption    = (base.GetControl("Label_02") as FlashLabel);
     this.m_flSubValue     = (base.GetControl("FlashLabel_02") as FlashLabel);
     this.m_lbText         = (base.GetControl("Label_03") as FlashLabel);
     this.m_txLine         = (base.GetControl("DrawTexture_MainBorder") as DrawTexture);
     this.m_txBG           = (base.GetControl("DrawTexture_BG") as DrawTexture);
     this.m_btClose        = (base.GetControl("Button_Button01") as Button);
     this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickClose));
     this.m_btAllUse = (base.GetControl("Button_Button02") as Button);
     this.m_btAllUse.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickUse));
     this.m_ItemOpenValueSlider   = (base.GetControl("HSlider_HSlider1") as HorizontalSlider);
     this.m_ItemOpenValueSliderBG = (base.GetControl("DrawTexture_SliderBG") as DrawTexture);
     this.m_ItemOpenValue_textBG  = (base.GetControl("DrawTexture_Count") as DrawTexture);
     this.m_ItemOpenValue_Button  = (base.GetControl("Button_NumPad") as Button);
     this.m_ItemOpenValue_Button.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickInputOpenItem));
     this.m_lbItemOpenValue_Text = (base.GetControl("Label_Count") as Label);
     this.m_ItemOpenValue_Minus  = (base.GetControl("Button_MINUS") as Button);
     this.m_ItemOpenValue_Minus.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnValueMinus));
     this.m_ItemOpenValue_Add = (base.GetControl("Button_PLUS") as Button);
     this.m_ItemOpenValue_Add.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnValueAdd));
     base.SetScreenCenter();
     base.SetLocation(base.GetLocationX(), 10f);
 }
 public void SetSolImage(GUILDWAR_APPLY_MILITARY_DETAIL_INFO DetailInfo, ItemTexture it)
 {
     if (DetailInfo == null || it == null)
     {
         return;
     }
     it.SetSolImageTexure(eCharImageType.SMALL, DetailInfo.i32CharKind, (int)DetailInfo.ui8grade);
 }
Example #13
0
 public override void SetComponent()
 {
     this.m_DrawTextureBG         = (base.GetControl("DrawTexture_DrawTextureBG") as DrawTexture);
     this.m_itemTexture           = (base.GetControl("DrawTexture_DrawTexture1") as ItemTexture);
     this.m_itemName              = (base.GetControl("Label_Label1") as Label);
     this.m_itemNumber            = (base.GetControl("Label_Label2") as Label);
     this.m_DrawTextureBG.Visible = false;
 }
Example #14
0
    public override void SetComponent()
    {
        this.m_itBossMon      = (base.GetControl("ItemTexture_monster") as ItemTexture);
        this.m_itBossMonHP    = (base.GetControl("DrawTexture_hp") as DrawTexture);
        this.fHpLength        = this.m_itBossMonHP.GetSize().x;
        this.m_lbBossMonName  = (base.GetControl("Label_monstername") as Label);
        this.m_itAggroSolIcon = new ItemTexture[3];
        this.m_lbAggroSolVal  = new Label[3];
        this.m_dwAggroSol_bg1 = new DrawTexture[3];
        this.m_dwAggroSol_bg2 = new DrawTexture[3];
        for (int i = 0; i < 3; i++)
        {
            string name = string.Format("ItemTexture_{0}_sol", (i + 1).ToString());
            this.m_itAggroSolIcon[i]         = (base.GetControl(name) as ItemTexture);
            this.m_itAggroSolIcon[i].Visible = false;
            string name2 = string.Format("Label_{0}_label", (i + 1).ToString());
            this.m_lbAggroSolVal[i]         = (base.GetControl(name2) as Label);
            this.m_lbAggroSolVal[i].Visible = false;
            string name3 = string.Format("DrawTexture_{0}_bg01", (i + 1).ToString());
            this.m_dwAggroSol_bg1[i]         = (base.GetControl(name3) as DrawTexture);
            this.m_dwAggroSol_bg1[i].Visible = false;
            string name4 = string.Format("DrawTexture_{0}_bg02", (i + 1).ToString());
            this.m_dwAggroSol_bg2[i]         = (base.GetControl(name4) as DrawTexture);
            this.m_dwAggroSol_bg2[i].Visible = false;
        }
        this.m_dtGuildBossHpBG  = (base.GetControl("DrawTexture_gbooshp2") as DrawTexture);
        this.m_dtGuildBossHp    = (base.GetControl("DrawTexture_gbosshp") as DrawTexture);
        this.fGuildBossHpLength = this.m_dtGuildBossHp.GetSize().x;
        this.m_lbGuildBossHp    = (base.GetControl("Label_gaugetext") as Label);
        this.Hide();
        this.m_lbTitle             = (base.GetControl("Label_PageTitleLabel01") as Label);
        this.m_dtSubTitle1         = (base.GetControl("DT_SubTitle01") as DrawTexture);
        this.m_dtSubTitle2         = (base.GetControl("DT_SubTitle02") as DrawTexture);
        this.m_lbTitle.Visible     = false;
        this.m_dtSubTitle1.Visible = false;
        this.m_dtSubTitle2.Visible = false;
        if (Battle.BATTLE.BattleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_NEWEXPLORATION)
        {
            this.m_lbTitle.Visible     = true;
            this.m_dtSubTitle1.Visible = true;
            this.m_dtSubTitle2.Visible = true;
            string empty = string.Empty;
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3477"),
                "count1",
                NrTSingleton <NewExplorationManager> .Instance.GetFloor(),
                "count2",
                NrTSingleton <NewExplorationManager> .Instance.GetSubFloor()
            });

            this.m_lbTitle.SetText(empty);
        }
    }
 public override void SetComponent()
 {
     this.m_txItemAfter     = (base.GetControl("DrawTexture_equip3") as ItemTexture);
     this.m_lbItemAfterName = (base.GetControl("Label_equip2") as Label);
     this.m_lbItemAfterStat = (base.GetControl("Label_stat2") as Label);
     this.m_lbItemGrade     = (base.GetControl("Label_grade") as Label);
     this.m_btOK            = (base.GetControl("BT_Feed") as Button);
     this.m_btOK.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickConfirm));
     this.m_txItemBG = (base.GetControl("DrawTexture_equip2") as DrawTexture);
     this.m_txBG     = (base.GetControl("DrawTexture_bg2") as DrawTexture);
     this.m_txBG.SetTextureFromBundle("UI/Etc/reforge");
 }
Example #16
0
 public override void SetComponent()
 {
     if (TsPlatform.IsWeb)
     {
     }
     this.m_iSolFace       = (base.GetControl("ItemTexture_sol") as ItemTexture);
     this.m_dSolFrame      = (base.GetControl("DrawTexture_solframe") as DrawTexture);
     this.m_laTitle        = (base.GetControl("Label_title") as Label);
     this.m_Label_contents = (base.GetControl("Label_contents") as Label);
     this.m_btClose        = (base.GetControl("Button_Exit") as Button);
     this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm));
 }
Example #17
0
 public override void SetComponent()
 {
     this.m_IT_ItemIcon    = (base.GetControl("IT_ItemIcon") as ItemTexture);
     this.m_Label_title    = (base.GetControl("Label_title") as Label);
     this.m_LB_Notice      = (base.GetControl("LB_Notice") as Label);
     this.m_LB_ItemRank    = (base.GetControl("LB_ItemRank") as Label);
     this.m_LB_ItemSkillLv = (base.GetControl("LB_ItemSkillLv") as Label);
     this.m_Btn_Ok         = (base.GetControl("Btn_Ok") as Button);
     this.m_Btn_Ok.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnConfirm));
     base.ShowBlackBG(0.5f);
     base.SetScreenCenter();
     this.initData();
 }
Example #18
0
 public override void SetComponent()
 {
     this.m_lbTitle = (base.GetControl("Label_title") as Label);
     this.m_itItem  = (base.GetControl("DrawTexture_equip3") as ItemTexture);
     this.m_itItem.AddMouseOutDelegate(new EZValueChangedDelegate(this.On_Mouse_Out));
     this.m_dtItemBG  = (base.GetControl("DrawTexture_equip2") as DrawTexture);
     this.m_lbItem    = (base.GetControl("Label_equip2") as Label);
     this.m_lbInfo    = (base.GetControl("Label_stat2") as Label);
     this.m_btConfirm = (base.GetControl("Button_Confirm") as Button);
     this.m_btConfirm.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickConfirm));
     base.SetScreenCenter();
     base.SetupBalckBG("Win_T_BK", 0f, 0f, GUICamera.width * 1.43f, GUICamera.height * 1.43f, 0.5f, true, SpriteRoot.ANCHOR_METHOD.UPPER_LEFT, 0.1f);
 }
Example #19
0
    public override void SetComponent()
    {
        this.m_kList = (base.GetControl("NLB_GuildWarSelllist") as NewListBox);
        this.m_kList.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickList));
        this.m_kSelectItem = (base.GetControl("ImageView_equip") as ItemTexture);
        this.m_kSelectItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectItem));
        this.m_kSell = (base.GetControl("BT_Confirm") as Button);
        this.m_kSell.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSell));
        this.m_kName                  = (base.GetControl("LB_Itemname2") as Label);
        this.m_kLimitTicketNum        = (base.GetControl("LB_itemnum") as Label);
        this.m_kText                  = (base.GetControl("LB_TextBG") as Label);
        this.m_kExchangeLimit         = (base.GetControl("LB_LimitExchange") as Label);
        this.m_kExchangeLimit.Visible = false;
        this.m_kInputBox              = (base.GetControl("BT_NumPad") as Button);
        this.m_kInputBox.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickInputBox));
        this.m_kMinus = (base.GetControl("BT_CountDown") as Button);
        this.m_kMinus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickMinus));
        this.m_kPlus = (base.GetControl("BT_CountUp") as Button);
        this.m_kPlus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPlus));
        this.m_kAll = (base.GetControl("BT_MaxCountUp") as Button);
        this.m_kAll.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickAll));
        this.m_kSellNum            = (base.GetControl("TextField_Count") as TextField);
        this.m_kSellNum.NumberMode = true;
        this.m_kSelectItemName     = (base.GetControl("LB_ItemName1") as Label);
        this.m_kHelp = (base.GetControl("BT_Help01") as Button);
        this.m_kHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp));
        this.m_kHelp.Visible = false;
        this.m_kHelpTail     = (base.GetControl("DT_HelpTail01") as DrawTexture);
        this.m_kHelpTail.SetLocationZ(this.m_kHelpTail.GetLocation().z - 1f);
        this.m_kHelpTail.Visible = false;
        this.m_kHelpBG           = (base.GetControl("DT_HelpBG01") as DrawTexture);
        this.m_kHelpBG.SetLocationZ(this.m_kHelpBG.GetLocation().z - 1f);
        this.m_kHelpBG.Visible = false;
        this.m_kHelpText       = (base.GetControl("LB_HelpText01") as Label);
        this.m_kHelpText.SetLocationZ(this.m_kHelpText.GetLocation().z - 1f);
        this.m_kHelpText.Visible = false;
        this.m_GuildWar_Exchange_Limit.Clear();
        GS_EXCHANGE_GUILDWAR_LIMITCOUNT_INFO_REQ gS_EXCHANGE_GUILDWAR_LIMITCOUNT_INFO_REQ = new GS_EXCHANGE_GUILDWAR_LIMITCOUNT_INFO_REQ();

        if (gS_EXCHANGE_GUILDWAR_LIMITCOUNT_INFO_REQ != null)
        {
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_EXCHANGE_GUILDWAR_LIMITCOUNT_INFO_REQ, gS_EXCHANGE_GUILDWAR_LIMITCOUNT_INFO_REQ);
        }
        this.InitSelectItem();
        this.SetPoint();
        this.ShowTicketList();
        this.SetUsetTicketNum();
        base.SetScreenCenter();
    }
    public override void SetComponent()
    {
        this.m_laBoxItemName            = (base.GetControl("Label_BoxName") as Label);
        this.m_laItemName               = (base.GetControl("Label_ItemName") as Label);
        this.m_laItemNum                = (base.GetControl("Label_ItemNUM") as Label);
        this.m_dtItemIcon               = (base.GetControl("DrawTexture_Item_Img") as DrawTexture);
        this.m_itSelectItemIcon         = (base.GetControl("ItemTexture_Item_Img") as ItemTexture);
        this.m_itSelectItemIcon.Visible = false;
        this.m_dtBackAni                = (base.GetControl("DrawTexture_Ani") as DrawTexture);
        this.m_buExit = (base.GetControl("Button_Exit") as Button);
        Button expr_AC = this.m_buExit;

        expr_AC.Click = (EZValueChangedDelegate)Delegate.Combine(expr_AC.Click, new EZValueChangedDelegate(this.On_Exit_Button));
        base.SetScreenCenter();
    }
 public override void SetComponent()
 {
     this.m_dtItemBG     = (base.GetControl("DrawTexture_ItemBG") as DrawTexture);
     this.m_itItem       = (base.GetControl("ItemTexture_ItemIcon") as ItemTexture);
     this.m_lbItemName   = (base.GetControl("Label_ItemName") as Label);
     this.m_lbTradeCount = (base.GetControl("Label_TradeCount") as Label);
     this.m_btDetailInfo = (base.GetControl("Button_DetailInfo") as Button);
     this.m_btDetailInfo.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickDetailInfo));
     this.m_dtCostIcon   = (base.GetControl("Icon_Money01") as DrawTexture);
     this.m_lbDirectCost = (base.GetControl("Label_Cost01") as Label);
     this.m_btOK         = (base.GetControl("Button_OK") as Button);
     this.m_btOK.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickOK));
     this.m_btCancel = (base.GetControl("Button_NO") as Button);
     this.m_btCancel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCancel));
     base.SetScreenCenter();
     base.ShowBlackBG(0.5f);
 }
Example #22
0
 public override void SetComponent()
 {
     this.m_lbTitle           = (base.GetControl("LB_Title") as Label);
     this.m_lbIntroMsg        = (base.GetControl("LB_Greeting") as Label);
     this.m_lbInviteFriendExp = (base.GetControl("LB_MineText") as Label);
     this.m_lbFaceharKindName = (base.GetControl("LB_SubTitle01") as Label);
     this.m_ItFaceChar_Image  = (base.GetControl("IT_SolImage") as ItemTexture);
     this.m_dtMineChar_Image  = (base.GetControl("DT_MineImage") as DrawTexture);
     this.m_btFriendInvite    = (base.GetControl("BT_Accept") as Button);
     this.m_btFriendInvite.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickInviteFriend));
     this.m_btFriendCancel = (base.GetControl("BT_Refusal") as Button);
     this.m_btFriendCancel.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtCancelInvite));
     base.SetScreenCenter();
     base.ShowBlackBG(0.5f);
     this.Hide();
     TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "COMMUNITY", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
 }
Example #23
0
    private void SetDrawTexture(ItemTexture tex, string imageKey)
    {
        Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture(imageKey);

        if (null != texture)
        {
            tex.SetTexture(texture);
        }
        else
        {
            string  str     = string.Format("{0}{1}", imageKey, NrTSingleton <UIDataManager> .Instance.AddFilePath);
            WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName);
            wWWItem.SetItemType(ItemType.USER_ASSETB);
            wWWItem.SetCallback(new PostProcPerItem(this.SetImage), tex);
            TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true);
        }
    }
Example #24
0
    private static Texture2D getItemtexture(Item item)
    {
        for (int i = 0; i < itemTextureList.Count; ++i)
        {
            if (itemTextureList[i].item == item)
            {
                if (itemTextureList[i].sprite != item.sprite)
                {
                    itemTextureList.RemoveAt(i);
                    break;
                }
                return(itemTextureList[i].texture);
            }
        }

        ItemTexture itemTexture = new ItemTexture();

        itemTexture.item = item;
        TextureImporter ti = null;

        if (item.sprite != null)
        {
            ti = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(item.sprite.texture)) as TextureImporter;
        }
        if (ti == null || !ti.isReadable)
        {
            itemTexture.texture = null;
            itemTexture.sprite  = null;
        }
        else
        {
            Texture2D croppedTexture = new Texture2D((int)item.sprite.rect.width, (int)item.sprite.rect.height);
            Color[]   pixels         = item.sprite.texture.GetPixels((int)item.sprite.rect.x,
                                                                     (int)item.sprite.rect.y,
                                                                     (int)item.sprite.rect.width,
                                                                     (int)item.sprite.rect.height);
            croppedTexture.SetPixels(pixels);
            croppedTexture.Apply();
            itemTexture.texture = croppedTexture;
            itemTexture.sprite  = item.sprite;
        }

        itemTextureList.Add(itemTexture);
        return(itemTexture.texture);
    }
Example #25
0
 public override void SetComponent()
 {
     this.m_kHeroPoint  = (base.GetControl("Label_HeroPointCount") as Label);
     this.m_kEquipPoint = (base.GetControl("Label_ItemPointCount") as Label);
     this.m_kList       = (base.GetControl("NewListBox_TicketExchange") as NewListBox);
     this.m_kList.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickList));
     this.m_kList.MaxMultiSelectNum = 10;
     this.m_kTicket       = (base.GetControl("CheckBox_Ticket") as Toggle);
     this.m_kTicket.Value = true;
     this.m_kTicket.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickTicket));
     this.m_kEquipItem = (base.GetControl("CheckBox_Item") as Toggle);
     this.m_kEquipItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickEquipItem));
     this.m_kSelectItem = (base.GetControl("ImageView_equip") as ItemTexture);
     this.m_kSelectItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectItem));
     this.m_kSell = (base.GetControl("Button_confirm") as Button);
     this.m_kSell.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSell));
     this.m_kMinus = (base.GetControl("Button_CountDown") as Button);
     this.m_kMinus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickMinus));
     this.m_kPlus = (base.GetControl("Button_CountUp") as Button);
     this.m_kPlus.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickPlus));
     this.m_kAll = (base.GetControl("Button_MaxCountUp") as Button);
     this.m_kAll.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickAll));
     this.m_kMinus.Visible          = false;
     this.m_kPlus.Visible           = false;
     this.m_kAll.Visible            = false;
     this.m_kPoint                  = (base.GetControl("Label_text8") as Label);
     this.m_kSelectItemName         = (base.GetControl("Label_text") as Label);
     this.m_kSellNum                = (base.GetControl("TextField_Count") as TextField);
     this.m_kSellNum.NumberMode     = true;
     this.m_kSellNum.Visible        = false;
     this.m_kEquipCount             = (base.GetControl("Label_ItemCount") as Label);
     this.m_kTotalEquipPoint        = (base.GetControl("Label_Itemtext2") as Label);
     this.m_kEquipPointName         = (base.GetControl("Label_Itemtext") as Label);
     this.m_kEquipPointName.Visible = false;
     this.m_kHeroPointName          = (base.GetControl("Label_text2") as Label);
     this.m_kHeroPointName.Visible  = false;
     this.m_kTextNumBack            = (base.GetControl("DrawTexture_DrawTexture22_C") as DrawTexture);
     this.m_kTextNumBack.Visible    = false;
     this.m_kInputBox               = (base.GetControl("Button_NumPad") as Button);
     this.m_kInputBox.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickInputBox));
     this.SetPoint();
     this.ShowTicketList();
     base.SetShowLayer(2, false);
     base.SetScreenCenter();
 }
Example #26
0
 public override void SetComponent()
 {
     this.m_itSelectItem = (base.GetControl("ImageView_equip") as ItemTexture);
     this.m_lbText       = (base.GetControl("Label_text") as Label);
     this.m_lbEquip      = (base.GetControl("Label_equip") as Label);
     this.m_lbItemName   = (base.GetControl("Label_itemname") as Label);
     this.m_lbItemNum    = (base.GetControl("Label_itemnum") as Label);
     this.m_btConfirm    = (base.GetControl("Button_confirm") as Button);
     this.m_btConfirm.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickBuyItem));
     this.m_nlbSellList = (base.GetControl("NLB_Selllist") as NewListBox);
     this.m_nlbSellList.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSellList));
     this.m_lbTime          = (base.GetControl("Label_time") as Label);
     this.m_SoldOut         = (base.GetControl("Label_soldout") as Label);
     this.m_SoldOut.Visible = false;
     this.InitControl();
     base.SetScreenCenter();
     base.ShowBlackBG(0.5f);
 }
    public override void SetComponent()
    {
        this.m_lbBuffText            = (base.GetControl("Label_buff_desc") as Label);
        this.m_dwBuffIcon            = (base.GetControl("ItemTexture_buffIcon") as ItemTexture);
        this.m_nlDeadSolList         = (base.GetControl("NLB_Resurrection") as NewListBox);
        this.m_nlDeadSolList.Reserve = false;
        this.m_nlDeadSolList.Clear();
        base.AllHideLayer();
        this.m_nCheckBattleSkillUnique = new int[this.MAX_BATTLE_SKILL_SHOWUP];
        BATTLE_CONSTANT_Manager instance = BATTLE_CONSTANT_Manager.GetInstance();

        this.BATTLE_BUFFICON_SHOWTIME = (int)instance.GetValue(eBATTLE_CONSTANT.eBATTLE_CONSTANT_SKILL_DESC_TIME);
        if (this.BATTLE_BUFFICON_SHOWTIME == 0)
        {
            this.BATTLE_BUFFICON_SHOWTIME = 3;
        }
        this._SetDialogPos();
    }
Example #28
0
    private void SetImage(WWWItem _item, object _param)
    {
        if (_item.GetSafeBundle() == null)
        {
            return;
        }
        if (_item.GetSafeBundle().mainAsset == null)
        {
            return;
        }
        Texture2D texture2D = _item.GetSafeBundle().mainAsset as Texture2D;

        if (texture2D != null && _param is ItemTexture)
        {
            ItemTexture itemTexture = _param as ItemTexture;
            itemTexture.SetTexture(texture2D);
        }
    }
Example #29
0
    private void OnItemToolTip(IUIObject a_oObject)
    {
        ItemTexture itemTexture = a_oObject as ItemTexture;

        if (itemTexture != null)
        {
            ITEM iTEM = itemTexture.Data as ITEM;
            if (iTEM != null && iTEM.m_nItemUnique > 0)
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.TOOLTIP_DLG);

                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.ITEMTOOLTIP_DLG);

                ItemTooltipDlg itemTooltipDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;

                itemTooltipDlg.Set_Tooltip((G_ID)base.WindowID, iTEM, null, false);
            }
        }
    }
Example #30
0
    public override void SetComponent()
    {
        this.m_iItemIcon   = (base.GetControl("ItemTexture_ItemIcon") as ItemTexture);
        this.m_dIconBack   = (base.GetControl("DrawTexture_ItemBG") as DrawTexture);
        this.m_lItemName   = (base.GetControl("Label_ItemName") as Label);
        this.m_lSellGold   = (base.GetControl("Label_Gold") as Label);
        this.m_lItemCount  = (base.GetControl("Label_ItemNum") as Label);
        this.m_lExpectNum  = (base.GetControl("Label_ExpectNum") as Label);
        this.m_dNpcImg     = (base.GetControl("DrawTexture_NPCIMG") as DrawTexture);
        this.m_lTitle      = (base.GetControl("Label_title") as Label);
        this.m_lBubbleText = (base.GetControl("Label_BubbleText") as Label);
        this.m_bSellOK     = (base.GetControl("Button_OK") as Button);
        Button expr_E2 = this.m_bSellOK;

        expr_E2.Click  = (EZValueChangedDelegate)Delegate.Combine(expr_E2.Click, new EZValueChangedDelegate(this.OnSellOKCheck));
        this.m_btClose = (base.GetControl("Button_Exit") as Button);
        this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm));
        base.SetScreenCenter();
        base.SetShowLayer(1, true);
        base.SetShowLayer(2, false);
    }