Exemplo n.º 1
0
 void TradeWindow::onRepeatClick(MyGUI::Widget* widget, MyGUI::ControllerItem* controller)
 {
     if (widget == mIncreaseButton)
         onIncreaseButtonTriggered();
     else if (widget == mDecreaseButton)
         onDecreaseButtonTriggered();
 }
Exemplo n.º 2
0
    void TradeWindow::onFrame(float frameDuration)
    {
        if (!mMainWidget->getVisible() || mBalanceButtonsState == BBS_None)
            return;

        mBalanceChangePause -= frameDuration;
        if (mBalanceChangePause < 0.0) {
            mBalanceChangePause += sBalanceChangeInterval;
            if (mBalanceButtonsState == BBS_Increase)
                onIncreaseButtonTriggered();
            else if (mBalanceButtonsState == BBS_Decrease)
                onDecreaseButtonTriggered();
        }
    }
Exemplo n.º 3
0
 void TradeWindow::onIncreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
 {
     mBalanceButtonsState = BBS_Increase;
     mBalanceChangePause = sBalanceChangeInitialPause;
     onIncreaseButtonTriggered();
 }
Exemplo n.º 4
0
 void TradeWindow::onIncreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
 {
     addRepeatController(_sender);
     onIncreaseButtonTriggered();
 }