Adjust C&C replay UI.

This commit is contained in:
Paul Chote
2014-03-13 10:08:44 +13:00
committed by Matthias Mailänder
parent c21b27cddb
commit 45ad52f737
2 changed files with 71 additions and 78 deletions

View File

@@ -22,9 +22,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{ {
if (world.IsReplay) if (world.IsReplay)
{ {
var container = widget.Get<ContainerWidget>("REPLAY_PLAYER"); var container = widget.Get("REPLAY_PLAYER");
var background = widget.Parent.GetOrNull<BackgroundWidget>("OBSERVER_CONTROL_BG"); var background = widget.Parent.GetOrNull("OBSERVER_CONTROL_BG");
if (background != null) if (background != null)
background.Bounds.Height += container.Bounds.Height; background.Bounds.Height += container.Bounds.Height;

View File

@@ -86,85 +86,78 @@ Container@OBSERVER_WIDGETS:
Y:1 Y:1
Width:PARENT_RIGHT-2 Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2 Height:PARENT_BOTTOM-2
Background@OBSERVER_CONTROL_BG: Background@REPLAY_PLAYER:
Logic:ReplayControlBarLogic
X:WINDOW_RIGHT-173
Y:195
Width:168
Height:46
Background:panel-black
Visible:false
Children:
Button@BUTTON_PAUSE:
X:14
Y:10
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_PAUSE:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:pause
Button@BUTTON_SLOW:
X:14 + 38
Y:10
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_SLOW:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:slowmo
Button@BUTTON_NORMALSPEED:
X:14 + 38*2
Y:10
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_PLAY:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:play
Button@BUTTON_FASTFORWARD:
X:14 + 38*3
Y:10
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_FASTFORWARD:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:fastforward
DropDownButton@SHROUD_SELECTOR:
Logic:ObserverShroudSelectorLogic
X:WINDOW_RIGHT-173 X:WINDOW_RIGHT-173
Y:172 Y:172
Width:168 Width:168
Height:35 Height:25
Background:panel-black Font:Bold
Children:
DropDownButton@SHROUD_SELECTOR:
Logic:ObserverShroudSelectorLogic
X:5
Y:5
Width:158
Height:25
Font:Bold
Visible:true
Container@REPLAY_PLAYER:
Logic:ReplayControlBarLogic
X:PARENT_RIGHT/2 - 70
Y:30
Width:160
Height:35
Visible:false
Children:
Button@BUTTON_PAUSE:
X:5
Y:5
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_PAUSE:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:pause
Button@BUTTON_SLOW:
X:40
Y:5
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_SLOW:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:slowmo
Button@BUTTON_NORMALSPEED:
X:75
Y:5
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_PLAY:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:play
Button@BUTTON_FASTFORWARD:
X:110
Y:5
Width:26
Height:26
IgnoreChildMouseOver:true
Children:
Image@IMAGE_FASTFORWARD:
X:5
Y:5
Width:16
Height:16
ImageCollection:music
ImageName:fastforward
Container@PLAYER_WIDGETS: Container@PLAYER_WIDGETS:
Children: Children: