aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/fixed_text.h
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-07 16:22:56 +0100
committerMartin Kiewitz2016-02-07 16:22:56 +0100
commit15be58dfb5a416897f9c10473ff9690cb24d914d (patch)
treecd924134adb9fcf65838326b13b3b96498303eee /engines/sherlock/fixed_text.h
parente50f93f2987f41b6c9d193dcf07383ba415cb96d (diff)
downloadscummvm-rg350-15be58dfb5a416897f9c10473ff9690cb24d914d.tar.gz
scummvm-rg350-15be58dfb5a416897f9c10473ff9690cb24d914d.tar.bz2
scummvm-rg350-15be58dfb5a416897f9c10473ff9690cb24d914d.zip
SHERLOCK: Make journal entries multilingual
Spanish needs to be checked Spanish also needs to be copy and slightly changed for SH1 Also fixed Journal button text for French + Spanish Fixes bug #7019
Diffstat (limited to 'engines/sherlock/fixed_text.h')
-rw-r--r--engines/sherlock/fixed_text.h41
1 files changed, 40 insertions, 1 deletions
diff --git a/engines/sherlock/fixed_text.h b/engines/sherlock/fixed_text.h
index 40444f4052..aa6519d797 100644
--- a/engines/sherlock/fixed_text.h
+++ b/engines/sherlock/fixed_text.h
@@ -39,13 +39,44 @@ enum FixedTextActionId {
kFixedTextAction_Use
};
+enum FixedJournalTextId {
+ // Holmes asked/said...
+ kFixedJournalText_HolmesAskedMe = 0,
+ kFixedJournalText_HolmesAskedTheInspector,
+ kFixedJournalText_HolmesAskedPerson,
+ kFixedJournalText_HolmesSaidToMe,
+ kFixedJournalText_HolmesSaidToTheInspector,
+ kFixedJournalText_HolmesSaidToPerson,
+ // I asked/said
+ kFixedJournalText_IReplied,
+ kFixedJournalText_TheReplyWas,
+ // Holmes/I/The Inspector/Person asked/said (without "Then" prefix)
+ kFixedJournalText_HolmesAsked,
+ kFixedJournalText_HolmesSaid,
+ kFixedJournalText_IAsked,
+ kFixedJournalText_ISaid,
+ kFixedJournalText_TheInspectorAsked,
+ kFixedJournalText_TheInspectorSaid,
+ kFixedJournalText_PersonAsked,
+ kFixedJournalText_PersonSaid,
+ // Then Holmes/I/The Inspector/Person asked/said
+ kFixedJournalText_ThenHolmesAsked,
+ kFixedJournalText_ThenHolmesSaid,
+ kFixedJournalText_ThenIAsked,
+ kFixedJournalText_ThenISaid,
+ kFixedJournalText_ThenTheInspectorAsked,
+ kFixedJournalText_ThenTheInspectorSaid,
+ kFixedJournalText_ThenPersonAsked,
+ kFixedJournalText_ThenPersonSaid
+};
+
class SherlockEngine;
class FixedText {
protected:
SherlockEngine *_vm;
- FixedText(SherlockEngine *vm) : _vm(vm) {}
+ FixedText(SherlockEngine *vm);
public:
static FixedText *init(SherlockEngine *vm);
virtual ~FixedText() {}
@@ -59,6 +90,14 @@ public:
* Get action message
*/
virtual const Common::String getActionMessage(FixedTextActionId actionId, int messageIndex) = 0;
+
+ /**
+ * Gets journal text
+ */
+ const char *getJournalText(int fixedJournalTextId);
+
+private:
+ const char *const *_fixedJournalTextArray;
};
} // End of namespace Sherlock