hi Denis,<br><br><div class="gmail_quote">On Mon, Jul 27, 2009 at 7:34 AM,  <span dir="ltr"><<a href="mailto:dkasak13@users.sourceforge.net">dkasak13@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Revision: 42841<br>
          <a href="http://scummvm.svn.sourceforge.net/scummvm/?rev=42841&view=rev" target="_blank">http://scummvm.svn.sourceforge.net/scummvm/?rev=42841&view=rev</a><br>
Author:   dkasak13<br>
Date:     2009-07-27 05:34:22 +0000 (Mon, 27 Jul 2009)<br>
<br>
Log Message:<br>
-----------<br>
Enabled running of look/use scripts on left/right mouse button press for testing (Warning: unstable in some places).<br>
</blockquote><div><br>this is AWESOME!  I was looking forward to this stage, when it starts interacting!<br><br>a few obvious comments, but I cannot help to say them:<br>- position the text on the objects instead of [0,0]<br>

- use a proper color instead of the same one, which looks different in each palette<br>- implement more GPL commands to make the game really interactive.  for example, one very easy one should be changing the shape of the game cursor.  it should nicely change to left/right arrow when being on the edge of the location<br>

- evaluate mathematical expression on whether the object can be used before running the program.  this tells you if you should use the normal game cursor or its variant with red borders (= signal that the user can perform the action)<br>

   <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">+                       // HACK: Test running look and use scripts<br>
+                       if (_vm->_mouse->lButtonPressed()) {<br>
+                               _vm->_script->run(obj->_program, obj->_look);<br>
+                               _vm->_mouse->lButtonSet(false);<br>
+                       }<br>
+<br>
+                       if (_vm->_mouse->rButtonPressed()) {<br>
+                               _vm->_script->run(obj->_program, obj->_use);<br>
+                               _vm->_mouse->rButtonSet(false);<br>
+                       }<br><br>
 </blockquote></div>not sure if this has something to do with my architecture, but clicks don't work on my iMac.<br clear="all"><br>-- <br>Robert Špalek <<a href="mailto:rspalek@gmail.com">rspalek@gmail.com</a>><br>