feat(game): pausa amb F11/START i contorn NSEO al Text
This commit is contained in:
1 parent
243ba06351
commit
459d18b49c
7 files changed
+113
-18
No files matched your search
@@ -150,6 +150,7 @@ void Text::writeDX(Uint8 flags, int x, int y, const std::string& text, int kerni
|
||||
const bool SHADOWED = ((flags & SHADOW_FLAG) == SHADOW_FLAG);
|
||||
const bool COLORED = ((flags & COLOR_FLAG) == COLOR_FLAG);
|
||||
const bool STROKED = ((flags & STROKE_FLAG) == STROKE_FLAG);
|
||||
const bool STROKED_4 = ((flags & STROKE4_FLAG) == STROKE4_FLAG);
|
||||
|
||||
if (CENTERED) { x -= (Text::length(text, kerning) / 2); }
|
||||
|
||||
@@ -157,6 +158,16 @@ void Text::writeDX(Uint8 flags, int x, int y, const std::string& text, int kerni
|
||||
writeColored(x + shadow_distance, y + shadow_distance, text, shadow_color, kerning, length);
|
||||
}
|
||||
|
||||
if (STROKED_4) {
|
||||
const int MAX_DIST = static_cast<int>(shadow_distance);
|
||||
for (int dist = 1; dist <= MAX_DIST; ++dist) {
|
||||
writeColored(x + dist, y, text, shadow_color, kerning, length);
|
||||
writeColored(x - dist, y, text, shadow_color, kerning, length);
|
||||
writeColored(x, y + dist, text, shadow_color, kerning, length);
|
||||
writeColored(x, y - dist, text, shadow_color, kerning, length);
|
||||
}
|
||||
}
|
||||
|
||||
if (STROKED) {
|
||||
const int MAX_DIST = static_cast<int>(shadow_distance);
|
||||
for (int dist = 1; dist <= MAX_DIST; ++dist) {
|
||||
|
||||
Reference in new issue
Block a user