Skip to content

Commit 77b77d1

Browse files
penev92PunkPun
authored andcommitted
Added an ingame-observer.yaml file
OpenRA PR 20436 removed the common file that none of the default mods use, so adding a copy of the one from TS here. Removed redundant (and crashing) references to HPF and statistics widgets - the world actor doesn't have the necessary traits because it doesn't need them, so the widgets crash.
1 parent b6f4adc commit 77b77d1

File tree

2 files changed

+183
-1
lines changed

2 files changed

+183
-1
lines changed
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
Container@OBSERVER_WIDGETS:
2+
Logic: MenuButtonsChromeLogic, LoadIngameChatLogic
3+
Children:
4+
Container@CHAT_ROOT:
5+
LogicKeyListener@OBSERVER_KEY_LISTENER:
6+
Container@MUTE_INDICATOR:
7+
Logic: MuteIndicatorLogic
8+
X: WINDOW_RIGHT - WIDTH - 260
9+
Y: 5
10+
Width: 200
11+
Height: 25
12+
Children:
13+
Image@ICON:
14+
X: PARENT_RIGHT - WIDTH
15+
Y: 1
16+
Width: 24
17+
Height: 24
18+
ImageCollection: sidebar-bits
19+
ImageName: indicator-muted
20+
Label@LABEL:
21+
Width: PARENT_RIGHT - 30
22+
Height: 25
23+
Align: Right
24+
Text: Audio Muted
25+
Contrast: true
26+
MenuButton@OPTIONS_BUTTON:
27+
X: 5
28+
Y: 5
29+
Width: 160
30+
Height: 25
31+
Text: Options (Esc)
32+
Font: Bold
33+
Key: escape
34+
DisableWorldSounds: true
35+
Container@GAME_TIMER_BLOCK:
36+
Logic: GameTimerLogic
37+
X: (WINDOW_RIGHT - WIDTH) / 2
38+
Width: 100
39+
Height: 55
40+
Children:
41+
LabelWithTooltip@GAME_TIMER:
42+
Width: PARENT_RIGHT
43+
Height: 30
44+
Align: Center
45+
Font: Title
46+
Contrast: true
47+
TooltipContainer: TOOLTIP_CONTAINER
48+
TooltipTemplate: SIMPLE_TOOLTIP
49+
Label@GAME_TIMER_STATUS:
50+
Y: 32
51+
Width: PARENT_RIGHT
52+
Height: 15
53+
Align: Center
54+
Font: Bold
55+
Contrast: true
56+
Background@RADAR_BG:
57+
X: WINDOW_RIGHT - 255
58+
Y: 5
59+
Width: 250
60+
Height: 250
61+
Children:
62+
Radar@INGAME_RADAR:
63+
X: 10
64+
Y: 10
65+
Width: PARENT_RIGHT - 19
66+
Height: PARENT_BOTTOM - 19
67+
WorldInteractionController: INTERACTION_CONTROLLER
68+
VideoPlayer@PLAYER:
69+
X: 10
70+
Y: 10
71+
Width: PARENT_RIGHT - 20
72+
Height: PARENT_BOTTOM - 20
73+
Skippable: false
74+
Background@OBSERVER_CONTROL_BG:
75+
X: WINDOW_RIGHT - 255
76+
Y: 260
77+
Width: 250
78+
Height: 55
79+
Children:
80+
DropDownButton@SHROUD_SELECTOR:
81+
Logic: ObserverShroudSelectorLogic
82+
CombinedViewKey: ObserverCombinedView
83+
WorldViewKey: ObserverWorldView
84+
X: 15
85+
Y: 15
86+
Width: 220
87+
Height: 25
88+
Font: Bold
89+
Children:
90+
LogicKeyListener@SHROUD_KEYHANDLER:
91+
Image@FLAG:
92+
Width: 23
93+
Height: 23
94+
X: 2
95+
Y: 5
96+
Label@LABEL:
97+
X: 34
98+
Width: PARENT_RIGHT
99+
Height: 25
100+
Shadow: True
101+
Label@NOFLAG_LABEL:
102+
X: 5
103+
Width: PARENT_RIGHT
104+
Height: 25
105+
Shadow: True
106+
Container@REPLAY_PLAYER:
107+
Logic: ReplayControlBarLogic
108+
Y: 39
109+
Width: 160
110+
Height: 35
111+
Visible: false
112+
Children:
113+
Button@BUTTON_PAUSE:
114+
X: 15
115+
Y: 10
116+
Width: 26
117+
Height: 26
118+
Key: Pause
119+
TooltipText: Pause
120+
TooltipContainer: TOOLTIP_CONTAINER
121+
IgnoreChildMouseOver: true
122+
Children:
123+
Image@IMAGE_PAUSE:
124+
X: 5
125+
Y: 5
126+
ImageCollection: music
127+
ImageName: pause
128+
Button@BUTTON_PLAY:
129+
X: 15
130+
Y: 10
131+
Width: 26
132+
Height: 26
133+
Key: Pause
134+
TooltipText: Play
135+
TooltipContainer: TOOLTIP_CONTAINER
136+
IgnoreChildMouseOver: true
137+
Children:
138+
Image@IMAGE_PLAY:
139+
X: 5
140+
Y: 5
141+
ImageCollection: music
142+
ImageName: play
143+
Button@BUTTON_SLOW:
144+
X: 55
145+
Y: 13
146+
Width: 36
147+
Height: 20
148+
Key: ReplaySpeedSlow
149+
TooltipText: Slow speed
150+
TooltipContainer: TOOLTIP_CONTAINER
151+
Text: 50%
152+
Font: TinyBold
153+
Button@BUTTON_REGULAR:
154+
X: 55 + 45
155+
Y: 13
156+
Width: 38
157+
Height: 20
158+
Key: ReplaySpeedRegular
159+
TooltipText: Regular speed
160+
TooltipContainer: TOOLTIP_CONTAINER
161+
Text: 100%
162+
Font: TinyBold
163+
Button@BUTTON_FAST:
164+
X: 55 + 45 * 2
165+
Y: 13
166+
Width: 38
167+
Height: 20
168+
Key: ReplaySpeedFast
169+
TooltipText: Fast speed
170+
TooltipContainer: TOOLTIP_CONTAINER
171+
Text: 200%
172+
Font: TinyBold
173+
Button@BUTTON_MAXIMUM:
174+
X: 55 + 45 * 3
175+
Y: 13
176+
Width: 38
177+
Height: 20
178+
Key: ReplaySpeedMax
179+
TooltipText: Maximum speed
180+
TooltipContainer: TOOLTIP_CONTAINER
181+
Text: MAX
182+
Font: TinyBold

mods/example/mod.chrome.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ ChromeLayout:
2424
common|chrome/ingame-infoscripterror.yaml
2525
common|chrome/ingame-infostats.yaml
2626
common|chrome/ingame-menu.yaml
27-
common|chrome/ingame-observer.yaml
2827
common|chrome/ingame-perf.yaml
28+
example|chrome/ingame-observer.yaml
2929
example|chrome/layouts/ingame-player.yaml
3030
common|chrome/ingame-transients.yaml
3131
common|chrome/lobby.yaml

0 commit comments

Comments
 (0)