forked from jaildesigner-jailgames/coffee_crisis
v1.4
This commit is contained in:
@@ -191,6 +191,15 @@ void Text::writeColored(int x, int y, std::string text, Uint8 R, Uint8 G, Uint8
|
||||
mSprite->getTexture()->setColor(255, 255, 255);
|
||||
}
|
||||
|
||||
// Escribe el texto con sombra
|
||||
void Text::writeShadowed(int x, int y, std::string text, Uint8 R, Uint8 G, Uint8 B)
|
||||
{
|
||||
mSprite->getTexture()->setColor(R, G, B);
|
||||
write(x+1, y+1, text);
|
||||
mSprite->getTexture()->setColor(255, 255, 255);
|
||||
write(x, y, text);
|
||||
}
|
||||
|
||||
// Escribe el texto centrado en un punto x y con kerning
|
||||
void Text::writeCentered(int x, int y, std::string text, int kerning)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user