aboutsummaryrefslogtreecommitdiff
path: root/saga/interface.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-10-10 17:23:28 +0000
committerTorbjörn Andersson2005-10-10 17:23:28 +0000
commit6ce32fd4a5ce9f819cf6582e0f6f2a0a24b8aec1 (patch)
tree1c957907d01409c3b1569aedd2468eba87cfd0ad /saga/interface.cpp
parent24202dea851e37e5712ae045c29428e72c6d00cd (diff)
downloadscummvm-rg350-6ce32fd4a5ce9f819cf6582e0f6f2a0a24b8aec1.tar.gz
scummvm-rg350-6ce32fd4a5ce9f819cf6582e0f6f2a0a24b8aec1.tar.bz2
scummvm-rg350-6ce32fd4a5ce9f819cf6582e0f6f2a0a24b8aec1.zip
IHNM verb panel fixes:
* Verb buttons and texts are drawn at the correct coordinates. I've compared it to the screenshot on Mobygames. * Verb text is drawn without shadow. * The "Walk to", "Look at", "Take" and "Use" buttons all have the correct background. For some reason, I can't find the sprites for the remaining four buttons. svn-id: r19004
Diffstat (limited to 'saga/interface.cpp')
-rw-r--r--saga/interface.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp
index 482485284d..890ef10946 100644
--- a/saga/interface.cpp
+++ b/saga/interface.cpp
@@ -118,7 +118,6 @@ Interface::Interface(SagaEngine *vm) : _vm(vm) {
&_optionPanel.imageLength, &_optionPanel.imageWidth, &_optionPanel.imageHeight);
free(resource);
-
_vm->_sprite->loadList(_vm->getResourceDescription()->mainPanelSpritesResourceId, _mainPanel.sprites);
if (_vm->getGameType() == GType_ITE) {
@@ -1915,13 +1914,18 @@ void Interface::drawVerbPanelText(Surface *ds, PanelButton *panelButton, int tex
textId = verbTypeToTextStringsIdLUT[1][panelButton->id];
text = _vm->_script->_mainStrings.getString(textId + 1);
font = kIHNMFont8;
+ textShadowColor = 0;
}
-
textWidth = _vm->_font->getStringWidth(font, text, 0, kFontNormal);
- point.x = _mainPanel.x + panelButton->xOffset + 1 + (panelButton->width - 1 - textWidth) / 2;
- point.y = _mainPanel.y + panelButton->yOffset + 1;
+ if (_vm->getGameType() == GType_ITE) {
+ point.x = _mainPanel.x + panelButton->xOffset + 1 + (panelButton->width - 1 - textWidth) / 2;
+ point.y = _mainPanel.y + panelButton->yOffset + 1;
+ } else {
+ point.x = _mainPanel.x + panelButton->xOffset + 1 + (panelButton->width - textWidth) / 2;
+ point.y = _mainPanel.y + panelButton->yOffset + 12;
+ }
_vm->_font->textDraw(font, ds, text, point, textColor, textShadowColor, (textShadowColor != 0) ? kFontShadow : kFontNormal);
}