mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Show some info when selecting stamps, #104
This commit is contained in:
@@ -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')
|
||||||
|
Reference in New Issue
Block a user