Add music player to lobby.

This commit is contained in:
Paul Chote
2015-10-04 17:29:13 +01:00
parent 72ea009042
commit 73adfe0bfc
15 changed files with 725 additions and 390 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
readonly Ruleset modRules; readonly Ruleset modRules;
readonly World shellmapWorld; readonly World shellmapWorld;
enum PanelType { Players, Options, Kick, ForceStart } enum PanelType { Players, Options, Music, Kick, ForceStart }
PanelType panel = PanelType.Players; PanelType panel = PanelType.Players;
readonly Widget lobby; readonly Widget lobby;
@@ -276,10 +276,27 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var optionsBin = Ui.LoadWidget("LOBBY_OPTIONS_BIN", lobby.Get("TOP_PANELS_ROOT"), new WidgetArgs()); var optionsBin = Ui.LoadWidget("LOBBY_OPTIONS_BIN", lobby.Get("TOP_PANELS_ROOT"), new WidgetArgs());
optionsBin.IsVisible = () => panel == PanelType.Options; optionsBin.IsVisible = () => panel == PanelType.Options;
var optionsButton = lobby.Get<ButtonWidget>("OPTIONS_BUTTON"); var musicBin = Ui.LoadWidget("LOBBY_MUSIC_BIN", lobby.Get("TOP_PANELS_ROOT"), new WidgetArgs
optionsButton.IsDisabled = () => Map.RuleStatus != MapRuleStatus.Cached || panel == PanelType.Kick || panel == PanelType.ForceStart; {
optionsButton.GetText = () => panel == PanelType.Options ? "Players" : "Options"; { "onExit", DoNothing },
optionsButton.OnClick = () => panel = (panel == PanelType.Options) ? PanelType.Players : PanelType.Options; { "world", worldRenderer.World }
});
musicBin.IsVisible = () => panel == PanelType.Music;
var optionsTab = lobby.Get<ButtonWidget>("OPTIONS_TAB");
optionsTab.IsHighlighted = () => panel == PanelType.Options;
optionsTab.IsDisabled = () => Map.RuleStatus != MapRuleStatus.Cached || panel == PanelType.Kick || panel == PanelType.ForceStart;
optionsTab.OnClick = () => panel = PanelType.Options;
var playersTab = lobby.Get<ButtonWidget>("PLAYERS_TAB");
playersTab.IsHighlighted = () => panel == PanelType.Players;
playersTab.IsDisabled = () => panel == PanelType.Kick || panel == PanelType.ForceStart;
playersTab.OnClick = () => panel = PanelType.Players;
var musicTab = lobby.GetOrNull<ButtonWidget>("MUSIC_TAB");
musicTab.IsHighlighted = () => panel == PanelType.Music;
musicTab.IsDisabled = () => panel == PanelType.Kick || panel == PanelType.ForceStart;
musicTab.OnClick = () => panel = PanelType.Music;
// Force start panel // Force start panel
Action startGame = () => Action startGame = () =>
@@ -584,14 +601,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
chatTemplate = chatPanel.Get("CHAT_TEMPLATE"); chatTemplate = chatPanel.Get("CHAT_TEMPLATE");
chatPanel.RemoveChildren(); chatPanel.RemoveChildren();
var musicButton = lobby.GetOrNull<ButtonWidget>("MUSIC_BUTTON");
if (musicButton != null)
musicButton.OnClick = () => Ui.OpenWindow("MUSIC_PANEL", new WidgetArgs
{
{ "onExit", DoNothing },
{ "world", worldRenderer.World }
});
var settingsButton = lobby.GetOrNull<ButtonWidget>("SETTINGS_BUTTON"); var settingsButton = lobby.GetOrNull<ButtonWidget>("SETTINGS_BUTTON");
if (settingsButton != null) if (settingsButton != null)
{ {

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
[ObjectCreator.UseCtor] [ObjectCreator.UseCtor]
public MusicPlayerLogic(Widget widget, Ruleset modRules, World world, Action onExit) public MusicPlayerLogic(Widget widget, Ruleset modRules, World world, Action onExit)
{ {
var panel = widget.Get("MUSIC_PANEL"); var panel = widget;
musicList = panel.Get<ScrollPanelWidget>("MUSIC_LIST"); musicList = panel.Get<ScrollPanelWidget>("MUSIC_LIST");
itemTemplate = musicList.Get<ScrollItemWidget>("MUSIC_TEMPLATE"); itemTemplate = musicList.Get<ScrollItemWidget>("MUSIC_TEMPLATE");
@@ -83,6 +83,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
return "{0:D2}:{1:D2} / {2:D2}:{3:D2}".F(minutes, seconds, totalMinutes, totalSeconds); return "{0:D2}:{1:D2} / {2:D2}:{3:D2}".F(minutes, seconds, totalMinutes, totalSeconds);
}; };
var musicTitle = panel.GetOrNull<LabelWidget>("TITLE_LABEL");
if (musicTitle != null)
musicTitle.GetText = () => currentSong != null ? currentSong.Title : "No song playing";
var musicSlider = panel.Get<SliderWidget>("MUSIC_SLIDER"); var musicSlider = panel.Get<SliderWidget>("MUSIC_SLIDER");
musicSlider.OnChange += x => Game.Sound.MusicVolume = x; musicSlider.OnChange += x => Game.Sound.MusicVolume = x;
musicSlider.Value = Game.Sound.MusicVolume; musicSlider.Value = Game.Sound.MusicVolume;
@@ -114,7 +118,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
}; };
} }
panel.Get<ButtonWidget>("BACK_BUTTON").OnClick = () => { Game.Settings.Save(); Ui.CloseWindow(); onExit(); }; var backButton = panel.GetOrNull<ButtonWidget>("BACK_BUTTON");
if (backButton != null)
backButton.OnClick = () => { Game.Settings.Save(); Ui.CloseWindow(); onExit(); };
} }
public void BuildMusicTable() public void BuildMusicTable()

View File

@@ -9,7 +9,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 194 Height: 174
Background: panel-gray Background: panel-gray
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -19,19 +19,19 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 197 Y: 172
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_TYPE: Label@MAP_TYPE:
Y: 212 Y: 187
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: TinyBold Font: TinyBold
Align: Center Align: Center
Label@MAP_AUTHOR: Label@MAP_AUTHOR:
Y: 225 Y: 200
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
@@ -42,7 +42,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 194 Height: 174
Background: panel-gray Background: panel-gray
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -52,20 +52,20 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 197 Y: 172
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_STATUS_A: Label@MAP_STATUS_A:
Y: 212 Y: 187
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: This map is not compatible Text: This map is not compatible
Label@MAP_STATUS_B: Label@MAP_STATUS_B:
Y: 225 Y: 200
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
@@ -77,7 +77,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 164 Height: 142
Background: panel-gray Background: panel-gray
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -87,25 +87,25 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 167 Y: 142
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_TYPE: Label@MAP_TYPE:
Y: 184 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: TinyBold Font: TinyBold
Align: Center Align: Center
Label@MAP_AUTHOR: Label@MAP_AUTHOR:
Y: 197 Y: 170
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Button@MAP_INSTALL: Button@MAP_INSTALL:
Y: 224 Y: 194
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Text: Install Map Text: Install Map
@@ -115,7 +115,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 164 Height: 142
Background: panel-gray Background: panel-gray
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -125,13 +125,13 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 167 Y: 142
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_STATUS_SEARCHING: Label@MAP_STATUS_SEARCHING:
Y: 197 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
@@ -141,39 +141,39 @@ Container@LOBBY_MAP_PREVIEW:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Children: Children:
Label@a: Label@a:
Y: 184 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: This map was not found on the Text: This map was not found on the
Label@b: Label@b:
Y: 197 Y: 170
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: OpenRA Resource Center Text: OpenRA Resource Center
Label@MAP_STATUS_ERROR: Label@MAP_STATUS_ERROR:
Y: 197 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: An error occurred during installation Text: An error occurred during installation
Label@MAP_STATUS_DOWNLOADING: Label@MAP_STATUS_DOWNLOADING:
Y: 197 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
ProgressBar@MAP_PROGRESSBAR: ProgressBar@MAP_PROGRESSBAR:
Y: 224 Y: 194
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Indeterminate: True Indeterminate: True
Button@MAP_RETRY: Button@MAP_RETRY:
Y: 224 Y: 194
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25

View File

@@ -0,0 +1,184 @@
Container@LOBBY_MUSIC_BIN:
Logic: MusicPlayerLogic
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
LogicTicker@SONG_WATCHER:
Container@LABEL_CONTAINER:
Y: 0-25
Width: PARENT_RIGHT
Children:
Label@MUSIC:
Width: 308
Height: 25
Text: Music
Align: Center
Font: Bold
Label@TITLE:
X: 317
Width: 230
Height: 25
Text: Track
Font: Bold
Label@TYPE:
X: PARENT_RIGHT-63
Height: 25
Width: 50
Text: Length
Font: Bold
Background@CONTROLS:
Background: panel-transparent
Width: 308
Height: PARENT_BOTTOM
Children:
Label@TITLE_LABEL:
Y: 45
Width: PARENT_RIGHT
Height: 25
Align: Center
Font: Bold
Label@TIME_LABEL:
Y: 65
Width: PARENT_RIGHT
Height: 25
Align: Center
Container@BUTTONS:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 100
Width: 131
Children:
Button@BUTTON_PREV:
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_PREV:
X: 5
Y: 5
Width: 16
Height: 16
ImageCollection: music
ImageName: prev
Button@BUTTON_PLAY:
X: 35
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_PLAY:
X: 5
Y: 5
Width: 16
Height: 16
ImageCollection: music
ImageName: play
Button@BUTTON_PAUSE:
Visible: false
X: 35
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_PAUSE:
X: 5
Y: 5
Width: 16
Height: 16
ImageCollection: music
ImageName: pause
Button@BUTTON_STOP:
X: 70
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_STOP:
X: 5
Y: 5
Width: 16
Height: 16
ImageCollection: music
ImageName: stop
Button@BUTTON_NEXT:
X: 105
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_NEXT:
X: 5
Y: 5
Width: 16
Height: 16
ImageCollection: music
ImageName: next
Checkbox@SHUFFLE:
X: 25
Y: 150
Width: 85
Height: 20
Font: Regular
Text: Shuffle
Checkbox@REPEAT:
X: PARENT_RIGHT-15-WIDTH
Y: 150
Width: 70
Height: 20
Font: Regular
Text: Loop
Label@VOLUME_LABEL:
Y: 180
Width: 65
Height: 25
Align: Right
Text: Volume:
Slider@MUSIC_SLIDER:
X: 70
Y: 186
Width: PARENT_RIGHT - 80
Height: 20
Ticks: 5
ScrollPanel@MUSIC_LIST:
X: 307
Width: PARENT_RIGHT-307
Height: PARENT_BOTTOM
Children:
ScrollItem@MUSIC_TEMPLATE:
Width: PARENT_RIGHT-27
Height: 25
X: 2
Visible: false
Children:
Label@TITLE:
X: 10
Width: PARENT_RIGHT-50
Height: 25
Label@LENGTH:
X: PARENT_RIGHT-60
Width: 50
Height: 25
Align: Right
Container@NO_MUSIC_LABEL:
X: 307
Width: PARENT_RIGHT-307
Visible: false
Children:
Label@TITLE:
Y: 75
Width: PARENT_RIGHT-24
Height: 25
Font: Bold
Align: Center
Text: No Music Available
Label@DESCA:
Y: 95
Width: PARENT_RIGHT-24
Height: 25
Align: Center
Text: Music can be installed from the
Label@DESCA:
Y: 115
Width: PARENT_RIGHT-24
Height: 25
Align: Center
Text: game Extras menu.

View File

@@ -15,35 +15,35 @@ Container@LOBBY_PLAYER_BIN:
Align: Center Align: Center
Font: Bold Font: Bold
Label@COLOR: Label@COLOR:
Width: 70
Height: 25
X: 210 X: 210
Width: 76
Height: 25
Text: Color Text: Color
Align: Center Align: Center
Font: Bold Font: Bold
Label@FACTION: Label@FACTION:
Width: 100 X: 291
Width: 120
Height: 25 Height: 25
X: 285
Text: Faction Text: Faction
Align: Center Align: Center
Font: Bold Font: Bold
Label@TEAM: Label@TEAM:
X: 416
Width: 50 Width: 50
Height: 25 Height: 25
X: 390
Text: Team Text: Team
Align: Center Align: Center
Font: Bold Font: Bold
Label@SPAWN: Label@SPAWN:
X: 445 X: 471
Width: 50 Width: 50
Height: 25 Height: 25
Text: Spawn Text: Spawn
Align: Left Align: Left
Font: Bold Font: Bold
Label@STATUS: Label@STATUS:
X: 501 X: 527
Width: 20 Width: 20
Height: 25 Height: 25
Text: Ready Text: Ready
@@ -57,7 +57,6 @@ Container@LOBBY_PLAYER_BIN:
Children: Children:
Container@TEMPLATE_EDITABLE_PLAYER: Container@TEMPLATE_EDITABLE_PLAYER:
X: 5 X: 5
Y: 0
Width: 530 Width: 530
Height: 25 Height: 25
Visible: false Visible: false
@@ -68,11 +67,10 @@ Container@LOBBY_PLAYER_BIN:
X: 2 X: 2
Visible: false Visible: false
Background@LATENCY: Background@LATENCY:
Background: button
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
Background: button
Visible: false Visible: false
Children: Children:
ColorBlock@LATENCY_COLOR: ColorBlock@LATENCY_COLOR:
@@ -81,28 +79,28 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
TextField@NAME: TextField@NAME:
Text: Name
X: 15 X: 15
Width: 190 Width: 190
Height: 25 Height: 25
Text: Name
MaxLength: 16 MaxLength: 16
Visible: false Visible: false
DropDownButton@SLOT_OPTIONS: DropDownButton@SLOT_OPTIONS:
Text: Name
X: 15 X: 15
Width: 190 Width: 190
Height: 25 Height: 25
Text: Name
Font: Regular Font: Regular
Visible: false Visible: false
DropDownButton@COLOR: DropDownButton@COLOR:
Width: 70
Height: 25
X: 210 X: 210
Width: 76
Height: 25
Font: Regular Font: Regular
IgnoreChildMouseOver: true IgnoreChildMouseOver: true
Children: Children:
@@ -112,9 +110,9 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-35 Width: PARENT_RIGHT-35
Height: PARENT_BOTTOM-12 Height: PARENT_BOTTOM-12
DropDownButton@FACTION: DropDownButton@FACTION:
Width: 100 X: 291
Width: 120
Height: 25 Height: 25
X: 285
Font: Regular Font: Regular
IgnoreChildMouseOver: true IgnoreChildMouseOver: true
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
@@ -122,58 +120,55 @@ Container@LOBBY_PLAYER_BIN:
PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel
Children: Children:
Image@FACTIONFLAG: Image@FACTIONFLAG:
Width: 32
Height: 16
X: 4 X: 4
Y: 4 Y: 4
Width: 32
Height: 16
Label@FACTIONNAME: Label@FACTIONNAME:
Text: Faction X: 40
Width: 60 Width: 60
Height: 25 Height: 25
X: 40 Text: Faction
Y: 0
DropDownButton@TEAM: DropDownButton@TEAM:
X: 416
Width: 50 Width: 50
Height: 25 Height: 25
X: 390
Font: Regular Font: Regular
DropDownButton@SPAWN: DropDownButton@SPAWN:
X: 445 X: 471
Width: 50 Width: 50
Height: 25 Height: 25
Font: Regular Font: Regular
Image@STATUS_IMAGE: Image@STATUS_IMAGE:
Visible: false X: 521
X: 495
Y: 4 Y: 4
Width: 20 Width: 20
Height: 20 Height: 20
ImageCollection: checkbox-bits ImageCollection: checkbox-bits
ImageName: checked ImageName: checked
Checkbox@STATUS_CHECKBOX:
Visible: false Visible: false
X: 501 Checkbox@STATUS_CHECKBOX:
X: 527
Y: 2 Y: 2
Width: 20 Width: 20
Height: 20 Height: 20
Visible: false
Container@TEMPLATE_NONEDITABLE_PLAYER: Container@TEMPLATE_NONEDITABLE_PLAYER:
X: 5 X: 5
Y: 0
Width: 530 Width: 530
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Background@LATENCY: Background@LATENCY:
Background: button
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
Background: button
Visible: false Visible: false
Children: Children:
ColorBlock@LATENCY_COLOR: ColorBlock@LATENCY_COLOR:
@@ -182,19 +177,19 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Label@NAME: Label@NAME:
X: 20 X: 20
Y: 0-1 Y: 0-1
Width: 180 Width: 180
Height: 25 Height: 25
Button@KICK: Button@KICK:
X: 180
Width: 25 Width: 25
Height: 25 Height: 25
X: 180
Children: Children:
Image: Image:
ImageCollection: lobby-bits ImageCollection: lobby-bits
@@ -204,57 +199,52 @@ Container@LOBBY_PLAYER_BIN:
ColorBlock@COLORBLOCK: ColorBlock@COLORBLOCK:
X: 215 X: 215
Y: 6 Y: 6
Width: 35 Width: 41
Height: 13 Height: 13
Container@FACTION: Container@FACTION:
Width: 100 X: 291
Width: 120
Height: 25 Height: 25
X: 285
Y: 0
Children: Children:
Image@FACTIONFLAG: Image@FACTIONFLAG:
Width: 30
Height: 15
X: 5 X: 5
Y: 5 Y: 5
Width: 30
Height: 15
Label@FACTIONNAME: Label@FACTIONNAME:
Text: Faction X: 40
Width: 60 Width: 60
Height: 25 Height: 25
X: 40 Text: Faction
Y: 0
Label@TEAM: Label@TEAM:
Align: Center X: 416
Width: 25 Width: 25
Height: 25 Height: 25
X: 390 Align: Center
Y: 0
Label@SPAWN: Label@SPAWN:
Align: Center X: 471
Width: 25 Width: 25
Height: 25 Height: 25
X: 445 Align: Center
Y: 0
Image@STATUS_IMAGE: Image@STATUS_IMAGE:
Visible: false X: 527
X: 501
Y: 4 Y: 4
Width: 20 Width: 20
Height: 20 Height: 20
ImageCollection: checkbox-bits ImageCollection: checkbox-bits
ImageName: checked ImageName: checked
Visible: false
Container@TEMPLATE_EMPTY: Container@TEMPLATE_EMPTY:
X: 5 X: 5
Y: 0
Width: 530 Width: 530
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
DropDownButton@SLOT_OPTIONS: DropDownButton@SLOT_OPTIONS:
Text: Name
X: 15 X: 15
Width: 190 Width: 190
Height: 25 Height: 25
Text: Name
Font: Regular Font: Regular
Visible: false Visible: false
Label@NAME: Label@NAME:
@@ -264,30 +254,27 @@ Container@LOBBY_PLAYER_BIN:
Height: 25 Height: 25
Visible: false Visible: false
Button@JOIN: Button@JOIN:
X: 210
Width: 338
Height: 25
Text: Play in this slot Text: Play in this slot
Font: Regular Font: Regular
Width: 312
Height: 25
X: 210
Y: 0
Container@TEMPLATE_EDITABLE_SPECTATOR: Container@TEMPLATE_EDITABLE_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 530 Width: 530
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Background@LATENCY: Background@LATENCY:
Background: button
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
Background: button
Visible: false Visible: false
Children: Children:
ColorBlock@LATENCY_COLOR: ColorBlock@LATENCY_COLOR:
@@ -296,42 +283,39 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
TextField@NAME: TextField@NAME:
Text: Name
X: 15 X: 15
Width: 190 Width: 190
Height: 25 Height: 25
Text: Name
MaxLength: 16 MaxLength: 16
Label@SPECTATOR: Label@SPECTATOR:
Text: Spectator
Width: 315
Height: 25
X: 210 X: 210
Y: 0 Width: 341
Height: 25
Text: Spectator
Align: Center Align: Center
Font: Bold Font: Bold
Container@TEMPLATE_NONEDITABLE_SPECTATOR: Container@TEMPLATE_NONEDITABLE_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 530 Width: 530
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Background@LATENCY: Background@LATENCY:
Background: button
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
Background: button
Visible: false Visible: false
Children: Children:
ColorBlock@LATENCY_COLOR: ColorBlock@LATENCY_COLOR:
@@ -340,48 +324,44 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Label@NAME: Label@NAME:
X: 20 X: 20
Y: 0-1 Y: 0-1
Width: 180 Width: 180
Height: 25 Height: 25
Button@KICK: Button@KICK:
Text: X
Width: 25
Height: 23
X: 180 X: 180
Y: 2 Y: 2
Width: 25
Height: 23
Text: X
Font: Bold Font: Bold
Label@SPECTATOR: Label@SPECTATOR:
Text: Spectator
Width: 315
Height: 25
X: 210 X: 210
Y: 0 Width: 341
Height: 25
Text: Spectator
Align: Center Align: Center
Font: Bold Font: Bold
Container@TEMPLATE_NEW_SPECTATOR: Container@TEMPLATE_NEW_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 529 Width: 529
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Checkbox@TOGGLE_SPECTATORS: Checkbox@TOGGLE_SPECTATORS:
Font: Regular X: 15
Width: 190 Width: 190
Height: 20 Height: 20
X: 15 Font: Regular
Y: 0
Text: Allow Spectators? Text: Allow Spectators?
Button@SPECTATE: Button@SPECTATE:
X: 210
Width: 338
Height: 25
Text: Spectate Text: Spectate
Font: Regular Font: Regular
Width: 312
Height: 25
X: 210
Y: 0

View File

@@ -20,36 +20,43 @@ Container@SERVER_LOBBY:
Container@MAP_PREVIEW_ROOT: Container@MAP_PREVIEW_ROOT:
X: PARENT_RIGHT-15-WIDTH X: PARENT_RIGHT-15-WIDTH
Y: 30 Y: 30
Width: 194 Width: 174
Height: 250 Height: 250
Container@TOP_PANELS_ROOT:
X: 15
Y: 30
Width: 556
Height: 219
DropDownButton@SLOTS_DROPDOWNBUTTON: DropDownButton@SLOTS_DROPDOWNBUTTON:
X: 15 X: 15
Y: 254 Y: 254
Width: 166 Width: 162
Height: 25 Height: 25
Text: Slot Admin Text: Slot Admin
Button@OPTIONS_BUTTON: Button@PLAYERS_TAB:
X: 186 X: 182
Y: 254 Y: 248
Width: 125 Width: 135
Height: 25 Height: 31
Text: Players
Button@OPTIONS_TAB:
X: 322
Y: 248
Width: 135
Height: 31
Text: Options
Button@MUSIC_TAB:
X: 462
Y: 248
Width: 135
Height: 31
Text: Music
Button@CHANGEMAP_BUTTON: Button@CHANGEMAP_BUTTON:
X: 316 X: PARENT_RIGHT - WIDTH - 15
Y: 254 Y: 254
Width: 125 Width: 174
Height: 25 Height: 25
Text: Change Map Text: Change Map
Button@START_GAME_BUTTON: Container@TOP_PANELS_ROOT:
X: 446 X: 15
Y: 254 Y: 30
Width: 125 Width: 582
Height: 25 Height: 219
Text: Start Game
ScrollPanel@CHAT_DISPLAY: ScrollPanel@CHAT_DISPLAY:
X: 15 X: 15
Y: 285 Y: 285
@@ -104,12 +111,12 @@ Container@SERVER_LOBBY:
Width: 140 Width: 140
Height: 35 Height: 35
Text: Settings Text: Settings
Button@MUSIC_BUTTON: Button@START_GAME_BUTTON:
X: 300 X: PARENT_RIGHT - WIDTH
Y: 499 Y: 499
Width: 140 Width: 140
Height: 35 Height: 35
Text: Music Text: Start Game
Container@FACTION_DROPDOWN_PANEL_ROOT: Container@FACTION_DROPDOWN_PANEL_ROOT:
TooltipContainer@TOOLTIP_CONTAINER: TooltipContainer@TOOLTIP_CONTAINER:

View File

@@ -98,6 +98,7 @@ ChromeLayout:
./mods/cnc/chrome/lobby-mappreview.yaml ./mods/cnc/chrome/lobby-mappreview.yaml
./mods/cnc/chrome/lobby-players.yaml ./mods/cnc/chrome/lobby-players.yaml
./mods/cnc/chrome/lobby-options.yaml ./mods/cnc/chrome/lobby-options.yaml
./mods/cnc/chrome/lobby-music.yaml
./mods/cnc/chrome/lobby-kickdialogs.yaml ./mods/cnc/chrome/lobby-kickdialogs.yaml
./mods/cnc/chrome/connection.yaml ./mods/cnc/chrome/connection.yaml
./mods/cnc/chrome/color-picker.yaml ./mods/cnc/chrome/color-picker.yaml

View File

@@ -9,7 +9,6 @@ Container@LOBBY_PLAYER_BIN:
Height: PARENT_BOTTOM Height: PARENT_BOTTOM
Children: Children:
Label@LABEL_LOBBY_NAME: Label@LABEL_LOBBY_NAME:
X: 0
Width: 180 Width: 180
Height: 25 Height: 25
Text: Name Text: Name
@@ -17,34 +16,34 @@ Container@LOBBY_PLAYER_BIN:
Font: Bold Font: Bold
Label@LABEL_LOBBY_COLOR: Label@LABEL_LOBBY_COLOR:
X: 190 X: 190
Width: 80 Width: 70
Height: 25 Height: 25
Text: Color Text: Color
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_FACTION: Label@LABEL_LOBBY_FACTION:
X: 280 X: 270
Width: 130 Width: 130
Height: 25 Height: 25
Text: Faction Text: Faction
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_TEAM: Label@LABEL_LOBBY_TEAM:
X: 420 X: 410
Width: 48 Width: 48
Height: 25 Height: 25
Text: Team Text: Team
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_SPAWN: Label@LABEL_LOBBY_SPAWN:
X: 478 X: 468
Width: 48 Width: 48
Height: 25 Height: 25
Text: Spawn Text: Spawn
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_STATUS: Label@LABEL_LOBBY_STATUS:
X: 535 X: 525
Width: 20 Width: 20
Height: 25 Height: 25
Text: Ready Text: Ready
@@ -58,18 +57,16 @@ Container@LOBBY_PLAYER_BIN:
Children: Children:
Container@TEMPLATE_EDITABLE_PLAYER: Container@TEMPLATE_EDITABLE_PLAYER:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -81,26 +78,26 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
TextField@NAME: TextField@NAME:
Text: Name
X: 15 X: 15
Width: 165 Width: 165
Height: 25 Height: 25
Text: Name
MaxLength: 16 MaxLength: 16
DropDownButton@SLOT_OPTIONS: DropDownButton@SLOT_OPTIONS:
Text: Name
X: 15 X: 15
Width: 165 Width: 165
Height: 25 Height: 25
Text: Name
Font: Regular Font: Regular
Visible: false Visible: false
DropDownButton@COLOR: DropDownButton@COLOR:
X: 190 X: 190
Width: 80 Width: 70
Height: 25 Height: 25
IgnoreChildMouseOver: true IgnoreChildMouseOver: true
Children: Children:
@@ -110,7 +107,7 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-35 Width: PARENT_RIGHT-35
Height: PARENT_BOTTOM-12 Height: PARENT_BOTTOM-12
DropDownButton@FACTION: DropDownButton@FACTION:
X: 280 X: 270
Width: 130 Width: 130
Height: 25 Height: 25
IgnoreChildMouseOver: true IgnoreChildMouseOver: true
@@ -119,34 +116,33 @@ Container@LOBBY_PLAYER_BIN:
PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel
Children: Children:
Image@FACTIONFLAG: Image@FACTIONFLAG:
Width: 23
Height: 23
X: 4 X: 4
Y: 2 Y: 2
Width: 23
Height: 23
Label@FACTIONNAME: Label@FACTIONNAME:
Text: Faction X: 34
Width: 70 Width: 70
Height: 25 Height: 25
X: 34 Text: Faction
Y: 0
DropDownButton@TEAM: DropDownButton@TEAM:
X: 420 X: 410
Width: 48 Width: 48
Height: 25 Height: 25
Text: Team Text: Team
DropDownButton@SPAWN: DropDownButton@SPAWN:
X: 478 X: 468
Width: 48 Width: 48
Height: 25 Height: 25
Text: Spawn Text: Spawn
Checkbox@STATUS_CHECKBOX: Checkbox@STATUS_CHECKBOX:
X: 535 X: 525
Y: 2 Y: 2
Width: 20 Width: 20
Height: 20 Height: 20
Visible: false Visible: false
Image@STATUS_IMAGE: Image@STATUS_IMAGE:
X: 537 X: 527
Y: 4 Y: 4
Width: 20 Width: 20
Height: 20 Height: 20
@@ -155,18 +151,16 @@ Container@LOBBY_PLAYER_BIN:
Visible: false Visible: false
Container@TEMPLATE_NONEDITABLE_PLAYER: Container@TEMPLATE_NONEDITABLE_PLAYER:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -178,105 +172,97 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Label@NAME: Label@NAME:
Text: Name
Width: 165
Height: 25
X: 20 X: 20
Y: 0-1 Y: 0-1
Width: 165
Height: 25
Text: Name
Button@KICK: Button@KICK:
Text: X
Width: 25
Height: 23
X: 155 X: 155
Y: 2 Y: 2
Width: 25
Height: 23
Text: X
Font: Bold Font: Bold
ColorBlock@COLORBLOCK: ColorBlock@COLORBLOCK:
X: 195 X: 195
Y: 6 Y: 6
Width: 45 Width: 35
Height: 13 Height: 13
Container@FACTION: Container@FACTION:
X: 270
Width: 160 Width: 160
Height: 25 Height: 25
X: 280
Y: 0
Children: Children:
Image@FACTIONFLAG: Image@FACTIONFLAG:
Width: 23
Height: 23
X: 4 X: 4
Y: 2 Y: 2
Width: 23
Height: 23
Label@FACTIONNAME: Label@FACTIONNAME:
Text: Faction X: 34
Width: 60 Width: 60
Height: 25 Height: 25
X: 34 Text: Faction
Y: 0
Label@TEAM: Label@TEAM:
X: 410
Width: 23
Height: 25
Align: Center
Text: Team Text: Team
Width: 23
Height: 25
Align: Center
X: 420
Y: 0
Label@SPAWN: Label@SPAWN:
Align: Center X: 468
X: 478
Width: 23 Width: 23
Height: 25 Height: 25
Align: Center
Image@STATUS_IMAGE: Image@STATUS_IMAGE:
Visible: false X: 527
X: 537
Y: 4 Y: 4
Width: 20 Width: 20
Height: 20 Height: 20
ImageCollection: checkbox-bits ImageCollection: checkbox-bits
ImageName: checked ImageName: checked
Visible: false
Container@TEMPLATE_EMPTY: Container@TEMPLATE_EMPTY:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Label@NAME: Label@NAME:
Text: Name
Width: 165
Height: 25
X: 20 X: 20
Y: 0-1 Y: 0-1
DropDownButton@SLOT_OPTIONS:
Text: Name
Width: 165 Width: 165
Height: 25 Height: 25
Text: Name
DropDownButton@SLOT_OPTIONS:
X: 15 X: 15
Y: 0 Width: 165
Height: 25
Text: Name
Visible: false Visible: false
Button@JOIN: Button@JOIN:
Text: Play in this slot
Width: 336
Height: 25
X: 190 X: 190
Y: 0 Width: 326
Height: 25
Text: Play in this slot
Container@TEMPLATE_EDITABLE_SPECTATOR: Container@TEMPLATE_EDITABLE_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -288,38 +274,35 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
TextField@NAME: TextField@NAME:
Text: Name
X: 15 X: 15
Width: 165 Width: 165
Height: 25 Height: 25
Text: Name
MaxLength: 16 MaxLength: 16
Label@SPECTATOR: Label@SPECTATOR:
Text: Spectator
Width: 336
Height: 25
X: 190 X: 190
Y: 0 Width: 326
Height: 25
Text: Spectator
Align: Center Align: Center
Font: Bold Font: Bold
Container@TEMPLATE_NONEDITABLE_SPECTATOR: Container@TEMPLATE_NONEDITABLE_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -331,52 +314,48 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Label@NAME: Label@NAME:
Text: Name
Width: 160
Height: 25
X: 20 X: 20
Y: 0-1 Y: 0-1
Width: 160
Height: 25
Text: Name
Button@KICK: Button@KICK:
Text: X
Width: 25
Height: 23
X: 155 X: 155
Y: 2 Y: 2
Width: 25
Height: 23
Text: X
Font: Bold Font: Bold
Label@SPECTATOR: Label@SPECTATOR:
Text: Spectator
Width: 336
Height: 25
X: 190 X: 190
Y: 0 Width: 326
Height: 25
Text: Spectator
Align: Center Align: Center
Font: Bold Font: Bold
Container@TEMPLATE_NEW_SPECTATOR: Container@TEMPLATE_NEW_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Checkbox@TOGGLE_SPECTATORS: Checkbox@TOGGLE_SPECTATORS:
Font: Regular X: 15
Width: 165 Width: 165
Height: 20 Height: 20
X: 15
Y: 0
Text: Allow Spectators? Text: Allow Spectators?
Font: Regular
Button@SPECTATE: Button@SPECTATE:
X: 190
Width: 326
Height: 25
Text: Spectate Text: Spectate
Font: Regular Font: Regular
Width: 336
Height: 25
X: 190
Y: 0
ScrollPanel@FACTION_DROPDOWN_TEMPLATE: ScrollPanel@FACTION_DROPDOWN_TEMPLATE:
Width: DROPDOWN_WIDTH Width: DROPDOWN_WIDTH

View File

@@ -88,6 +88,7 @@ ChromeLayout:
./mods/ra/chrome/lobby-mappreview.yaml ./mods/ra/chrome/lobby-mappreview.yaml
./mods/d2k/chrome/lobby-players.yaml ./mods/d2k/chrome/lobby-players.yaml
./mods/d2k/chrome/lobby-options.yaml ./mods/d2k/chrome/lobby-options.yaml
./mods/ra/chrome/lobby-music.yaml
./mods/ra/chrome/lobby-kickdialogs.yaml ./mods/ra/chrome/lobby-kickdialogs.yaml
./mods/d2k/chrome/color-picker.yaml ./mods/d2k/chrome/color-picker.yaml
./mods/ra/chrome/map-chooser.yaml ./mods/ra/chrome/map-chooser.yaml

View File

@@ -9,7 +9,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 214 Height: 174
Background: dialog3 Background: dialog3
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -19,19 +19,19 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 215 Y: 172
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_TYPE: Label@MAP_TYPE:
Y: 232 Y: 187
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: TinyBold Font: TinyBold
Align: Center Align: Center
Label@MAP_AUTHOR: Label@MAP_AUTHOR:
Y: 245 Y: 200
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
@@ -42,7 +42,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 214 Height: 174
Background: dialog3 Background: dialog3
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -52,20 +52,20 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 215 Y: 172
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_STATUS_A: Label@MAP_STATUS_A:
Y:232 Y: 187
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: This map is not compatible Text: This map is not compatible
Label@MAP_STATUS_B: Label@MAP_STATUS_B:
Y:245 Y: 200
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
@@ -77,7 +77,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 182 Height: 142
Background: dialog3 Background: dialog3
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -87,25 +87,25 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 185 Y: 142
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_TYPE: Label@MAP_TYPE:
Y: 202 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: TinyBold Font: TinyBold
Align: Center Align: Center
Label@MAP_AUTHOR: Label@MAP_AUTHOR:
Y: 215 Y: 170
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Button@MAP_INSTALL: Button@MAP_INSTALL:
Y: 242 Y: 194
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
@@ -116,7 +116,7 @@ Container@LOBBY_MAP_PREVIEW:
Children: Children:
Background@MAP_BG: Background@MAP_BG:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 182 Height: 142
Background: dialog3 Background: dialog3
Children: Children:
MapPreview@MAP_PREVIEW: MapPreview@MAP_PREVIEW:
@@ -126,13 +126,13 @@ Container@LOBBY_MAP_PREVIEW:
Height: PARENT_BOTTOM-2 Height: PARENT_BOTTOM-2
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
Label@MAP_TITLE: Label@MAP_TITLE:
Y: 185 Y: 142
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold
Align: Center Align: Center
Label@MAP_STATUS_SEARCHING: Label@MAP_STATUS_SEARCHING:
Y: 215 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
@@ -142,40 +142,39 @@ Container@LOBBY_MAP_PREVIEW:
Width: PARENT_RIGHT Width: PARENT_RIGHT
Children: Children:
Label@a: Label@a:
Y: 202 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: This map was not found on the Text: This map was not found on the
Label@b: Label@b:
Y: 215 Y: 170
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: OpenRA Resource Center Text: OpenRA Resource Center
Label@MAP_STATUS_ERROR: Label@MAP_STATUS_ERROR:
Y: 215 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
Text: An error occurred during installation Text: An error occurred during installation
Label@MAP_STATUS_DOWNLOADING: Label@MAP_STATUS_DOWNLOADING:
Y: 215 Y: 157
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Tiny Font: Tiny
Align: Center Align: Center
ProgressBar@MAP_PROGRESSBAR: ProgressBar@MAP_PROGRESSBAR:
Y: 242 Y: 194
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Indeterminate: True Indeterminate: True
Button@MAP_RETRY: Button@MAP_RETRY:
Y: 242 Y: 194
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Font: Bold Font: Bold

View File

@@ -0,0 +1,174 @@
Container@LOBBY_MUSIC_BIN:
Logic: MusicPlayerLogic
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
LogicTicker@SONG_WATCHER:
Container@LABEL_CONTAINER:
Y: 0-25
Width: PARENT_RIGHT
Children:
Label@MUSIC:
Width: 268
Height: 25
Text: Music
Align: Center
Font: Bold
Label@TITLE:
X: 278
Width: 230
Height: 25
Text: Track
Font: Bold
Label@TYPE:
X: PARENT_RIGHT-63
Height: 25
Width: 50
Text: Length
Font: Bold
Background@CONTROLS:
Background: dialog3
Width: 268
Height: PARENT_BOTTOM
Children:
Label@TITLE_LABEL:
Y: 45
Width: PARENT_RIGHT
Height: 25
Align: Center
Font: Bold
Label@TIME_LABEL:
Y: 65
Width: PARENT_RIGHT
Height: 25
Align: Center
Container@BUTTONS:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 100
Width: 131
Children:
Button@BUTTON_PREV:
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_PREV:
Width: 25
Height: 25
ImageCollection: music
ImageName: prev
Button@BUTTON_PLAY:
X: 35
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_PLAY:
Width: 25
Height: 25
ImageCollection: music
ImageName: play
Button@BUTTON_PAUSE:
Visible: false
X: 35
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_PAUSE:
Width: 25
Height: 25
ImageCollection: music
ImageName: pause
Button@BUTTON_STOP:
X: 70
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_STOP:
Width: 25
Height: 25
ImageCollection: music
ImageName: stop
Button@BUTTON_NEXT:
X: 105
Width: 26
Height: 26
IgnoreChildMouseOver: true
Children:
Image@IMAGE_NEXT:
Width: 25
Height: 25
ImageCollection: music
ImageName: next
Checkbox@SHUFFLE:
X: 25
Y: 150
Width: 85
Height: 20
Font: Regular
Text: Shuffle
Checkbox@REPEAT:
X: PARENT_RIGHT-15-WIDTH
Y: 150
Width: 70
Height: 20
Font: Regular
Text: Loop
Label@VOLUME_LABEL:
Y: 180
Width: 65
Height: 25
Align: Right
Text: Volume:
Slider@MUSIC_SLIDER:
X: 70
Y: 186
Width: PARENT_RIGHT - 80
Height: 20
Ticks: 5
ScrollPanel@MUSIC_LIST:
X: 268
Width: PARENT_RIGHT-268
Height: PARENT_BOTTOM
Children:
ScrollItem@MUSIC_TEMPLATE:
Width: PARENT_RIGHT-27
Height: 25
X: 2
Visible: false
Children:
Label@TITLE:
X: 10
Width: PARENT_RIGHT-50
Height: 25
Label@LENGTH:
X: PARENT_RIGHT-60
Width: 50
Height: 25
Align: Right
Container@NO_MUSIC_LABEL:
X: 268
Width: PARENT_RIGHT-268
Visible: false
Children:
Label@TITLE:
Y: 75
Width: PARENT_RIGHT-24
Height: 25
Font: Bold
Align: Center
Text: No Music Available
Label@DESCA:
Y: 95
Width: PARENT_RIGHT-24
Height: 25
Align: Center
Text: Music can be installed from the
Label@DESCA:
Y: 115
Width: PARENT_RIGHT-24
Height: 25
Align: Center
Text: game Extras menu.

View File

@@ -9,7 +9,6 @@ Container@LOBBY_PLAYER_BIN:
Height: PARENT_BOTTOM Height: PARENT_BOTTOM
Children: Children:
Label@LABEL_LOBBY_NAME: Label@LABEL_LOBBY_NAME:
X: 0
Width: 180 Width: 180
Height: 25 Height: 25
Text: Name Text: Name
@@ -17,34 +16,34 @@ Container@LOBBY_PLAYER_BIN:
Font: Bold Font: Bold
Label@LABEL_LOBBY_COLOR: Label@LABEL_LOBBY_COLOR:
X: 190 X: 190
Width: 80 Width: 70
Height: 25 Height: 25
Text: Color Text: Color
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_FACTION: Label@LABEL_LOBBY_FACTION:
X: 280 X: 270
Width: 130 Width: 130
Height: 25 Height: 25
Text: Faction Text: Faction
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_TEAM: Label@LABEL_LOBBY_TEAM:
X: 420 X: 410
Width: 48 Width: 48
Height: 25 Height: 25
Text: Team Text: Team
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_SPAWN: Label@LABEL_LOBBY_SPAWN:
X: 478 X: 468
Width: 48 Width: 48
Height: 25 Height: 25
Text: Spawn Text: Spawn
Align: Center Align: Center
Font: Bold Font: Bold
Label@LABEL_LOBBY_STATUS: Label@LABEL_LOBBY_STATUS:
X: 535 X: 525
Width: 20 Width: 20
Height: 25 Height: 25
Text: Ready Text: Ready
@@ -58,18 +57,16 @@ Container@LOBBY_PLAYER_BIN:
Children: Children:
Container@TEMPLATE_EDITABLE_PLAYER: Container@TEMPLATE_EDITABLE_PLAYER:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -81,26 +78,26 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
TextField@NAME: TextField@NAME:
Text: Name
X: 15 X: 15
Width: 165 Width: 165
Height: 25 Height: 25
Text: Name
MaxLength: 16 MaxLength: 16
DropDownButton@SLOT_OPTIONS: DropDownButton@SLOT_OPTIONS:
Text: Name
X: 15 X: 15
Width: 165 Width: 165
Height: 25 Height: 25
Text: Name
Font: Regular Font: Regular
Visible: false Visible: false
DropDownButton@COLOR: DropDownButton@COLOR:
X: 190 X: 190
Width: 80 Width: 70
Height: 25 Height: 25
IgnoreChildMouseOver: true IgnoreChildMouseOver: true
Children: Children:
@@ -110,7 +107,7 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-35 Width: PARENT_RIGHT-35
Height: PARENT_BOTTOM-12 Height: PARENT_BOTTOM-12
DropDownButton@FACTION: DropDownButton@FACTION:
X: 280 X: 270
Width: 130 Width: 130
Height: 25 Height: 25
IgnoreChildMouseOver: true IgnoreChildMouseOver: true
@@ -119,34 +116,33 @@ Container@LOBBY_PLAYER_BIN:
PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel
Children: Children:
Image@FACTIONFLAG: Image@FACTIONFLAG:
Width: 30
Height: 15
X: 5 X: 5
Y: 5 Y: 5
Width: 30
Height: 15
Label@FACTIONNAME: Label@FACTIONNAME:
Text: Faction X: 40
Width: 60 Width: 60
Height: 25 Height: 25
X: 40 Text: Faction
Y: 0
DropDownButton@TEAM: DropDownButton@TEAM:
X: 420 X: 410
Width: 48 Width: 48
Height: 25 Height: 25
Text: Team Text: Team
DropDownButton@SPAWN: DropDownButton@SPAWN:
X: 478 X: 468
Width: 48 Width: 48
Height: 25 Height: 25
Text: Spawn Text: Spawn
Checkbox@STATUS_CHECKBOX: Checkbox@STATUS_CHECKBOX:
X: 535 X: 525
Y: 2 Y: 2
Width: 20 Width: 20
Height: 20 Height: 20
Visible: false Visible: false
Image@STATUS_IMAGE: Image@STATUS_IMAGE:
X: 537 X: 527
Y: 4 Y: 4
Width: 20 Width: 20
Height: 20 Height: 20
@@ -155,18 +151,16 @@ Container@LOBBY_PLAYER_BIN:
Visible: false Visible: false
Container@TEMPLATE_NONEDITABLE_PLAYER: Container@TEMPLATE_NONEDITABLE_PLAYER:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -178,105 +172,97 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Label@NAME: Label@NAME:
Text: Name
Width: 165
Height: 25
X: 20 X: 20
Y: 0-1 Y: 0-1
Width: 165
Height: 25
Text: Name
Button@KICK: Button@KICK:
Text: X
Width: 25
Height: 23
X: 155 X: 155
Y: 2 Y: 2
Width: 25
Height: 23
Text: X
Font: Bold Font: Bold
ColorBlock@COLORBLOCK: ColorBlock@COLORBLOCK:
X: 195 X: 195
Y: 6 Y: 6
Width: 45 Width: 35
Height: 13 Height: 13
Container@FACTION: Container@FACTION:
Width: 160
Height: 25
X: 280 X: 280
Y: 0 Width: 150
Height: 25
Children: Children:
Image@FACTIONFLAG: Image@FACTIONFLAG:
Width: 30
Height: 15
X: 5 X: 5
Y: 5 Y: 5
Width: 30
Height: 15
Label@FACTIONNAME: Label@FACTIONNAME:
Text: Faction X: 40
Width: 60 Width: 60
Height: 25 Height: 25
X: 40 Text: Faction
Y: 0
Label@TEAM: Label@TEAM:
X: 410
Width: 23
Height: 25
Text: Team Text: Team
Width: 23
Height: 25
Align: Center Align: Center
X: 420
Y: 0
Label@SPAWN: Label@SPAWN:
Align: Center X: 468
X: 478
Width: 23 Width: 23
Height: 25 Height: 25
Align: Center
Image@STATUS_IMAGE: Image@STATUS_IMAGE:
Visible: false X: 527
X: 537
Y: 4 Y: 4
Width: 20 Width: 20
Height: 20 Height: 20
ImageCollection: checkbox-bits ImageCollection: checkbox-bits
ImageName: checked ImageName: checked
Visible: false
Container@TEMPLATE_EMPTY: Container@TEMPLATE_EMPTY:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Label@NAME: Label@NAME:
Text: Name
Width: 165 Width: 165
Height: 25 Height: 25
X: 20 X: 20
Y: 0-1 Y: 0-1
DropDownButton@SLOT_OPTIONS:
Text: Name Text: Name
DropDownButton@SLOT_OPTIONS:
X: 15
Width: 165 Width: 165
Height: 25 Height: 25
X: 15 Text: Name
Y: 0
Visible: false Visible: false
Button@JOIN: Button@JOIN:
Text: Play in this slot
Width: 336
Height: 25
X: 190 X: 190
Y: 0 Text: Play in this slot
Width: 326
Height: 25
Container@TEMPLATE_EDITABLE_SPECTATOR: Container@TEMPLATE_EDITABLE_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -288,38 +274,35 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
TextField@NAME: TextField@NAME:
Text: Name
X: 15 X: 15
Width: 165 Width: 165
Height: 25 Height: 25
Text: Name
MaxLength: 16 MaxLength: 16
Label@SPECTATOR: Label@SPECTATOR:
Text: Spectator
Width: 336
Height: 25
X: 190 X: 190
Y: 0 Width: 326
Height: 25
Text: Spectator
Align: Center Align: Center
Font: Bold Font: Bold
Container@TEMPLATE_NONEDITABLE_SPECTATOR: Container@TEMPLATE_NONEDITABLE_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Image@ADMIN_INDICATOR: Image@ADMIN_INDICATOR:
X: 2
ImageCollection: lobby-bits ImageCollection: lobby-bits
ImageName: admin ImageName: admin
X: 2
Visible: false Visible: false
Container@LATENCY: Container@LATENCY:
X: 0
Y: 6 Y: 6
Width: 11 Width: 11
Height: 14 Height: 14
@@ -331,52 +314,48 @@ Container@LOBBY_PLAYER_BIN:
Width: PARENT_RIGHT-4 Width: PARENT_RIGHT-4
Height: PARENT_BOTTOM-4 Height: PARENT_BOTTOM-4
ClientTooltipRegion@CLIENT_REGION: ClientTooltipRegion@CLIENT_REGION:
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Width: 11 Width: 11
Height: 25 Height: 25
TooltipContainer: TOOLTIP_CONTAINER
Template: CLIENT_TOOLTIP
Label@NAME: Label@NAME:
Text: Name
Width: 160 Width: 160
Height: 25 Height: 25
X: 20 X: 20
Y: 0-1 Y: 0-1
Text: Name
Button@KICK: Button@KICK:
Text: X
Width: 25
Height: 23
X: 155 X: 155
Y: 2 Y: 2
Width: 25
Height: 23
Text: X
Font: Bold Font: Bold
Label@SPECTATOR: Label@SPECTATOR:
Text: Spectator
Width: 336
Height: 25
X: 190 X: 190
Y: 0 Width: 326
Height: 25
Text: Spectator
Align: Center Align: Center
Font: Bold Font: Bold
Container@TEMPLATE_NEW_SPECTATOR: Container@TEMPLATE_NEW_SPECTATOR:
X: 5 X: 5
Y: 0
Width: 475 Width: 475
Height: 25 Height: 25
Visible: false Visible: false
Children: Children:
Checkbox@TOGGLE_SPECTATORS: Checkbox@TOGGLE_SPECTATORS:
Font: Regular X: 15
Width: 165 Width: 165
Height: 20 Height: 20
X: 15 Font: Regular
Y: 0
Text: Allow Spectators? Text: Allow Spectators?
Button@SPECTATE: Button@SPECTATE:
X: 190
Width: 326
Height: 25
Text: Spectate Text: Spectate
Font: Regular Font: Regular
Width: 336
Height: 25
X: 190
Y: 0
ScrollPanel@FACTION_DROPDOWN_TEMPLATE: ScrollPanel@FACTION_DROPDOWN_TEMPLATE:
Width: DROPDOWN_WIDTH Width: DROPDOWN_WIDTH

View File

@@ -2,7 +2,7 @@ Background@SERVER_LOBBY:
Logic: LobbyLogic Logic: LobbyLogic
X: (WINDOW_RIGHT - WIDTH)/2 X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - HEIGHT)/2 Y: (WINDOW_BOTTOM - HEIGHT)/2
Width: 858 Width: 808
Height: 600 Height: 600
Children: Children:
ColorPreviewManager@COLOR_MANAGER: ColorPreviewManager@COLOR_MANAGER:
@@ -16,46 +16,53 @@ Background@SERVER_LOBBY:
Container@MAP_PREVIEW_ROOT: Container@MAP_PREVIEW_ROOT:
X: PARENT_RIGHT-20-WIDTH X: PARENT_RIGHT-20-WIDTH
Y: 67 Y: 67
Width: 214 Width: 174
Height: 250 Height: 250
Container@TOP_PANELS_ROOT:
X: 20
Y: 67
Width: 593
Height: 235
DropDownButton@SLOTS_DROPDOWNBUTTON: DropDownButton@SLOTS_DROPDOWNBUTTON:
X: 20 X: 20
Y: PARENT_BOTTOM - 291 Y: 291
Width: 167 Width: 180
Height: 25 Height: 25
Font: Bold Font: Bold
Text: Slot Admin Text: Slot Admin
Button@OPTIONS_BUTTON: Button@PLAYERS_TAB:
X: 194 X: 243
Y: PARENT_BOTTOM - 291 Y: 285
Width: 135 Width: 120
Height: 25 Height: 31
Font: Bold Font: Bold
Text: Game Options Text: Players
Button@OPTIONS_TAB:
X: 363
Y: 285
Width: 120
Height: 31
Font: Bold
Text: Options
Button@MUSIC_TAB:
X: 483
Y: 285
Width: 120
Height: 31
Font: Bold
Text: Music
Container@TOP_PANELS_ROOT:
X: 20
Y: 67
Width: 583
Height: 219
Button@CHANGEMAP_BUTTON: Button@CHANGEMAP_BUTTON:
X: 336 X: PARENT_RIGHT - WIDTH - 20
Y: PARENT_BOTTOM - 291 Y: 291
Width: 135 Width: 174
Height: 25 Height: 25
Text: Change Map Text: Change Map
Font: Bold Font: Bold
Button@START_GAME_BUTTON:
X: 478
Y: PARENT_BOTTOM - 291
Width: 135
Height: 25
Text: Start Game
Font: Bold
ScrollPanel@CHAT_DISPLAY: ScrollPanel@CHAT_DISPLAY:
X: 20 X: 20
Y: PARENT_BOTTOM - HEIGHT - 52 Y: PARENT_BOTTOM - HEIGHT - 52
Width: 818 Width: PARENT_RIGHT - 40
Height: 210 Height: 227
TopBottomSpacing: 2 TopBottomSpacing: 2
ItemSpacing: 2 ItemSpacing: 2
Children: Children:
@@ -84,7 +91,7 @@ Background@SERVER_LOBBY:
TextField@CHAT_TEXTFIELD: TextField@CHAT_TEXTFIELD:
X: 20 X: 20
Y: PARENT_BOTTOM - HEIGHT - 20 Y: PARENT_BOTTOM - HEIGHT - 20
Width: PARENT_RIGHT - 167 Width: PARENT_RIGHT - 300
Height: 25 Height: 25
LeftMargin: 50 LeftMargin: 50
Children: Children:
@@ -94,6 +101,13 @@ Background@SERVER_LOBBY:
Height: 25 Height: 25
Align: Right Align: Right
Text: Chat: Text: Chat:
Button@START_GAME_BUTTON:
X: PARENT_RIGHT - WIDTH - 150
Y: PARENT_BOTTOM - HEIGHT - 20
Width: 120
Height: 25
Text: Start Game
Font: Bold
Button@DISCONNECT_BUTTON: Button@DISCONNECT_BUTTON:
X: PARENT_RIGHT - WIDTH - 20 X: PARENT_RIGHT - WIDTH - 20
Y: PARENT_BOTTOM - HEIGHT - 20 Y: PARENT_BOTTOM - HEIGHT - 20

View File

@@ -99,6 +99,7 @@ ChromeLayout:
./mods/ra/chrome/lobby-mappreview.yaml ./mods/ra/chrome/lobby-mappreview.yaml
./mods/ra/chrome/lobby-players.yaml ./mods/ra/chrome/lobby-players.yaml
./mods/ra/chrome/lobby-options.yaml ./mods/ra/chrome/lobby-options.yaml
./mods/ra/chrome/lobby-music.yaml
./mods/ra/chrome/lobby-kickdialogs.yaml ./mods/ra/chrome/lobby-kickdialogs.yaml
./mods/ra/chrome/color-picker.yaml ./mods/ra/chrome/color-picker.yaml
./mods/ra/chrome/map-chooser.yaml ./mods/ra/chrome/map-chooser.yaml

View File

@@ -153,6 +153,7 @@ ChromeLayout:
./mods/ra/chrome/lobby-mappreview.yaml ./mods/ra/chrome/lobby-mappreview.yaml
./mods/ra/chrome/lobby-players.yaml ./mods/ra/chrome/lobby-players.yaml
./mods/ra/chrome/lobby-options.yaml ./mods/ra/chrome/lobby-options.yaml
./mods/ra/chrome/lobby-music.yaml
./mods/ra/chrome/lobby-kickdialogs.yaml ./mods/ra/chrome/lobby-kickdialogs.yaml
./mods/ts/chrome/color-picker.yaml ./mods/ts/chrome/color-picker.yaml
./mods/ra/chrome/map-chooser.yaml ./mods/ra/chrome/map-chooser.yaml