Show some info when selecting stamps, #104

This commit is contained in:
Simon Robertshaw 2012-08-14 16:01:57 +01:00
parent 8604b30548
commit 7ccb7e53fe
3 changed files with 10 additions and 6 deletions

View File

@ -1268,6 +1268,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
case 's':
selectMode = SelectStamp;
selectPoint1 = ui::Point(-1, -1);
infoTip = "\x0F\xEF\xEF\x10Select an area to create a stamp";
infoTipPresence = 120;
break;
case 'w':
c->SwitchGravity();
@ -1293,6 +1295,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
{
selectMode = SelectCopy;
selectPoint1 = ui::Point(-1, -1);
infoTip = "\x0F\xEF\xEF\x10Select an area to copy";
infoTipPresence = 120;
}
break;
case 'v':

View File

@ -22,9 +22,9 @@ int PIXELMETHODS_CLASS::drawtext(int x, int y, const char *s, int r, int g, int
oR = r;
oG = g;
oB = b;
r = s[1];
g = s[2];
b = s[3];
r = (unsigned char)s[1];
g = (unsigned char)s[2];
b = (unsigned char)s[3];
s += 3;
}
else if (*s == '\x0E')

View File

@ -22,9 +22,9 @@ int PIXELMETHODS_CLASS::drawtext(int x, int y, const char *s, int r, int g, int
oR = r;
oG = g;
oB = b;
r = s[1];
g = s[2];
b = s[3];
r = (unsigned char)s[1];
g = (unsigned char)s[2];
b = (unsigned char)s[3];
s += 3;
}
else if (*s == '\x0E')