Example #1
0
 void TradeWindow::onRepeatClick(MyGUI::Widget* widget, MyGUI::ControllerItem* controller)
 {
     if (widget == mIncreaseButton)
         onIncreaseButtonTriggered();
     else if (widget == mDecreaseButton)
         onDecreaseButtonTriggered();
 }
Example #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();
        }
    }
Example #3
0
 void TradeWindow::onDecreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
 {
     mBalanceButtonsState = BBS_Decrease;
     mBalanceChangePause = sBalanceChangeInitialPause;
     onDecreaseButtonTriggered();
 }
Example #4
0
 void TradeWindow::onDecreaseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
 {
     addRepeatController(_sender);
     onDecreaseButtonTriggered();
 }