Exemplo n.º 1
0
 public virtual void InitWithBaseScene(object baseScene)
 {
     if (baseScene is GameUICommonBillboardPopUp)
     {
         this.mBaseScene = (GameUICommonBillboardPopUp)baseScene;
     }
     else if (baseScene is BillboardCommonLayer)
     {
         this.mBaseLayer = (BillboardCommonLayer)baseScene;
     }
     else
     {
         if (!(baseScene is GUIGuildMinesResultPopUp))
         {
             return;
         }
         this.mBasePop = (GUIGuildMinesResultPopUp)baseScene;
     }
     this.CreateObjects();
 }
Exemplo n.º 2
0
 public void Refresh(BillboardCommonLayer.BillboardType type, int param1 = -1)
 {
     this.mBaseScene.isWaitingMessageReply = false;
     this.mItemsTable.scrollBar.value = 0f;
     switch (type)
     {
     case BillboardCommonLayer.BillboardType.BT_CombatValue:
         this.RefreshCombatValue();
         break;
     case BillboardCommonLayer.BillboardType.BT_Guild:
         this.RefreshGuild(param1);
         break;
     case BillboardCommonLayer.BillboardType.BT_PVP4:
         this.RefreshPVP4();
         break;
     case BillboardCommonLayer.BillboardType.BT_PVEStars:
         this.RefreshPVEStars();
         break;
     case BillboardCommonLayer.BillboardType.BT_Level:
         this.RefreshLevel();
         break;
     case BillboardCommonLayer.BillboardType.BT_WorldBoss:
         this.RefreshWorldBoss();
         break;
     case BillboardCommonLayer.BillboardType.BT_Trial:
         this.RefreshTrial();
         break;
     case BillboardCommonLayer.BillboardType.BT_Rose:
         this.RefreshRose();
         break;
     case BillboardCommonLayer.BillboardType.BT_Turtle:
         this.RefreshTurtle();
         break;
     }
 }
Exemplo n.º 3
0
 private void CreateObjects()
 {
     TopGoods topGoods = GameUIManager.mInstance.GetTopGoods();
     topGoods.Show("billboardLb");
     GameObject parent = GameUITools.FindGameObject("WinBg", base.gameObject);
     this.layer = GameUITools.FindGameObject("Layer", parent).AddComponent<BillboardCommonLayer>();
     this.layer.InitBillboard(this);
     this.scrollView = GameUITools.FindGameObject("ButtonsPanel", parent).GetComponent<UIScrollView>();
     this.mBtnContents = GameUITools.FindGameObject("Contents", this.scrollView.gameObject).GetComponent<UITable>();
     BillboardParentBtn billboardParentBtn = this.InitParentBtn(Singleton<StringManager>.Instance.GetString("BillboardFighting"));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardFighting"), new BillboardChildBtn.VoidCallback(this.OnCombatValueBillboardBtnClick)));
     this.firstBtn = billboardParentBtn;
     billboardParentBtn = this.InitParentBtn(Singleton<StringManager>.Instance.GetString("BillboardLevel"));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardLevel"), new BillboardChildBtn.VoidCallback(this.OnLevelBillboardBtnClick)));
     billboardParentBtn = this.InitParentBtn(Singleton<StringManager>.Instance.GetString("BillboardPVE"));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardPVEStars"), new BillboardChildBtn.VoidCallback(this.OnPVEStarsBillboardBtnClick)));
     billboardParentBtn = this.InitParentBtn(Singleton<StringManager>.Instance.GetString("BillboardPVP4"));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardPVP4"), new BillboardChildBtn.VoidCallback(this.OnPvp4BillboardBtnClick)));
     billboardParentBtn = this.InitParentBtn(Singleton<StringManager>.Instance.GetString("BillboardGuild"));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardGuild"), new BillboardChildBtn.VoidCallback(this.OnGuildBillboardBtnClick)));
     billboardParentBtn = this.InitParentBtn(Singleton<StringManager>.Instance.GetString("BillboardActivity"));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardActivityTrial"), new BillboardChildBtn.VoidCallback(this.OnTrialBillboardBtnClick)));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardActivityWorldBoss"), new BillboardChildBtn.VoidCallback(this.OnWorldBossBillboardBtnClick)));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardRose"), new BillboardChildBtn.VoidCallback(this.OnRoseBillboardBtnClick)));
     billboardParentBtn.AddChildBtn(this.InitChildBtn(Singleton<StringManager>.Instance.GetString("BillboardTurtle"), new BillboardChildBtn.VoidCallback(this.OnTurtleBillboardBtnClick)));
     this.mBtnContents.repositionNow = true;
     base.StartCoroutine(this.OnOpenAnimEnd());
 }