Show some info when selecting stamps, #104
This commit is contained in:
parent
8604b30548
commit
7ccb7e53fe
@ -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':
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user