diff options
author | Matthew Stewart | 2018-06-24 17:20:47 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | cfb5daa8f07b11178d46ec12787b317d7f9ef312 (patch) | |
tree | fe05aeb5db08cdabcf13f21ddc3d184092b0101b /engines/startrek/startrek.h | |
parent | aca19870562fe4dfcd98f3b062bf74dd0dee6daa (diff) | |
download | scummvm-rg350-cfb5daa8f07b11178d46ec12787b317d7f9ef312.tar.gz scummvm-rg350-cfb5daa8f07b11178d46ec12787b317d7f9ef312.tar.bz2 scummvm-rg350-cfb5daa8f07b11178d46ec12787b317d7f9ef312.zip |
STARTREK: Fixes to textboxes
Center the speaker name, and show the choice number when there are
multiple choices.
Diffstat (limited to 'engines/startrek/startrek.h')
-rw-r--r-- | engines/startrek/startrek.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/startrek/startrek.h b/engines/startrek/startrek.h index acd912afbb..67e09fcdbc 100644 --- a/engines/startrek/startrek.h +++ b/engines/startrek/startrek.h @@ -92,6 +92,7 @@ struct SavegameMetadata { const int MAX_MENUBUTTONS = 32; const int TEXTBOX_WIDTH = 26; +const int TEXT_CHARS_PER_LINE = TEXTBOX_WIDTH - 2; const int MAX_TEXTBOX_LINES = 12; const int MAX_BUFFERED_WALK_ACTIONS = 32; @@ -312,6 +313,7 @@ private: public: const char *getNextTextLine(const char *text, char *line, int lineWidth); + String centerTextboxHeader(String headerText); void getTextboxHeader(String *headerTextOutput, String speakerText, int choiceIndex); String readTextFromRdf(int choiceIndex, uintptr data, String *headerTextOutput); String readTextFromBuffer(int choiceIndex, uintptr data, String *headerTextOutput); @@ -332,6 +334,7 @@ public: String readLineFormattedText(TextGetterFunc textGetter, uintptr var, int choiceIndex, SharedPtr<TextBitmap> textBitmap, int numTextboxLines, int *numLines); String readTextFromArray(int choiceIndex, uintptr data, String *headerTextOutput); + String readTextFromArrayWithChoices(int choiceIndex, uintptr data, String *headerTextOutput); // menu.cpp public: |