aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_text.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/pet_control/pet_text.h')
-rw-r--r--engines/titanic/pet_control/pet_text.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_text.h b/engines/titanic/pet_control/pet_text.h
index 2213c631d6..73e85401c3 100644
--- a/engines/titanic/pet_control/pet_text.h
+++ b/engines/titanic/pet_control/pet_text.h
@@ -30,7 +30,7 @@ namespace Titanic {
class CPetText {
struct ArrayEntry {
- CString _string1;
+ CString _line;
CString _rgb;
CString _string3;
};
@@ -111,6 +111,11 @@ public:
void resize(uint count);
/**
+ * Returns the text from all the lines as a single string
+ */
+ CString getText() const;
+
+ /**
* Set the text
*/
void setText(const CString &str);
@@ -121,6 +126,11 @@ public:
void setColor(uint col);
/**
+ * Set text color
+ */
+ void setColor(byte r, byte g, byte b);
+
+ /**
* Set the color for a line
*/
void setLineColor(uint lineNum, byte r, byte g, byte b);
@@ -134,6 +144,11 @@ public:
* Sets the maximum number of characters per line
*/
void setMaxCharsPerLine(int maxChars);
+
+ /**
+ * Delete the last character from the last line
+ */
+ void deleteLastChar();
};
} // End of namespace Titanic