public override void updateItem(GameObject item, int index) { // base.updateItem (item, index); ExchangeBarCtrl ctrl = item.GetComponent <ExchangeBarCtrl> (); ctrl.updateItem(exchangeList [index]); }
public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as ExChangeWindow).exChangeBarPrefab); } ExchangeBarCtrl ctrl = nodeList [i].GetComponent <ExchangeBarCtrl> (); ctrl.fatherWindow = fatherWindow as ExChangeWindow; }
public override void DoClickEvent() { base.DoClickEvent(); if (fatherBar.GetType() == typeof(ExchangeBarCtrl)) { UiManager.Instance.openDialogWindow <ConditionsWindow>((win) => { ExchangeBarCtrl bar = fatherBar as ExchangeBarCtrl; win.Initialize(ExchangeSampleManager.Instance.getExchangeSampleBySid(bar.exchange.sid)); }); } if (fatherBar.GetType() == typeof(NoticeActivityExchangeBarCtrl)) { UiManager.Instance.openDialogWindow <ConditionsWindow>((win) => { NoticeActivityExchangeBarCtrl bar = fatherBar as NoticeActivityExchangeBarCtrl; win.Initialize(ExchangeSampleManager.Instance.getExchangeSampleBySid(bar.exchange.sid)); }); } }