From: <cl...@us...> - 2007-07-13 11:52:53
|
Revision: 48 http://fortress.svn.sourceforge.net/fortress/?rev=48&view=rev Author: clrg Date: 2007-07-13 04:52:53 -0700 (Fri, 13 Jul 2007) Log Message: ----------- Start building up the UI a bit Modified Paths: -------------- trunk/client/src/net/sourceforge/fortress/game.t trunk/client/src/net/sourceforge/fortress/image/grass/grass0.png trunk/client/src/net/sourceforge/fortress/image/grass/grass1.png trunk/client/src/net/sourceforge/fortress/image/grass/grass2.png trunk/client/src/net/sourceforge/fortress/image/grass/grass3.png trunk/client/src/net/sourceforge/fortress/image/grass/grass4.png trunk/client/src/net/sourceforge/fortress/image/grass/grass5.png trunk/client/src/net/sourceforge/fortress/image/grass/grass6.png trunk/client/src/net/sourceforge/fortress/image/grass/grass7.png trunk/client/src/net/sourceforge/fortress/image/grass/grass8.png trunk/client/src/net/sourceforge/fortress/image/grass/grass9.png trunk/client/src/net/sourceforge/fortress/isogrid.t trunk/client/src/net/sourceforge/fortress/minimap.t trunk/client/src/net/sourceforge/fortress/preloadimages.t trunk/client/src/net/sourceforge/fortress/twoquarter.t Added Paths: ----------- trunk/client/src/net/sourceforge/fortress/image/stonebg.png trunk/client/src/net/sourceforge/fortress/panel.t trunk/client/src/net/sourceforge/fortress/shadowtext.t Modified: trunk/client/src/net/sourceforge/fortress/game.t =================================================================== --- trunk/client/src/net/sourceforge/fortress/game.t 2007-07-11 01:11:14 UTC (rev 47) +++ trunk/client/src/net/sourceforge/fortress/game.t 2007-07-13 11:52:53 UTC (rev 48) @@ -1,12 +1,52 @@ <!-- Copyright 2007 licensed under GPL v3 --> -<vexi xmlns:ui="vexi://ui" xmlns="net.sourceforge.fortress" xmlns:widget="vexi.widget"> +<vexi xmlns:ui="vexi://ui" xmlns:layout="vexi.layout" xmlns:widget="vexi.widget" + xmlns="net.sourceforge.fortress"> <widget:surface /> <preloadimages /> - <ui:box titlebar="Fortress Prototype"> - <isogrid id="map" /> + <ui:box orient="vertical" titlebar="Fortress Prototype"> + <panel id="top" padding="10" vshrink="true"> + <shadowtext text="Fortress Prototype v2" /> + <ui:box /> + <shadowtext text="Map Size 100 x 100" shrink="true" /> + </panel> + <ui:box> + <panel id="left" hshrink="true"> + <ui:box width="10" /> + <ui:box orient="vertical" vshrink="true"> + <layout:border border="#ffcc00" depth="1" shrink="true"> + <minimap id="minimap" /> + </layout:border> + </ui:box> + <ui:box width="10" /> + </panel> + <layout:border border="#ffcc00" depth="1"> + <isogrid id="map" /> + </layout:border> + <panel id="right" hshrink="true" padding="5" /> + </ui:box> + <panel id="bottom" vshrink="true" padding="5" /> vexi.ui.frame = thisbox; + $top.height ++= function(v) + { + cascade = v; + $left.bgy = -v; + $right.bgy = -v; + } + + $map.height ++= function(v) + { + cascade = v; + $bottom.bgy = -((v + $top.height)%256); + } + + $map.width ++= function(v) + { + cascade = v; + $right.bgx = -((v + $left.width)%256); + } + </ui:box> </vexi> \ No newline at end of file Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass0.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass1.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass2.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass3.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass4.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass5.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass6.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass7.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass8.png =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/image/grass/grass9.png =================================================================== (Binary files differ) Added: trunk/client/src/net/sourceforge/fortress/image/stonebg.png =================================================================== (Binary files differ) Property changes on: trunk/client/src/net/sourceforge/fortress/image/stonebg.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/client/src/net/sourceforge/fortress/isogrid.t =================================================================== (Binary files differ) Modified: trunk/client/src/net/sourceforge/fortress/minimap.t =================================================================== --- trunk/client/src/net/sourceforge/fortress/minimap.t 2007-07-11 01:11:14 UTC (rev 47) +++ trunk/client/src/net/sourceforge/fortress/minimap.t 2007-07-13 11:52:53 UTC (rev 48) @@ -6,7 +6,7 @@ $minimap.width ++= function(v) { cascade = v; width = v; } $minimap.height ++= function(v) { cascade = v; height = v; } <ui:box id="minimap" shrink="true" /> - <ui:box id="viewbox" orient="vertical" align="topleft"> + <ui:box id="viewbox" display="false" orient="vertical" align="topleft"> <ui:box fill="white" height="1" vshrink="true" /> <ui:box> <ui:box fill="white" width="1" hshrink="true" /> Added: trunk/client/src/net/sourceforge/fortress/panel.t =================================================================== (Binary files differ) Property changes on: trunk/client/src/net/sourceforge/fortress/panel.t ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/client/src/net/sourceforge/fortress/preloadimages.t =================================================================== (Binary files differ) Added: trunk/client/src/net/sourceforge/fortress/shadowtext.t =================================================================== (Binary files differ) Property changes on: trunk/client/src/net/sourceforge/fortress/shadowtext.t ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/client/src/net/sourceforge/fortress/twoquarter.t =================================================================== --- trunk/client/src/net/sourceforge/fortress/twoquarter.t 2007-07-11 01:11:14 UTC (rev 47) +++ trunk/client/src/net/sourceforge/fortress/twoquarter.t 2007-07-13 11:52:53 UTC (rev 48) @@ -21,7 +21,12 @@ thisbox.forward; // used to give the graphics a non-repeating feel thisbox.seed = vexi.math.floor(vexi.math.random()*10); + // used to set the base fill of the tile + thisbox.type = "grass"; + var sync = function() { fill = .image[type][type+seed]; } + sync(); + thisbox.addPiece = function(type, top, left) { var z = static.zindex[type]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |