示例#1
0
    public override void SetComponent()
    {
        this.m_laBronzeExplain         = (base.GetControl("LB_BronzeUp") as Label);
        this.m_laBronzeExplain.Visible = false;
        this.m_lbColosseumMatchPoint   = (base.GetControl("Label_matchpoint") as Label);
        this.m_lbColosseumRank         = (base.GetControl("Label_rank") as Label);
        this.m_lbLeague         = (base.GetControl("LB_League") as Label);
        this.m_btColosseumStart = (base.GetControl("Button_OK") as Button);
        Button expr_80 = this.m_btColosseumStart;

        expr_80.Click        = (EZValueChangedDelegate)Delegate.Combine(expr_80.Click, new EZValueChangedDelegate(this.ClickStart));
        this.m_bAttackMakeUp = (base.GetControl("Button_form") as Button);
        Button expr_BD = this.m_bAttackMakeUp;

        expr_BD.Click = (EZValueChangedDelegate)Delegate.Combine(expr_BD.Click, new EZValueChangedDelegate(this.ClickForm));
        this.m_btRank = (base.GetControl("Button_rank") as Button);
        Button expr_FA = this.m_btRank;

        expr_FA.Click    = (EZValueChangedDelegate)Delegate.Combine(expr_FA.Click, new EZValueChangedDelegate(this.ClickOnRank));
        this.m_btAiMatch = (base.GetControl("Button_AIBattle") as Button);
        Button expr_137 = this.m_btAiMatch;

        expr_137.Click      = (EZValueChangedDelegate)Delegate.Combine(expr_137.Click, new EZValueChangedDelegate(this.OnClickAIBattle));
        this.m_btRewardInfo = (base.GetControl("Button_Info") as Button);
        Button expr_174 = this.m_btRewardInfo;

        expr_174.Click = (EZValueChangedDelegate)Delegate.Combine(expr_174.Click, new EZValueChangedDelegate(this.OnClickShowRewardInfo));
        this.m_dBGImg  = (base.GetControl("DT_Innerbg") as DrawTexture);
        this.m_dBGImg.SetTextureFromBundle("UI/PvP/PvP_BG");
        this.m_dtLeagureIcon = (base.GetControl("DT_LeagueIcon") as DrawTexture);
        this.m_dtFormIcon    = (base.GetControl("DrawTexture_FormIcon") as DrawTexture);
        this.m_dtFormIcon.SetTextureFromBundle("ui/pvp/colo_icon03");
        this.m_dtRankIcon = (base.GetControl("DrawTexture_RankIcon") as DrawTexture);
        this.m_dtRankIcon.SetTextureFromBundle("ui/pvp/colo_icon04");
        this.m_dtAiBattleIcon = (base.GetControl("DrawTexture_AIBattleIcon") as DrawTexture);
        this.m_dtAiBattleIcon.SetTextureFromBundle("ui/pvp/colo_icon05");
        this.m_Help_Button = (base.GetControl("Help_Button") as Button);
        Button expr_25F = this.m_Help_Button;

        expr_25F.Click     = (EZValueChangedDelegate)Delegate.Combine(expr_25F.Click, new EZValueChangedDelegate(this.OnClickHelp));
        this.m_dtEffect    = (base.GetControl("DT_effect_burning") as DrawTexture);
        this.m_lbCoinCount = (base.GetControl("Label_Coincount") as Label);
        NrMyCharInfo kMyCharInfo         = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        int          value               = COLOSSEUM_CONSTANT_Manager.GetInstance().GetValue(eCOLOSSEUM_CONSTANT.eCOLOSSEUM_CONSTANT_ONEDAY_GIVEITEM_LIMITCOUNT);
        short        charDetailFromUnion = kMyCharInfo.GetCharDetailFromUnion(eCHAR_DETAIL_INFO.eCHAR_DETAIL_INFO_LIMIT_COUNT, 3);
        string       empty               = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3235"),
            "count1",
            charDetailFromUnion,
            "count2",
            value
        });

        this.m_lbCoinCount.SetText(empty);
        GS_COLOSSEUM_BATCH_SOLDIERLIST_REQ gS_COLOSSEUM_BATCH_SOLDIERLIST_REQ = new GS_COLOSSEUM_BATCH_SOLDIERLIST_REQ();

        gS_COLOSSEUM_BATCH_SOLDIERLIST_REQ.i32BatchKindTotal = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_nColosseumBatchKindTotal;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_COLOSSEUM_BATCH_SOLDIERLIST_REQ, gS_COLOSSEUM_BATCH_SOLDIERLIST_REQ);
        this.bReceiveBatchList = false;
        this.m_bAiRequest      = false;
        base.SetScreenCenter();
        this.Hide();
        NrTSingleton <FiveRocksEventManager> .Instance.Placement("colosseum_enter");
    }