diff options
Diffstat (limited to 'engines/supernova/supernova.h')
-rw-r--r-- | engines/supernova/supernova.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/supernova/supernova.h b/engines/supernova/supernova.h index 356cfe482c..cc6cfbb479 100644 --- a/engines/supernova/supernova.h +++ b/engines/supernova/supernova.h @@ -154,6 +154,26 @@ public: return _nullString; return _gameStrings[idx]; } + int textWidth(const Common::String &text) { + if (text.empty()) + return 0; + return textWidth(text.c_str()); + } + void renderMessage(StringID stringId, MessagePosition position = kMessageNormal) { + renderMessage(getGameString(stringId), position); + } + void renderMessage(const Common::String &text, MessagePosition position = kMessageNormal) { + if (!text.empty()) + renderMessage(text.c_str(), position); + } + void renderText(const Common::String &text, int x, int y, byte color) { + if (!text.empty()) + renderText(text.c_str(), x, y, color); + } + void renderText(const Common::String &text) { + if (!text.empty()) + renderText(text.c_str()); + } Common::MemoryReadStream *convertToMod(const char *filename, int version = 1); |