From 7a3bae33eadc6383f4658b16f0ffa8ef6b520230 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sun, 19 Mar 2017 00:12:16 +0100 Subject: [PATCH] Fix TS observer flag position --- mods/ts/chrome/ingame-observer.yaml | 160 ++++++++++++++++++++++++++++ mods/ts/mod.yaml | 2 +- 2 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 mods/ts/chrome/ingame-observer.yaml diff --git a/mods/ts/chrome/ingame-observer.yaml b/mods/ts/chrome/ingame-observer.yaml new file mode 100644 index 0000000000..4d910a4287 --- /dev/null +++ b/mods/ts/chrome/ingame-observer.yaml @@ -0,0 +1,160 @@ +Container@OBSERVER_WIDGETS: + Logic: MenuButtonsChromeLogic + Children: + MenuButton@OPTIONS_BUTTON: + Width: 160 + Height: 25 + Text: Options (Esc) + Font: Bold + Key: escape + DisableWorldSounds: true + MenuButton@OBSERVER_STATS_BUTTON: + MenuContainer: INGAME_OBSERVERSTATS_BG + HideIngameUI: False + Pause: False + X: 162 + Y: 0 + Width: 160 + Height: 25 + Text: Statistics (F1) + Font: Bold + Key: f1 + Container@GAME_TIMER_BLOCK: + Logic: GameTimerLogic + X: (WINDOW_RIGHT - WIDTH) / 2 + Width: 100 + Height: 55 + Children: + LabelWithTooltip@GAME_TIMER: + Width: PARENT_RIGHT + Height: 30 + Align: Center + Font: Title + Contrast: true + TooltipContainer: TOOLTIP_CONTAINER + TooltipTemplate: SIMPLE_TOOLTIP + Label@GAME_TIMER_STATUS: + Y: 32 + Width: PARENT_RIGHT + Height: 15 + Align: Center + Font: Bold + Contrast: true + Background@RADAR_BG: + X: WINDOW_RIGHT-255 + Y: 5 + Width: 250 + Height: 250 + Children: + Radar@INGAME_RADAR: + X: 10 + Y: 10 + Width: PARENT_RIGHT-19 + Height: PARENT_BOTTOM-19 + WorldInteractionController: INTERACTION_CONTROLLER + Background@OBSERVER_CONTROL_BG: + X: WINDOW_RIGHT-255 + Y: 260 + Width: 250 + Height: 55 + Children: + DropDownButton@SHROUD_SELECTOR: + Logic: ObserverShroudSelectorLogic + X: 15 + Y: 15 + Width: 220 + Height: 25 + Font: Bold + Children: + LogicKeyListener@SHROUD_KEYHANDLER: + Image@FLAG: + Width: 23 + Height: 23 + X: 2 + Y: 5 + Label@LABEL: + X: 34 + Width: 60 + Height: 25 + Shadow: True + Label@NOFLAG_LABEL: + X: 5 + Width: PARENT_RIGHT + Height: 25 + Shadow: True + Container@REPLAY_PLAYER: + Logic: ReplayControlBarLogic + Y: 39 + Width: 160 + Height: 35 + Visible: false + Children: + Button@BUTTON_PAUSE: + X: 15 + Y: 10 + Width: 26 + Height: 26 + IgnoreChildMouseOver: true + Children: + Image@IMAGE_PAUSE: + Y: 1 + Width: 25 + Height: 25 + ImageCollection: music + ImageName: pause + Button@BUTTON_PLAY: + X: 15 + Y: 10 + Width: 26 + Height: 26 + IgnoreChildMouseOver: true + Children: + Image@IMAGE_PLAY: + Width: 25 + Height: 25 + ImageCollection: music + ImageName: play + Button@BUTTON_SLOW: + X: 55 + Y: 13 + Width: 36 + Height: 20 + BaseLine: 1 + TooltipText: Slow speed + TooltipContainer: TOOLTIP_CONTAINER + VisualHeight: 0 + Text: 50% + Font: TinyBold + Button@BUTTON_REGULAR: + X: 55 + 45 + Y: 13 + Width: 38 + Height: 20 + BaseLine: 1 + TooltipText: Regular speed + TooltipContainer: TOOLTIP_CONTAINER + VisualHeight: 0 + Text: 100% + Font: TinyBold + Button@BUTTON_FAST: + X: 55 + 45*2 + Y: 13 + Width: 38 + Height: 20 + BaseLine: 1 + TooltipText: Fast speed + TooltipContainer: TOOLTIP_CONTAINER + VisualHeight: 0 + Text: 200% + Font: TinyBold + Button@BUTTON_MAXIMUM: + X: 55 + 45*3 + Y: 13 + Width: 38 + Height: 20 + BaseLine: 1 + TooltipText: Maximum speed + TooltipContainer: TOOLTIP_CONTAINER + VisualHeight: 0 + Text: MAX + Font: TinyBold diff --git a/mods/ts/mod.yaml b/mods/ts/mod.yaml index 1e33903c38..cece39ae1b 100644 --- a/mods/ts/mod.yaml +++ b/mods/ts/mod.yaml @@ -136,7 +136,7 @@ ChromeLayout: common|chrome/ingame-infobriefing.yaml common|chrome/ingame-infoobjectives.yaml common|chrome/ingame-infostats.yaml - common|chrome/ingame-observer.yaml + ts|chrome/ingame-observer.yaml ts|chrome/ingame-observerstats.yaml ts|chrome/ingame-player.yaml common|chrome/ingame-perf.yaml