diff options
author | Paul Gilbert | 2007-02-14 02:37:53 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-02-14 02:37:53 +0000 |
commit | 31c0cb7f13652e384682fe995d2afd947b7f642a (patch) | |
tree | 1d928c059d73c8a2424fcc044c7ffecf77339c78 /engines/lure/surface.cpp | |
parent | 2ef15f51a7eb043f56d29db74afd3f87a9f19394 (diff) | |
download | scummvm-rg350-31c0cb7f13652e384682fe995d2afd947b7f642a.tar.gz scummvm-rg350-31c0cb7f13652e384682fe995d2afd947b7f642a.tar.bz2 scummvm-rg350-31c0cb7f13652e384682fe995d2afd947b7f642a.zip |
Added proper support for showing a hotspot or character's name in dialogs where the message contains a placeholder mark for it
svn-id: r25582
Diffstat (limited to 'engines/lure/surface.cpp')
-rw-r--r-- | engines/lure/surface.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp index 0065c608fc..54292ac460 100644 --- a/engines/lure/surface.cpp +++ b/engines/lure/surface.cpp @@ -485,14 +485,18 @@ void Dialog::show(const char *text) { mouse.cursorOn(); } -void Dialog::show(uint16 stringId) { +void Dialog::show(uint16 stringId, const char *hotspotName, const char *characterName) { char buffer[MAX_DESC_SIZE]; StringData &sl = StringData::getReference(); - sl.getString(stringId, buffer); + sl.getString(stringId, buffer, hotspotName, characterName); show(buffer); } +void Dialog::show(uint16 stringId) { + show(stringId, NULL, NULL); +} + /*--------------------------------------------------------------------------*/ TalkDialog::TalkDialog(uint16 characterId, uint16 destCharacterId, uint16 activeItemId, uint16 descId) { |