[Scummvm-cvs-logs] SF.net SVN: scummvm: [28883] scummvm/trunk/engines/agi/preagi_winnie.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Sep 10 01:13:36 CEST 2007


Revision: 28883
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28883&view=rev
Author:   thebluegr
Date:     2007-09-09 16:13:35 -0700 (Sun, 09 Sep 2007)

Log Message:
-----------
It's now possible to move around in Winnie using the mouse, by clicking on the appropriate direction (north, south, east or west)

Modified Paths:
--------------
    scummvm/trunk/engines/agi/preagi_winnie.cpp

Modified: scummvm/trunk/engines/agi/preagi_winnie.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-09-09 15:33:00 UTC (rev 28882)
+++ scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-09-09 23:13:35 UTC (rev 28883)
@@ -760,6 +760,35 @@
 
 				break;
 			case Common::EVENT_LBUTTONUP:
+				// Click to move
+				if (fCanSel[IDI_WTP_SEL_NORTH] && (event.mouse.x >= 20 && event.mouse.x <= (IDI_WTP_PIC_WIDTH + 10) * 2) &&
+					(event.mouse.y >= 0 && event.mouse.y <= 10)) {
+					*iSel = IDI_WTP_SEL_NORTH;
+					makeSel();
+					_vm->_gfx->setCursorPalette(false);
+					return;
+				} else if (fCanSel[IDI_WTP_SEL_SOUTH] && (event.mouse.x >= 20 && event.mouse.x <= (IDI_WTP_PIC_WIDTH + 10) * 2) &&
+					(event.mouse.y >= IDI_WTP_PIC_HEIGHT - 10 && event.mouse.y <= IDI_WTP_PIC_HEIGHT)) {
+					*iSel = IDI_WTP_SEL_SOUTH;
+					makeSel();
+					_vm->_gfx->setCursorPalette(false);
+					return;
+				} else if (fCanSel[IDI_WTP_SEL_WEST] && (event.mouse.y >= 0  && event.mouse.y <= IDI_WTP_PIC_HEIGHT) &&
+					(event.mouse.x >= 20 && event.mouse.x <= 30)) {
+					*iSel = IDI_WTP_SEL_WEST;
+					makeSel();
+					_vm->_gfx->setCursorPalette(false);
+					return;
+				} else if (fCanSel[IDI_WTP_SEL_EAST] && (event.mouse.y >= 0  && event.mouse.y <= IDI_WTP_PIC_HEIGHT) &&
+					(event.mouse.x >= IDI_WTP_PIC_WIDTH * 2 && event.mouse.x <= (IDI_WTP_PIC_WIDTH + 10) * 2)) {
+					*iSel = IDI_WTP_SEL_EAST;
+					makeSel();
+					_vm->_gfx->setCursorPalette(false);
+					return;
+				} else {
+					_vm->_gfx->setCursorPalette(false);
+				}
+
 				switch(*iSel) {
 					case IDI_WTP_SEL_OPT_1:
 					case IDI_WTP_SEL_OPT_2:


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list