Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5158


Ignore:
Timestamp:
Jun 22, 2008, 11:56:37 PM (16 years ago)
Author:
rgrieder
Message:
  • formatted hud.oxo
  • currently there are 3 useless (plus one useful) SpeedBars Thats merely to demonstrate what you can do.

Btw: A very interesting command to type into the console is:

TclThreadManager execute [TclThreadmanager create] while 1 { OrxonoxOverlay rotateOverlay SpeedBar2 3; OrxonoxOverlay rotateOverlay SpeedBar3 3; OrxonoxOverlay rotateOverlay SpeedBar4 -3; OrxonoxOverlay rotateOverlay SpeedBar1 -3; }

(works fine at about 60 fps, maybe you have to adjust the values..)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/Media/overlay/hud.oxo

    r5157 r5158  
    1 <OverlayGroup name="HUD" scale=1,1>
    2   <HUDSpeedBar name ="SpeedBar1" background="Orxonox/BarBackground" size=0.35,0.05 position=0.0,0.0 origin=0,0 value=0 />
    3   <HUDSpeedBar name ="SpeedBar2" background="Orxonox/BarBackground" size=0.35,0.05 position=1.0,0.0 origin=1,0 value=0 />
    4   <HUDSpeedBar name ="SpeedBar3" background="Orxonox/BarBackground" size=0.35,0.05 position=0.0,1.0 origin=0,1 value=0 />
    5   <HUDSpeedBar name ="SpeedBar4" background="Orxonox/BarBackground" size=0.35,0.05 position=1.0,1.0 origin=1,1 value=0 />
    6   <HUDNavigation name="Navigation" correctAspect=true font="Monofur" navmarkersize=0.03,0.03 />
    7   <HUDRadar name ="Radar" background="Orxonox/Radar" correctAspect=true size=0.17,0.17 position=0.5,1 origin=0.5,1 rotation=0 />
     1<!-- HUD OVERLAY -->
     2<OverlayGroup name = "HUD" scale = "1, 1">
     3
     4  <HUDSpeedBar
     5   name       = "SpeedBar1"
     6   background = "Orxonox/BarBackground"
     7   size       = "0.35, 0.05"
     8   position   = "0.0 , 1.0 "
     9   origin     = "0, 1"
     10   value      = 0
     11  >
     12    <BarColour position=0.7 colour=0.2,0.7,0.2/>
     13    <BarColour position=0.4 colour=0.7,0.5,0.2/>
     14    <BarColour position=0.1 colour=0.7,0.2,0.2/>
     15  </HUDSpeedBar>
     16
     17  <HUDSpeedBar
     18   name       = "SpeedBar2"
     19   background = "Orxonox/BarBackground"
     20   size       = "0.35, 0.05"
     21   position   = "1.0 , 1.0 "
     22   origin     = "1, 1"
     23   value      = 0
     24   right2left = true
     25  >
     26    <BarColour position=0.7 colour=0.2,0.7,0.2/>
     27    <BarColour position=0.4 colour=0.7,0.5,0.2/>
     28    <BarColour position=0.1 colour=0.7,0.2,0.2/>
     29  </HUDSpeedBar>
     30
     31  <HUDSpeedBar
     32   name       = "SpeedBar3"
     33   background = "Orxonox/BarBackground"
     34   size       = "0.35, 0.05"
     35   position   = "1.0 , 0.0 "
     36   origin     = "1, 0"
     37   value      = 0
     38   right2left = true
     39  >
     40    <BarColour position=0.7 colour=0.2,0.7,0.2/>
     41    <BarColour position=0.4 colour=0.7,0.5,0.2/>
     42    <BarColour position=0.1 colour=0.7,0.2,0.2/>
     43  </HUDSpeedBar>
     44
     45  <HUDSpeedBar
     46   name       = "SpeedBar4"
     47   background = "Orxonox/BarBackground"
     48   size       = "0.35, 0.05"
     49   position   = "0.0 , 0.0 "
     50   origin     = "0, 0"
     51   value      = 0
     52  >
     53    <BarColour position=0.7 colour=0.2,0.7,0.2/>
     54    <BarColour position=0.4 colour=0.7,0.5,0.2/>
     55    <BarColour position=0.1 colour=0.7,0.2,0.2/>
     56  </HUDSpeedBar>
     57
     58  <HUDNavigation
     59   name          = "Navigation"
     60   correctAspect = true
     61   font          = "Monofur"
     62   navmarkersize = "0.03, 0.03"
     63  />
     64
     65  <HUDRadar
     66   name          = "Radar"
     67   background    = "Orxonox/Radar"
     68   correctAspect = true
     69   size          = "0.17, 0.17"
     70   position      = "0.5, 1.0"
     71   origin        = "0.5, 1.0"
     72  />
     73
    874</OverlayGroup>
    975
     76
     77<!-- DEBUG OVERLAY -->
    1078<OverlayGroup name="Debug" scale=1,1>
    11   <HUDFPSText name="FPSText" textSize = 0.043 position=0.03,0.03 font="Monofur" caption="Frames per second: " />
    12   <HUDRTRText name="RTRText" textSize = 0.043 position=0.03,0.06 font="Monofur" caption="Render time ratio: " />
     79
     80  <DebugFPSText
     81   name     = "FPSText"
     82   textSize = "0.03"
     83   position = "0.03, 0.05"
     84   font     = "Monofur"
     85   caption  = "Frames per second: "
     86  />
     87
     88  <DebugRTRText
     89   name     = "RTRText"
     90   textSize = "0.03"
     91   position = "0.03, 0.09"
     92   font     = "Monofur"
     93   caption  = "Render time ratio: "
     94  />
     95
    1396</OverlayGroup>
Note: See TracChangeset for help on using the changeset viewer.