1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Added function CSlider::moveToMin

This commit is contained in:
ArseniyShestakov 2014-11-24 15:24:03 +03:00
parent bddf662178
commit 53c7a3cfcb
2 changed files with 6 additions and 0 deletions

View File

@ -744,6 +744,11 @@ void CSlider::keyPressed(const SDL_KeyboardEvent & key)
moveTo(moveDest); moveTo(moveDest);
} }
void CSlider::moveToMin()
{
moveTo(0);
}
void CSlider::moveToMax() void CSlider::moveToMax()
{ {
moveTo(amount); moveTo(amount);

View File

@ -230,6 +230,7 @@ public:
void moveRight(); void moveRight();
void moveTo(int value); void moveTo(int value);
void moveBy(int amount); void moveBy(int amount);
void moveToMin();
void moveToMax(); void moveToMax();
/// Amount modifier /// Amount modifier