[Scummvm-cvs-logs] CVS: scummvm/scumm script_v2.cpp,2.145,2.146

Max Horn fingolfin at users.sourceforge.net
Sat Jul 12 16:35:13 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv21217

Modified Files:
	script_v2.cpp 
Log Message:
properly show/hide verbs&inventory&sentence during cutscenes

Index: script_v2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v2.cpp,v
retrieving revision 2.145
retrieving revision 2.146
diff -u -d -r2.145 -r2.146
--- script_v2.cpp	12 Jul 2003 22:00:59 -0000	2.145
+++ script_v2.cpp	12 Jul 2003 22:33:03 -0000	2.146
@@ -1377,15 +1377,30 @@
 	}
 
 	if (state & 2) {						// Cursor Show/Hide
+
+		// Mark verbs as hidden/visible
+		for (int i = 0; i < _maxVerbs; i++) {
+			_verbs[i].saveid = !(state & 16);
+		}
+
 		if (state & 16) {
 			_userPut = 1;
 			_cursor.state = 1;
+			
+			// Draw all verbs
+			redrawVerbs();
 		} else {
 			_userPut = 0;
 			_cursor.state = 0;
+			
+			// Hide all verbs
+			ScummVM::Rect rect;
+			rect.top = virtscr[2].topline;
+			rect.bottom = virtscr[2].topline + 6*88;
+			rect.left = 0;
+			rect.right = 319;
+			restoreBG(rect);
 		}
-
-		verbMouseOver(0);
 	}
 }
 





More information about the Scummvm-git-logs mailing list