The verb<->textId assignment is needed only for ITE

svn-id: r35562
This commit is contained in:
Filippos Karapetis 2008-12-26 13:50:12 +00:00
parent 24c37e7d82
commit dec4f1d084
2 changed files with 9 additions and 24 deletions

View File

@ -52,25 +52,9 @@
namespace Saga {
static int verbTypeToTextStringsIdLUT[2][kVerbTypeIdsMax] = {
{-1,
kTextPickUp,
kTextLookAt,
kTextWalkTo,
kTextTalkTo,
kTextOpen,
kTextClose,
kTextGive,
kTextUse},
{-1,
kVerbIHNMWalk,
kVerbIHNMLookAt,
kVerbIHNMTake,
kVerbIHNMUse,
kVerbIHNMTalkTo,
kVerbIHNMSwallow,
kVerbIHNMGive,
kVerbIHNMPush}
static int verbToTextIdITE[] = {
kTextWalkTo, kTextLookAt, kTextPickUp, kTextTalkTo,
kTextOpen, kTextClose, kTextUse, kTextGive
};
// This maps the internally used string ITE IDs to the LUT strings loaded in IHNM
@ -2368,10 +2352,10 @@ void Interface::drawVerbPanelText(PanelButton *panelButton, KnownColor textKnown
int textId;
if (_vm->getGameId() == GID_ITE) {
textId = verbTypeToTextStringsIdLUT[0][panelButton->id];
textId = verbToTextIdITE[panelButton->id - 1];
text = _vm->getTextString(textId);
} else {
textId = verbTypeToTextStringsIdLUT[1][panelButton->id];
textId = panelButton->id;
text = _vm->_script->_mainStrings.getString(textId + 1);
textShadowKnownColor = kKnownColorTransparent;
}

View File

@ -205,14 +205,15 @@ enum GameSoundTypes {
};
enum TextStringIds {
kTextWalkTo,
kTextLookAt,
kTextPickUp,
kTextLookAt,
kTextWalkTo,
kTextTalkTo,
kTextOpen,
kTextClose,
kTextUse,
kTextGive,
kTextUse,
kTextOptions,
kTextTest,
kTextDemo,