Esempio n. 1
0
    public override void updateItem(GameObject item, int index)
    {
        //	base.updateItem (item, index);
        ExchangeBarCtrl ctrl = item.GetComponent <ExchangeBarCtrl> ();

        ctrl.updateItem(exchangeList [index]);
    }
Esempio n. 2
0
    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;
    }
Esempio n. 3
0
    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));
            });
        }
    }