1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +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);
}
void CSlider::moveToMin()
{
moveTo(0);
}
void CSlider::moveToMax()
{
moveTo(amount);

View File

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