mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 02:52:30 +00:00
Established Editor framework (theoretically).
This was SVN commit r1560.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -35,6 +35,9 @@
|
||||
<script file="gui/test/functions_pregame.js"><![CDATA[
|
||||
]]></script>
|
||||
|
||||
<script file="gui/test/functions_atlas.js"><![CDATA[
|
||||
]]></script>
|
||||
|
||||
<script file="gui/test/functions_manual.js"><![CDATA[
|
||||
]]></script>
|
||||
|
||||
@@ -70,6 +73,7 @@
|
||||
<script file="gui/test/functions_session.js"><![CDATA[
|
||||
initCoord();
|
||||
initPreGame();
|
||||
initAtlas();
|
||||
initSession();
|
||||
]]></script>
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
<object type="button" name="pregame-mainmenu-sp-button" sprite-over="pregame-mainmenu-spbt" size="52.9296875% 23.95833333% 67.578125% 42.317708333%" z="101" hidden="false"
|
||||
tooltip-style="pregame-mainmenu-tooltip" tooltip="Want to move some Dudes around or test something ? Click here to start a new game on the default map.">
|
||||
<action on="Press"><![CDATA[
|
||||
GUIObjectUnhide("pregame_subwindow_bkg");
|
||||
GUIObjectUnhide("pregame_sp_mapsel");
|
||||
GUIObjectUnhide("pregame_subwindow_bkg");
|
||||
GUIObjectUnhide("pregame_sp_mapsel");
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
@@ -35,9 +35,11 @@
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
<object type="button" name="pregame-mainmenu-ed-button" sprite-over="pregame-mainmenu-edbt" size="44.00% 61.50% 62.45% 83.55%" z="101" hidden="false"
|
||||
<object type="button" name="pregame-mainmenu-ed-button" sprite-over="pregame-mainmenu-edbt" size="44.00% 61.50% 63.75% 83.55%" z="101" hidden="false"
|
||||
tooltip-style="pregame-mainmenu-tooltip" tooltip="Come forth and witness a totally non-functioning Editor, a mere shadow of its potential self!">
|
||||
<action on="Press"><![CDATA[
|
||||
GUIObjectHide("pregame_gui");
|
||||
GUIObjectUnhide("atlas_gui");
|
||||
]]></action>
|
||||
</object>
|
||||
|
||||
@@ -74,7 +76,7 @@
|
||||
|
||||
<object type="empty" name="pregame_subwindows" size="0 0 100% 100%" z="1" hidden="false">
|
||||
|
||||
<object type="image" name="pregame_subwindow_bkg" sprite="pregame-mainmenu-tooltip-background" size="0 0 100% 100%" z="105" hidden="true"/>
|
||||
<object type="image" name="pregame_subwindow_bkg" sprite="translucent-background" size="0 0 100% 100%" z="105" hidden="true"/>
|
||||
|
||||
<object type="button" name="pregame_mp_ip" sprite="0ad_window" z="106" hidden="true">
|
||||
<action on="Load"><![CDATA[
|
||||
@@ -100,7 +102,7 @@
|
||||
|
||||
<object type="text" name="pregame_ip_infotext">
|
||||
<action on="Load"><![CDATA[
|
||||
getGUIObjectByName("pregame_ip_infotext").caption = "You can start a multiplayer game by Direct-IP connect from here. Either \n- enter a map name and click 'Host Game' to host a game or \n- enter an IP and click 'Join Game' to join a game on the IP entered.";
|
||||
getGUIObjectByName("pregame_ip_infotext").caption = "You can start a multiplayer game by Direct-IP connect from here. Either \n- enter a map name and click 'Host Game' to host a game or \n- enter an IP and click 'Join Game' to join a game on the entered IP.";
|
||||
setSizeCoord("pregame_ip_infotext", crd_pregame_iphost_bkg_x, crd_pregame_iphost_bkg_y, crd_pregame_iphost_bkg_x+crd_pregame_iphost_bkg_width, crd_pregame_iphost_bkg_y+crd_pregame_iphost_bkg_height, mid_screen, mid_screen, mid_screen, mid_screen);
|
||||
]]></action>
|
||||
</object>
|
||||
@@ -184,7 +186,7 @@
|
||||
</object>
|
||||
|
||||
<object type="text" name="pregame_sp_infotext" absolute="false" size="10 10 290 60">
|
||||
Type the name of the map you want to start the game at into the box. The name is realtive to /data/mods/official/maps/scenarios/.
|
||||
Type the name of the map you want to start into the box. The name is relative to /data/mods/official/maps/scenarios/.
|
||||
</object>
|
||||
|
||||
<object type="text" name="pregame_sp_mapname_txt" absolute="false" textcolor="0 0 0" size="10 90 120 110">
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
}
|
||||
]]></action>
|
||||
|
||||
<object type="text" name="manual_bkg" sprite="tooltip-background" size="50%-200 0%+50 50%+200 100%-50" font="prospero16" textcolor="255 255 255" z="100" hidden="false" ghost="true">
|
||||
<object type="text" name="manual_bkg" sprite="translucent-background" size="50%-200 0%+50 50%+200 100%-50" font="prospero16" textcolor="255 255 255" z="100" hidden="false" ghost="true">
|
||||
<action on="Tick"><![CDATA[
|
||||
if (selection.length && !( getGUIObjectByName( "manual_gui" ).hidden ))
|
||||
{
|
||||
@@ -31,11 +31,11 @@
|
||||
|
||||
<object type="button" name="manual_portrait" style="portrait" size="50%-192 0%+80 50%-128 0%+144" z="100" ghost="true"/>
|
||||
|
||||
<object type="text" name="manual_name" sprite="tooltip-background" size="50%-195 0%+149 50%+195 100%-205" font="prospero14" textcolor="255 255 255" z="100" ghost="true"/>
|
||||
<object type="text" name="manual_name" sprite="translucent-background" size="50%-195 0%+149 50%+195 100%-205" font="prospero14" textcolor="255 255 255" z="100" ghost="true"/>
|
||||
|
||||
<!-- Gee needs to implement text clipping, so long text doesn't get clipped to these scroll windows yet. Scroll bars also don't block world input yet. -->
|
||||
<object type="text" name="manual_rollover" scrollbar="true" scrollbar-style="manual_scrollbar" sprite="tooltip-background" size="50%-126 0%+80 50%+195 0%+144" font="prospero16" textcolor="255 255 255" z="100" ghost="false"/>
|
||||
<object type="text" name="manual_history" scrollbar="true" scrollbar-style="manual_scrollbar" sprite="tooltip-background" size="50%-195 100%-200 50%+195 100%-55" font="prospero16" textcolor="255 255 255" z="100" ghost="false"/>
|
||||
<object type="text" name="manual_rollover" scrollbar="true" scrollbar-style="manual_scrollbar" sprite="translucent-background" size="50%-126 0%+80 50%+195 0%+144" font="prospero16" textcolor="255 255 255" z="100" ghost="false"/>
|
||||
<object type="text" name="manual_history" scrollbar="true" scrollbar-style="manual_scrollbar" sprite="translucent-background" size="50%-195 100%-200 50%+195 100%-55" font="prospero16" textcolor="255 255 255" z="100" ghost="false"/>
|
||||
|
||||
<object type="button" name="manual_exit_button" sprite="exit_sprite" sprite-over="exit_sprite-over" size="50%+184 0%+50 50%+200 0%+66" ghost="false" z="100" hidden="false">
|
||||
<action on="Press"><![CDATA[
|
||||
|
||||
@@ -10,4 +10,7 @@
|
||||
|
||||
<objects>
|
||||
|
||||
<object type="empty" name="atlas_gui" size="0 0 100% 100%" z="1" hidden="true">
|
||||
</object>
|
||||
|
||||
</objects>
|
||||
|
||||
@@ -1 +1,10 @@
|
||||
// Functions for Atlas Scenario Editor
|
||||
// Main Atlas Scenario Editor JS Script file
|
||||
// Contains functions and code for the game's integrated Scenario Editor.
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function initAtlas()
|
||||
{
|
||||
}
|
||||
|
||||
// ====================================================================
|
||||
@@ -185,6 +185,10 @@
|
||||
<image texture="global/ui_gen_titlebar-right.png" real-texture-placement="0 0 64 32" size="95%-64 0%-10 100%+0 0%+22" />
|
||||
</sprite>
|
||||
|
||||
<sprite name="translucent-background">
|
||||
<image backcolor="0 0 0 85" size="0 0 100% 100%"/>
|
||||
</sprite>
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
GENERIC ICONS
|
||||
@@ -255,7 +259,17 @@
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
PREGAME GUI
|
||||
PREGAME GUI - BACKCOLOR SPRITES
|
||||
==========================================
|
||||
-->
|
||||
|
||||
<sprite name="pregame-mainmenu-tooltip-background">
|
||||
<image backcolor="0 0 0 85" size="0 0 100% 100%"/>
|
||||
</sprite>
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
PREGAME GUI - TEXTURE SPRITES
|
||||
==========================================
|
||||
-->
|
||||
|
||||
@@ -282,14 +296,6 @@
|
||||
<sprite name="pregame-mainmenu-edbt">
|
||||
<image texture="pregame/ui_pregame_mainmenu_edbt_over.png" real-texture-placement="1 1 203 161" size="0 0 100% 100%" />
|
||||
</sprite>
|
||||
|
||||
<sprite name="pregame-mainmenu-tooltip-background">
|
||||
<image backcolor="0 0 0 85" size="0 0 100% 100%"/>
|
||||
</sprite>
|
||||
|
||||
<sprite name="session-tooltip-background">
|
||||
<image backcolor="255 255 255" size="0 0 100% 100%" border="true" bordercolor="0 0 0"/>
|
||||
</sprite>
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
@@ -300,13 +306,17 @@
|
||||
<sprite name="black_bkg">
|
||||
<image texture="black_bkg_16x16.png" texture-size="0 0 16 16" size="0 0 100% 100%" />
|
||||
</sprite>
|
||||
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
SESSION GUI
|
||||
SESSION GUI - BACKCOLOR SPRITES
|
||||
==========================================
|
||||
-->
|
||||
|
||||
<sprite name="session-tooltip-background">
|
||||
<image backcolor="255 255 255" size="0 0 100% 100%" border="true" bordercolor="0 0 0"/>
|
||||
</sprite>
|
||||
|
||||
<!--
|
||||
==========================================
|
||||
MAP ORB
|
||||
|
||||
Reference in New Issue
Block a user