Show the cursor when opening the options screen. Also, fixed a regression with some strings in the game interface

svn-id: r29151
This commit is contained in:
Filippos Karapetis 2007-09-30 14:46:49 +00:00
parent 6cd700f776
commit 8ced5d58df

View file

@ -400,9 +400,8 @@ void Interface::setMode(int mode) {
_saveReminderState = 1;
}
} else if (mode == kPanelOption) {
// Show the cursor in the IHNM demo
if (_vm->getGameId() == GID_IHNM_DEMO)
_vm->_gfx->showCursor(true);
// Show the cursor if it's hidden
_vm->_gfx->showCursor(true);
} else {
if (mode == kPanelConverse) {
_inMainMode = false;
@ -874,7 +873,7 @@ void Interface::drawPanelText(Surface *ds, InterfacePanel *panel, PanelButton *p
textFont = kKnownFontMedium;
textShadowKnownColor = kKnownColorVerbTextShadow;
} else {
if (panelButton->id < 39) {
if (panelButton->id < 39 || panelButton->id > 50) {
// Read non-hardcoded strings from the LUT string table, loaded from the game
// data files
text = _vm->_script->_mainStrings.getString(IHNMTextStringIdsLUT[panelButton->id]);
@ -2223,7 +2222,7 @@ void Interface::drawPanelButtonText(Surface *ds, InterfacePanel *panel, PanelBut
textWidth = _vm->_font->getStringWidth(kKnownFontMedium, text, 0, kFontNormal);
textHeight = _vm->_font->getHeight(kKnownFontMedium);
} else {
if (textId < 39) {
if (textId < 39 || textId > 50) {
// Read non-hardcoded strings from the LUT string table, loaded from the game
// data files
text = _vm->_script->_mainStrings.getString(IHNMTextStringIdsLUT[textId]);