22 #ifndef TITANIC_TEXT_CONTROL_H 23 #define TITANIC_TEXT_CONTROL_H 25 #include "common/keyboard.h" 26 #include "titanic/support/screen_manager.h" 27 #include "titanic/support/strings.h" 49 int _displayEndCharIndex;
66 void setupArrays(
int count);
78 void appendText(
const CString &str);
80 void updateStr3(
int lineNum);
129 void resize(uint count);
144 void setText(StringId stringId);
154 void setColor(byte r, byte g, byte b);
159 void setLineColor(uint lineNum, byte r, byte g, byte b);
184 void setNPC(
int npcFlag,
int npcId);
262 int getNPCNum(uint ident, uint startIndex);
268 void remapColors(uint count, uint *srcColors, uint *destColors);
void scrollUpPage(CScreenManager *screenManager)
void setFontNumber(int fontNumber)
Definition: text_control.h:35
void save(SimpleFile *file, int indent)
void showCursor(int mode)
void remapColors(uint count, uint *srcColors, uint *destColors)
void scrollDown(CScreenManager *screenManager)
int getTextWidth(CScreenManager *screenManager)
void draw(CScreenManager *screenManager)
Definition: simple_file.h:49
void scrollToBottom(CScreenManager *screenManager)
void scrollDownPage(CScreenManager *screenManager)
void setText(const CString &str)
Definition: screen_manager.h:49
int getTextHeight(CScreenManager *screenManager)
static CString getColorText(byte r, byte g, byte b)
int displayEndIndex() const
Definition: text_control.h:190
void load(SimpleFile *file, int param)
Definition: text_cursor.h:33
void setMaxCharsPerLine(int maxChars)
void setNPC(int npcFlag, int npcId)
int getNPCNum(uint ident, uint startIndex)
void setLineColor(uint lineNum, byte r, byte g, byte b)
void scrollToTop(CScreenManager *screenManager)
void setBounds(const Rect &bounds)
Definition: text_control.h:117
void addLine(const CString &str)
void scrollUp(CScreenManager *screenManager)
void setHasBorder(bool val)
Definition: text_control.h:122