From: <jo...@us...> - 2005-11-30 06:11:53
|
Update of /cvsroot/crystal/crystalcore/data/menus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15371/data/menus Modified Files: startmenu.xml Log Message: - Jorrit changed the menu system in CC to use billboards instead of AWS. Index: startmenu.xml =================================================================== RCS file: /cvsroot/crystal/crystalcore/data/menus/startmenu.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- startmenu.xml 27 Nov 2005 15:21:20 -0000 1.1 +++ startmenu.xml 30 Nov 2005 06:11:44 -0000 1.2 @@ -1,41 +1,72 @@ <world> + <textures> + <texture name="doorgreen"> + <file>/cellib/images/doorgreen.png</file> + <keepimage /> + </texture> + <texture name="doorred"> + <file>/cellib/images/doorred.png</file> + <keepimage /> + </texture> + </textures> + <materials> + <material name="doorred"> <texture>doorred</texture> </material> + <material name="doorgreen"> <texture>doorgreen</texture> </material> + </materials> <sector name="room"> <addon plugin="cel.addons.xmlscripts"> + <pcfactory>cel.pcfactory.billboard</pcfactory> <layer>blxml</layer> - <script name="cc_startmenu"> - <event name="pcawswin_StartClicked"> + + <script name="menu"> + <event name="init"> + <createentity name="start_button" layer="blxml" behaviour="start_button" /> + <createentity name="exit_button" layer="blxml" behaviour="exit_button" /> + </event> + </script> + + <script name="start_button"> + <event name="init"> + <createpropclass name="pcbillboard" /> + <default propclass="pc(pcbillboard)" /> + <property id="propid(name)" value="menu" /> + <property id="propid(materialname)" value="doorgreen" /> + <property id="propid(movable)" value="false" /> + <property id="propid(clickable)" value="true" /> + <property id="propid(restack)" value="true" /> + <property id="propid(width)" value="16000" /> + <property id="propid(height)" value="16000" /> + <property id="propid(x)" value="2000" /> + <property id="propid(y)" value="2000" /> + </event> + <event name="pcbillboard_select"> <print value="start" /> <call entity="ent_gamemanager" event="cc_startgame" /> </event> - <event name="pcawswin_ExitClicked"> + </script> + + <script name="exit_button"> + <event name="init"> + <createpropclass name="pcbillboard" /> + <default propclass="pc(pcbillboard)" /> + <property id="propid(name)" value="menu" /> + <property id="propid(materialname)" value="doorred" /> + <property id="propid(movable)" value="false" /> + <property id="propid(clickable)" value="true" /> + <property id="propid(restack)" value="true" /> + <property id="propid(width)" value="16000" /> + <property id="propid(height)" value="16000" /> + <property id="propid(x)" value="34000+2000" /> + <property id="propid(y)" value="2000" /> + </event> + <event name="pcbillboard_select"> <print value="exit" /> <call entity="ent_gamemanager" event="cc_exit" /> </event> </script> </addon> - <addon plugin="cel.addons.celentity" entityname="aws" > - <propclass name="pcawswindow"> - <action name="CreateSink"> - <par name="name" string="ccSink" /> - </action> - <action name="RegisterTrigger"> - <par name="trigger" string="StartClicked" /> - </action> - <action name="RegisterTrigger"> - <par name="trigger" string="ExitClicked" /> - </action> - <action name="LoadDefinitionFile"> - <par name="filename" string="/cc/menu/startmenu.def" /> - </action> - <action name="SelectDefaultSkin"> - <par name="name" string="Normal Windows" /> - </action> - <action name="CreateWindow"> - <par name="name" string="Main" /> - </action> - <action name="Show" /> - </propclass> - <behaviour layer="blxml" name="cc_startmenu" /> + <addon plugin="cel.addons.celentity" entityname="menu" > + <behaviour layer="blxml" name="menu" /> </addon> </sector> |