diff options
| author | Paul Gilbert | 2006-04-29 11:13:47 +0000 | 
|---|---|---|
| committer | Paul Gilbert | 2006-04-29 11:13:47 +0000 | 
| commit | d88ce16b12de73306ee0842e539e95c08e7f8952 (patch) | |
| tree | 7c0e48a3bb9fe4c1b8748cfbc34180b729fd7e77 | |
| parent | 8e7895e7bcbb1e9d233174751cc0ff8e65c565b6 (diff) | |
| download | scummvm-rg350-d88ce16b12de73306ee0842e539e95c08e7f8952.tar.gz scummvm-rg350-d88ce16b12de73306ee0842e539e95c08e7f8952.tar.bz2 scummvm-rg350-d88ce16b12de73306ee0842e539e95c08e7f8952.zip | |
Tweaked dialog display code to refresh the screen and warn about message Ids needing display styles that aren't yet implement
svn-id: r22204
| -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 19ad9330da..312817df81 100644 --- a/engines/lure/surface.cpp +++ b/engines/lure/surface.cpp @@ -388,8 +388,10 @@ Surface *Surface::getScreen(uint16 resourceId) {  void Dialog::show(const char *text) {  	Screen &screen = Screen::getReference();  	Mouse &mouse = Mouse::getReference(); +	Room &room = Room::getReference();  	mouse.cursorOff(); +	room.update();  	Surface *s = Surface::newDialog(INFO_DIALOG_WIDTH, text);  	s->copyToScreen(INFO_DIALOG_X, INFO_DIALOG_Y); @@ -435,6 +437,7 @@ void Dialog::showMessage(uint16 messageId, uint16 characterId) {  		if (READ_LE_UINT16(v) == messageId) break;  		++v;  	} +  	// default response if a specific response not found  	if (idVal == 0xffff) idVal = 0x8c4;  @@ -462,8 +465,9 @@ void Dialog::showMessage(uint16 messageId, uint16 characterId) {  		Dialog::show(idVal);  	} else if (idVal != 0) { -		/* still to be decoded */ - +		// Handle message as a talking dialog +		// TODO: show talk dialog +		warning("Dialog style for message #%d not yet implemented", idVal);  	}  } | 
