Exemplo n.º 1
0
 public void InitBillboard(GUIBillboard baseScene)
 {
     this.mBaseScene = baseScene;
     this.mItemsTable = GameUITools.FindGameObject("RankPanel/Contents", base.gameObject).gameObject.AddComponent<CommonRankItemTable>();
     this.mItemsTable.maxPerLine = 1;
     this.mItemsTable.arrangement = UICustomGrid.Arrangement.Vertical;
     this.mItemsTable.cellWidth = 598f;
     this.mItemsTable.cellHeight = 87f;
     this.mItemsTable.scrollBar = GameUITools.FindGameObject("ScrollBar", base.gameObject).GetComponent<UIScrollBar>();
     this.mItemsTable.InitWithBaseScene(this);
     this.mLabel1 = GameUITools.FindUILabel("Label1", base.gameObject);
     this.mLabel2 = GameUITools.FindUILabel("Label2", base.gameObject);
     this.mFighting = GameUITools.FindUILabel("Fighting", base.gameObject);
     this.mValue = GameUITools.FindUILabel("Value", base.gameObject);
     this.mLabel1.gameObject.SetActive(false);
     this.mLabel2.gameObject.SetActive(false);
     this.mFighting.gameObject.SetActive(false);
     this.mValue.gameObject.SetActive(false);
 }
 public void InitBillboard(string itemClassName)
 {
     Transform transform = base.transform.Find("WinBG");
     GameObject gameObject = transform.Find("CloseBtn").gameObject;
     UIEventListener expr_28 = UIEventListener.Get(gameObject);
     expr_28.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_28.onClick, new UIEventListener.VoidDelegate(this.OnCloseClick));
     this.mItemsTable = transform.Find("rankItems/itemsPanel/itemsContents").gameObject.AddComponent<CommonRankItemTable>();
     this.mItemsTable.maxPerLine = 1;
     this.mItemsTable.arrangement = UICustomGrid.Arrangement.Vertical;
     this.mItemsTable.cellWidth = 774f;
     this.mItemsTable.cellHeight = 87f;
     this.mItemsTable.scrollBar = transform.Find("rankItems/BgPanelScrollBar").GetComponent<UIScrollBar>();
     this.mItemsTable.className = itemClassName;
     this.mItemsTable.InitWithBaseScene(this);
     this.mSelfRank = transform.Find("selfRank").GetComponent<UILabel>();
     this.mMayBeRank = transform.Find("mayBeRank").GetComponent<UILabel>();
     this.mScore = transform.Find("scoreTxt").GetComponent<UILabel>();
     this.mTitle = transform.Find("TitleLabel").GetComponent<UILabel>();
     this.mDesc = transform.Find("tipTxt").GetComponent<UILabel>();
 }