Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/output/data/overlays/debug.oxo @ 9352

Last change on this file since 9352 was 8825, checked in by landauf, 13 years ago

There's a bug in ogre 1.7 (?) causing the first text overlay with a specific font not being shown (until the caption is changed or the window resized). As a result, the "Frames per second" text is not visible in the debug overlay and chat is only visible after the 2nd line of chat is printed. I don't care about the first problem, but I "fixed" the second problem by making the chat overlay not the first element in the XML template. Now DeathMessage is first, but that's fine because its caption is set at a later point when it will work anyway.

Also reordered the chat messages in the chat overlay.

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1<!-- DEBUG OVERLAY -->
2<OverlayGroup
3 name    = "Debug"
4 scale   = "1.0, 1.0"
5 scroll  = "0, 0"
6 visible = false
7>
8  <OverlayText
9   name     = "FPSTextCaption"
10   position = "0.03, 0.05"
11   font     = "Monofur"
12   caption  = "Frames per second:"
13   textsize = 0.03
14  />
15
16  <DebugFPSText
17   name     = "FPSText"
18   position = "0.3, 0.05"
19   font     = "Monofur"
20   textsize = 0.03
21  />
22
23  <OverlayText
24   name     = "RTRTextCaption"
25   position = "0.03, 0.09"
26   font     = "Monofur"
27   caption  = "Tick time in ms: "
28   textsize = 0.03
29  />
30
31  <DebugRTRText
32   name     = "RTRText"
33   position = "0.3, 0.09"
34   font     = "Monofur"
35   textsize = 0.03
36  />
37
38</OverlayGroup>
39
40<Template name="defaultHUD">
41  <OverlayGroup name = "defaultHUD" scale = "1, 1">
42    <KillMessage
43     name     = "killmessage"
44     position = "0.5, 0.15"
45     font     = "VeraMono"
46     textsize = 0.035
47     colour   = "1.0, 1.0, 0.5, 1.0"
48     align    = "center"
49    />
50
51    <DeathMessage
52     name     = "deathmessage"
53     position = "0.5, 0.20"
54     font     = "VeraMono"
55     textsize = 0.035
56     colour   = "1.0, 0.3, 0.3, 1.0"
57     align    = "center"
58    />
59
60    <PauseNotice
61     name     = "pausenotice"
62     position = "0.5, 0.1"
63     font     = "VeraMono"
64     textsize = 0.03
65     colour   = "1.0, 1.0, 1.0, 1.0"
66     align    = "center"
67    />
68
69    <AnnounceMessage
70     name     = "announcemessage"
71     position = "0.5, 0.75"
72     font     = "VeraMono"
73     textsize = 0.05
74     colour   = "0.5, 0.5, 1.0, 1.0"
75     align    = "center"
76    />
77
78    <ChatOverlay
79     name     = "chat"
80     position = "0.03, 0.08"
81     font     = "VeraMono"
82     caption  = ""
83     textsize = 0.025
84    />
85
86  </OverlayGroup>
87</Template>
Note: See TracBrowser for help on using the repository browser.