From: <cl...@us...> - 2007-06-27 02:14:55
|
Revision: 17 http://fortress.svn.sourceforge.net/fortress/?rev=17&view=rev Author: clrg Date: 2007-06-26 19:14:57 -0700 (Tue, 26 Jun 2007) Log Message: ----------- Implement minimap dragging (left mouse button) - remove surface.t (was daft idea to import it) - ignore .vexi files in src/ directory Modified Paths: -------------- trunk/Prototype/src/net/sourceforge/fortress/app.t trunk/Prototype/src/net/sourceforge/fortress/minimap.t Removed Paths: ------------- trunk/Prototype/src/net/sourceforge/fortress/surface.t Property Changed: ---------------- trunk/Prototype/src/ Property changes on: trunk/Prototype/src ___________________________________________________________________ Name: svn:ignore + *.vexi Modified: trunk/Prototype/src/net/sourceforge/fortress/app.t =================================================================== --- trunk/Prototype/src/net/sourceforge/fortress/app.t 2007-06-27 00:36:30 UTC (rev 16) +++ trunk/Prototype/src/net/sourceforge/fortress/app.t 2007-06-27 02:14:57 UTC (rev 17) @@ -1,7 +1,7 @@ <!-- Copyright 2007 licensed under GPL v3 --> -<vexi xmlns:ui="vexi://ui" xmlns="net.sourceforge.fortress"> - <surface /> +<vexi xmlns:ui="vexi://ui" xmlns="net.sourceforge.fortress" xmlns:widget="vexi.widget"> + <widget:surface /> <preloadimages /> <ui:box titlebar="Fortress Prototype"> <ui:box orient="vertical" shrink="true"> Modified: trunk/Prototype/src/net/sourceforge/fortress/minimap.t =================================================================== --- trunk/Prototype/src/net/sourceforge/fortress/minimap.t 2007-06-27 00:36:30 UTC (rev 16) +++ trunk/Prototype/src/net/sourceforge/fortress/minimap.t 2007-06-27 02:14:57 UTC (rev 17) @@ -34,11 +34,26 @@ var moveMapFunc = function(v) { + vexi.log.info(v); // assumes minimap tiles are 1px by 1px - var d = $minimap.distanceto(trapee); - surface.moveMapTo(d.x, d.y); + surface.moveMapTo(mouse.x, mouse.y); + cascade = v; } + var releaseFunc = function(v) + { + Move --= moveMapFunc; + surface._Release1 --= releaseFunc; + } + + var pressFunc = function(v) + { + Move ++= moveMapFunc; + surface._Release1 ++= releaseFunc; + } + + thisbox.Press1 ++= pressFunc; + surface ++= function(v) { cascade = v; Deleted: trunk/Prototype/src/net/sourceforge/fortress/surface.t =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |