aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_text.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-25 22:42:29 -0400
committerPaul Gilbert2016-07-10 16:12:03 -0400
commit02bb9510aa3ae99d063e21a6e4c63479b9320d3f (patch)
treebedd9b6bce22e179776f07e9a20e7d68735dde4c /engines/titanic/pet_control/pet_text.h
parent1512545f28c805fd4083be746220f77b72463130 (diff)
downloadscummvm-rg350-02bb9510aa3ae99d063e21a6e4c63479b9320d3f.tar.gz
scummvm-rg350-02bb9510aa3ae99d063e21a6e4c63479b9320d3f.tar.bz2
scummvm-rg350-02bb9510aa3ae99d063e21a6e4c63479b9320d3f.zip
TITANIC: Implemented CPetConversations setup
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