1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Update graphics for QuickRecruitmentWindow

Adding graphics maded by edeksumo
This commit is contained in:
FeniksFire
2017-12-26 11:03:19 +01:00
parent bf4024c3ac
commit 1331c81a8b
11 changed files with 26 additions and 8 deletions

View File

@@ -34,6 +34,13 @@ void CButton::update()
}
int newPos = stateToIndex[int(state)];
if(animateLonelyFrame)
{
if(state == PRESSED)
image->moveBy(Point(1,1));
else
image->moveBy(Point(-1,-1));
}
if (newPos < 0)
newPos = 0;
@@ -85,6 +92,10 @@ void CButton::setImageOrder(int state1, int state2, int state3, int state4)
update();
}
void CButton::setAnimateLonelyFrame(bool agreement)
{
animateLonelyFrame = agreement;
}
void CButton::setState(ButtonState newState)
{
if (state == newState)