Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/tutorialHS09/data/overlays/hudtemplates3.oxo @ 10177

Last change on this file since 10177 was 5757, checked in by dafrick, 15 years ago

Fixed issues with GUI. The problem was, that the Owner of the GUIOverlay is set properly only after it is constructed and thus was NULL. Now the player gets updated whenever toggleVisibility is called. Also getOwner() no longer returns a PlayerInfo* it returns a ControllableEntity*, so that had to be adjusted to as well.

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1<!--
2<Template name="defaultHUD">
3  <OverlayGroup name = "defaultHUD" scale = "1, 1">
4    <ChatOverlay
5     name     = "chat"
6     position = "0.03, 0.5"
7     font     = "VeraMono"
8     caption  = ""
9     textsize = 0.025
10    />
11
12    <GametypeStatus
13     name     = "state"
14     position = "0.5, 0.85"
15     font     = "VeraMono"
16     textsize = 0.05
17     colour   = "1.0, 1.0, 0.0, 0.8"
18     align    = "center"
19    />
20  </OverlayGroup>
21</Template>
22-->
23
24<Template name="spectatorhud">
25  <OverlayGroup name = "spectatorhud" scale = "1, 1">
26  </OverlayGroup>
27</Template>
28
29<Template name="spaceshiphud">
30  <OverlayGroup name = "spaceshiphud" scale = "1, 1">
31    <Map />
32
33    <HUDHealthBar
34     name              = "HealthBar1"
35     background        = "Orxonox/HealthBarBackground"
36     size              = "0.35, 0.0875"
37     position          = "0.0 , 0.95 "
38     pickpoint         = "0, 1"
39     bartexture        = "healthbar_bar.tga"
40     textfont          = "VeraMono"
41     textusebarcolour  = true
42     textsize          = 0.039
43     textoffset        = "0.315, 0.05"
44     textpickpoint     = "0, 0"
45     textalign         = "right"
46     correctaspect     = false
47     textcorrectaspect = false
48    >
49      <BarColour position = 0.0 colour = "0.7,0.2,0.2" />
50      <BarColour position = 0.5 colour = "0.7,0.7,0.2" />
51      <BarColour position = 1.0 colour = "0.2,0.7,0.2" />
52    </HUDHealthBar>
53
54    <HUDSpeedBar
55     name          = "SpeedBar1"
56     background    = "Orxonox/BarBackground"
57     size          = "0.35, 0.05"
58     position      = "0.0 , 1.0 "
59     pickpoint     = "0, 1"
60     correctaspect = false
61    >
62      <BarColour position = 0.0 colour = "0.7,0.5,0.2" />
63      <BarColour position = 0.5 colour = "0.2,0.7,0.2" />
64      <BarColour position = 1.0 colour = "0.7,0.2,0.2" />
65    </HUDSpeedBar>
66
67    <HUDNavigation
68     name          = "Navigation"
69     correctaspect = true
70     font          = "Monofur"
71     textsize      = 0.05
72     navMarkerSize = 0.03
73     aimMarkerSize = 0.04
74    />
75
76    <HUDRadar
77     name          = "Radar"
78     background    = "Orxonox/Radar"
79     correctaspect = true
80     size          = "0.17, 0.17"
81     position      = "1.0, 1.0"
82     pickpoint     = "1.0, 1.0"
83     rotation      = 0
84     sensitivity   = 1.0
85     halfDotSizeDistance = 3000
86     maximumDotSize      = 0.1
87    />
88
89    <HUDTimer
90     name     = "Timer"
91     position = "0.5, 0.85"
92     font     = "VeraMono"
93     textsize = 0.1
94     colour   = "1.0, 1.0, 0.0, 0.8"
95     align    = "center"
96    />
97
98    <GUIOverlay
99      name = "QuestGUI"
100      guiname = "QuestGUI"
101    />
102
103  </OverlayGroup>
104</Template>
Note: See TracBrowser for help on using the repository browser.