Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5236 for data/Media


Ignore:
Timestamp:
Oct 24, 2008, 2:44:14 AM (16 years ago)
Author:
landauf
Message:
  • put hudtemplates into a separate file
  • added dedicated button to loadGUI
  • changed some parameters in some material files
Location:
data/Media
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • data/Media/gui/scripts/loadGUI.lua

    r5165 r5236  
    1414quit:setText("Quit")
    1515quit:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0)))
    16 quit:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.6, 0)))
     16quit:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.7, 0)))
    1717quit:subscribeEvent("Clicked","button_quit_clicked")
    1818
     
    2323standalone:subscribeEvent("Clicked","button_standalone_clicked")
    2424
     25local dedicated = winMgr:createWindow("TaharezLook/Button", "orxonox/DedicatedButton")
     26dedicated:setText("Dedicated")
     27dedicated:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0)))
     28dedicated:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.4, 0)))
     29dedicated:subscribeEvent("Clicked","button_dedicated_clicked")
     30
    2531local server = winMgr:createWindow("TaharezLook/Button", "orxonox/ServerButton")
    2632server:setText("Server")
    2733server:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0)))
    28 server:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.4, 0)))
     34server:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.5, 0)))
    2935server:subscribeEvent("Clicked","button_server_clicked")
    3036
     
    3238client:setText("Client")
    3339client:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0)))
    34 client:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.5, 0)))
     40client:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.6, 0)))
    3541client:subscribeEvent("Clicked","button_client_clicked")
    3642
     
    4349rootSheet:addChildWindow(standalone)
    4450rootSheet:addChildWindow(server)
     51rootSheet:addChildWindow(dedicated)
    4552rootSheet:addChildWindow(client)
    4653background:addChildWindow(rootSheet)
     
    5966function button_server_clicked(e)
    6067  orxonox.CommandExecutor:execute("selectGameState server")
     68  hideGUI()
     69end
     70
     71function button_dedicated_clicked(e)
     72  orxonox.CommandExecutor:execute("selectGameState dedicated")
    6173  hideGUI()
    6274end
  • data/Media/levels/sample2.oxw

    r5219 r5236  
    1 <Template name="spectatorhud">
    2   <OverlayGroup>
    3     <OverlayText
    4      position = "0.5, 0.85"
    5      font     = "VeraMono"
    6      caption  = "Press [Fire] to start the match!"
    7      textSize = 0.05
    8      colour   = "1.0, 1.0, 0.0, 0.8"
    9      align    = "center"
    10     />
    11   </OverlayGroup>
    12 </Template>
     1<?lua
     2  include("../../media/levels/hudtemplates.oxw")
     3?>
    134
    14 <LevelInfo name="Sample" description="Just a few tests" ambientlight="1,0,0,1" skybox="Orxonox/Starbox" />
    15 <!--PositionableEntity position="10,20,30" /-->
    16 <!--MovableEntity position="100,200,300" velocity="1,0,0">
     5<LevelInfo
     6 name         = "Sample"
     7 description  = "Just a few tests"
     8 ambientlight = "0.4, 0.4, 0.4"
     9 skybox       = "Orxonox/Starbox"
     10/>
     11
     12<MovableEntity position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
    1713  <attached>
    18     <MovableEntity position="0,0,1">
     14    <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
     15    <PositionableEntity position="0,0,100">
    1916      <attached>
    20         <MovableEntity position="0,0,10" />
    21         <PositionableEntity position="0,0,20" />
     17        <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
     18        <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
     19          <attached>
     20            <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
     21            <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
     22            <Model position="35,0,0" scale=2 mesh="ast1.mesh" />
     23            <Model position="-35,0,0" scale=2 mesh="ast1.mesh" />
     24          </attached>
     25        </MovableEntity>
     26      </attached>
     27    </PositionableEntity>
     28    <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
     29      <attached>
     30        <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
     31        <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
     32        <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
    2233      </attached>
    2334    </MovableEntity>
    24     <PositionableEntity position="0,0,2">
    25       <attached>
    26         <MovableEntity position="0,0,20" />
    27       </attached>
    28     </PositionableEntity>
    2935  </attached>
    30 </MovableEntity-->
    31 <!--ControllableEntity position="10,20,30" /-->
    32 <!--MovableEntity position="100,200,300" /-->
     36</MovableEntity>
    3337
    34 <Model position="0,0,100" mesh="ast1.mesh" />
    35 <Model position="0,0,-100" mesh="ast1.mesh" />
    36 <Model position="0,100,0" mesh="ast1.mesh" />
    37 <Model position="0,-100,0" mesh="ast1.mesh" />
    38 <Model position="100,0,0" mesh="ast1.mesh" />
    39 <Model position="-100,0,0" mesh="ast1.mesh" />
     38<Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
     39<!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
     40<Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
     41<Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
     42<Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
     43<Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
     44
     45<Model position="0,0,-100" pitch=-90 roll=-90 scale=7 mesh="assff.mesh" />
     46
     47<Model position="1000,-200,200" scale3D="1,1000,1000" mesh="ast1.mesh" />
  • data/Media/materials/scripts/assff.material

    r5066 r5236  
    77                {
    88                        ambient 0.600000 0.600000 0.600000 1.000000
    9                         diffuse 0.800000 0.800000 0.800000 1.000000
     9                        diffuse 5.000000 5.000000 5.000000 1.000000
    1010                        emissive 0.000000 0.000000 0.000000 1.000000
    1111                        texture_unit
  • data/Media/materials/scripts/rock.material

    r5123 r5236  
    55                pass
    66                {
     7                        ambient 1.0 1.0 1.0 1.0
     8                        diffuse 10.0 10.0 10.0 1.0
    79
    810                        texture_unit
Note: See TracChangeset for help on using the changeset viewer.