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':
|
case 's':
|
||||||
selectMode = SelectStamp;
|
selectMode = SelectStamp;
|
||||||
selectPoint1 = ui::Point(-1, -1);
|
selectPoint1 = ui::Point(-1, -1);
|
||||||
|
infoTip = "\x0F\xEF\xEF\x10Select an area to create a stamp";
|
||||||
|
infoTipPresence = 120;
|
||||||
break;
|
break;
|
||||||
case 'w':
|
case 'w':
|
||||||
c->SwitchGravity();
|
c->SwitchGravity();
|
||||||
@ -1293,6 +1295,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
|||||||
{
|
{
|
||||||
selectMode = SelectCopy;
|
selectMode = SelectCopy;
|
||||||
selectPoint1 = ui::Point(-1, -1);
|
selectPoint1 = ui::Point(-1, -1);
|
||||||
|
infoTip = "\x0F\xEF\xEF\x10Select an area to copy";
|
||||||
|
infoTipPresence = 120;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
|
@ -22,9 +22,9 @@ int PIXELMETHODS_CLASS::drawtext(int x, int y, const char *s, int r, int g, int
|
|||||||
oR = r;
|
oR = r;
|
||||||
oG = g;
|
oG = g;
|
||||||
oB = b;
|
oB = b;
|
||||||
r = s[1];
|
r = (unsigned char)s[1];
|
||||||
g = s[2];
|
g = (unsigned char)s[2];
|
||||||
b = s[3];
|
b = (unsigned char)s[3];
|
||||||
s += 3;
|
s += 3;
|
||||||
}
|
}
|
||||||
else if (*s == '\x0E')
|
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;
|
oR = r;
|
||||||
oG = g;
|
oG = g;
|
||||||
oB = b;
|
oB = b;
|
||||||
r = s[1];
|
r = (unsigned char)s[1];
|
||||||
g = s[2];
|
g = (unsigned char)s[2];
|
||||||
b = s[3];
|
b = (unsigned char)s[3];
|
||||||
s += 3;
|
s += 3;
|
||||||
}
|
}
|
||||||
else if (*s == '\x0E')
|
else if (*s == '\x0E')
|
||||||
|
Loading…
Reference in New Issue
Block a user