Index: ps/trunk/binaries/data/mods/official/gui/test/setup.xml =================================================================== --- ps/trunk/binaries/data/mods/official/gui/test/setup.xml (nonexistent) +++ ps/trunk/binaries/data/mods/official/gui/test/setup.xml (revision 648) @@ -0,0 +1,31 @@ + + + + + + + + + Property changes on: ps/trunk/binaries/data/mods/official/gui/test/setup.xml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +author date id revision \ No newline at end of property Index: ps/trunk/binaries/data/mods/official/gui/test/hello.xml =================================================================== --- ps/trunk/binaries/data/mods/official/gui/test/hello.xml (nonexistent) +++ ps/trunk/binaries/data/mods/official/gui/test/hello.xml (revision 648) @@ -0,0 +1,83 @@ + + + + + + + + + 600) { + g_balldx *= -0.9; + g_ballx = 600-(g_ballx-600); + } + else if (g_ballx < 0) { + g_balldx *= -0.9; + g_ballx = -g_ballx; + } + if (g_bally > 400) { + g_balldy *= -0.9; + g_bally = 400-(g_bally-400); + } + else if (g_bally < 0) { + g_balldy *= -0.9; + g_bally = -g_bally; + } + + // Gravitate towards the mouse + var vect_x = g_ballx-mouse.x; + var vect_y = g_bally-mouse.y; + var dsquared = vect_x*vect_x + vect_y*vect_y; + if (dsquared < 1000) dsquared = 1000; + var force = 10000.0 / dsquared; + var mag = Math.sqrt(vect_x*vect_x + vect_y*vect_y); + vect_x /= mag; vect_y /= mag; + g_balldx -= force * vect_x; + g_balldy -= force * vect_y; + + var ball = getGUIObjectByName('ball'); + var r=5; + ball.size = new GUISize(g_ballx-r, g_bally-r, g_ballx+r, g_bally+r); + ]]> + + + * + + + + * + + + + Property changes on: ps/trunk/binaries/data/mods/official/gui/test/hello.xml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +author date id revision \ No newline at end of property Index: ps/trunk/binaries/data/mods/official/gui/test/styles.xml =================================================================== --- ps/trunk/binaries/data/mods/official/gui/test/styles.xml (nonexistent) +++ ps/trunk/binaries/data/mods/official/gui/test/styles.xml (revision 648) @@ -0,0 +1,24 @@ + + + + + + +