From 6ce32fd4a5ce9f819cf6582e0f6f2a0a24b8aec1 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 10 Oct 2005 17:23:28 +0000 Subject: 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 --- saga/interface.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'saga/interface.cpp') 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); } -- cgit v1.2.3