Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/Media/overlay/hud.oxo @ 5158

Last change on this file since 5158 was 5158, checked in by rgrieder, 16 years ago
  • 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..)

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
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
74</OverlayGroup>
75
76
77<!-- DEBUG OVERLAY -->
78<OverlayGroup name="Debug" scale=1,1>
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
96</OverlayGroup>
Note: See TracBrowser for help on using the repository browser.