Container@LOBBY_PLAYER_BIN:
	Width: PARENT_RIGHT
	Height: PARENT_BOTTOM
	Children:
		Container@LABEL_CONTAINER:
			X: 5
			Y: 0 - 26
			Width: PARENT_RIGHT
			Height: PARENT_BOTTOM
			Children:
				Label@LABEL_LOBBY_NAME:
					Width: 180
					Height: 25
					Text: Name
					Align: Center
					Font: Bold
				Label@LABEL_LOBBY_COLOR:
					X: 190
					Width: 70
					Height: 25
					Text: Color
					Align: Center
					Font: Bold
				Label@LABEL_LOBBY_FACTION:
					X: 270
					Width: 140
					Height: 25
					Text: Faction
					Align: Center
					Font: Bold
				Label@LABEL_LOBBY_TEAM:
					X: 420
					Width: 48
					Height: 25
					Text: Team
					Align: Center
					Font: Bold
				Label@LABEL_LOBBY_HANDICAP:
					X: 478
					Width: 72
					Height: 25
					Text: Handicap
					Align: Center
					Font: Bold
				Label@LABEL_LOBBY_SPAWN:
					X: 560
					Width: 48
					Height: 25
					Text: Spawn
					Align: Center
					Font: Bold
				Label@LABEL_LOBBY_STATUS:
					X: 617
					Width: 20
					Height: 25
					Text: Ready
					Align: Left
					Font: Bold
		ScrollPanel@LOBBY_PLAYERS:
			Width: PARENT_RIGHT
			Height: PARENT_BOTTOM
			TopBottomSpacing: 5
			ItemSpacing: 5
			Children:
				Container@TEMPLATE_EDITABLE_PLAYER:
					X: 5
					Width: 475
					Height: 25
					Visible: false
					Children:
						Container@LATENCY:
							Y: 6
							Width: 11
							Height: 14
							Visible: false
							Children:
								ColorBlock@LATENCY_COLOR:
									X: 2
									Y: 2
									Width: PARENT_RIGHT - 4
									Height: PARENT_BOTTOM - 4
						ClientTooltipRegion@LATENCY_REGION:
							Width: 11
							Height: 25
							TooltipContainer: TOOLTIP_CONTAINER
							Template: LATENCY_TOOLTIP
						TextField@NAME:
							X: 15
							Width: 165
							Height: 25
							Text: Name
							LeftMargin: 24
							MaxLength: 16
							Visible: false
							Children:
								Image@PROFILE:
									ImageCollection: lobby-bits
									X: 3
									Y: 3
									Visible: false
								ClientTooltipRegion@PROFILE_TOOLTIP:
									X: 3
									Y: 3
									Width: 16
									Height: 16
									TooltipContainer: TOOLTIP_CONTAINER
									Template: ANONYMOUS_PLAYER_TOOLTIP
						DropDownButton@SLOT_OPTIONS:
							X: 15
							Width: 165
							Height: 25
							Text: Name
							Font: Regular
							Visible: false
						DropDownButton@COLOR:
							X: 190
							Width: 70
							Height: 25
							IgnoreChildMouseOver: true
							Children:
								ColorBlock@COLORBLOCK:
									X: 5
									Y: 6
									Width: PARENT_RIGHT - 35
									Height: PARENT_BOTTOM - 12
						DropDownButton@FACTION:
							X: 270
							Width: 140
							Height: 25
							IgnoreChildMouseOver: true
							TooltipContainer: TOOLTIP_CONTAINER
							PanelRoot: FACTION_DROPDOWN_PANEL_ROOT # ensure that tooltips for the options are on top of the dropdown panel
							Children:
								Image@FACTIONFLAG:
									X: 4
									Y: 2
									Width: 23
									Height: 23
								Label@FACTIONNAME:
									X: 34
									Width: 70
									Height: 25
									Text: Faction
						DropDownButton@TEAM_DROPDOWN:
							X: 420
							Width: 48
							Height: 25
							Text: Team
						DropDownButton@HANDICAP_DROPDOWN:
							X: 478
							Width: 72
							Height: 25
							TooltipContainer: TOOLTIP_CONTAINER
							TooltipText: A handicap decreases the combat effectiveness of the player's forces
						DropDownButton@SPAWN_DROPDOWN:
							X: 560
							Width: 48
							Height: 25
							Text: Spawn
						Checkbox@STATUS_CHECKBOX:
							X: 617
							Y: 2
							Width: 20
							Height: 20
							Visible: false
						Image@STATUS_IMAGE:
							X: 619
							Y: 4
							Width: 20
							Height: 20
							ImageCollection: checkbox-bits
							ImageName: checked
							Visible: false
				Container@TEMPLATE_NONEDITABLE_PLAYER:
					X: 5
					Width: 475
					Height: 25
					Visible: false
					Children:
						Container@LATENCY:
							Y: 6
							Width: 11
							Height: 14
							Visible: false
							Children:
								ColorBlock@LATENCY_COLOR:
									X: 2
									Y: 2
									Width: PARENT_RIGHT - 4
									Height: PARENT_BOTTOM - 4
						ClientTooltipRegion@LATENCY_REGION:
							Width: 11
							Height: 25
							TooltipContainer: TOOLTIP_CONTAINER
							Template: LATENCY_TOOLTIP
						Image@PROFILE:
							ImageCollection: lobby-bits
							X: 18
							Y: 3
							Visible: false
						ClientTooltipRegion@PROFILE_TOOLTIP:
							X: 18
							Y: 3
							Width: 16
							Height: 16
							TooltipContainer: TOOLTIP_CONTAINER
							Template: ANONYMOUS_PLAYER_TOOLTIP
						Label@NAME:
							X: 39
							Width: 146
							Height: 25
							Text: Name
						DropDownButton@PLAYER_ACTION:
							X: 15
							Width: 165
							Height: 25
							Font: Regular
							Visible: false
							Align: Left
							LeftMargin: 24
							Children:
								Image@PROFILE:
									ImageCollection: lobby-bits
									X: 3
									Y: 3
									Visible: false
								ClientTooltipRegion@PROFILE_TOOLTIP:
									X: 3
									Y: 3
									Width: 16
									Height: 16
									TooltipContainer: TOOLTIP_CONTAINER
									Template: ANONYMOUS_PLAYER_TOOLTIP
						ColorBlock@COLORBLOCK:
							X: 195
							Y: 6
							Width: 35
							Height: 13
						Container@FACTION:
							X: 270
							Width: 170
							Height: 25
							Children:
								Image@FACTIONFLAG:
									X: 4
									Y: 2
									Width: 23
									Height: 23
								Label@FACTIONNAME:
									X: 34
									Width: 70
									Height: 25
									Text: Faction
						Label@TEAM:
							X: 420
							Width: 23
							Height: 25
							Align: Center
							Text: Team
						DropDownButton@TEAM_DROPDOWN:
							X: 420
							Width: 48
							Height: 25
							Visible: false
						Label@HANDICAP:
							X: 478
							Width: 47
							Height: 25
							Align: Center
						DropDownButton@HANDICAP_DROPDOWN:
							X: 478
							Width: 72
							Height: 25
							TooltipContainer: TOOLTIP_CONTAINER
							TooltipText: A handicap decreases the combat effectiveness of the player's forces
						Label@SPAWN:
							X: 560
							Width: 23
							Height: 25
							Align: Center
						DropDownButton@SPAWN_DROPDOWN:
							X: 560
							Width: 48
							Height: 25
							Visible: false
						Image@STATUS_IMAGE:
							X: 619
							Y: 4
							Width: 20
							Height: 20
							ImageCollection: checkbox-bits
							ImageName: checked
							Visible: false
				Container@TEMPLATE_EMPTY:
					X: 5
					Width: 475
					Height: 25
					Visible: false
					Children:
						Label@NAME:
							X: 20
							Width: 165
							Height: 25
							Text: Name
						DropDownButton@SLOT_OPTIONS:
							X: 15
							Width: 165
							Height: 25
							Text: Name
							Visible: false
						Button@JOIN:
							X: 190
							Width: 418
							Height: 25
							Text: Play in this slot
				Container@TEMPLATE_EDITABLE_SPECTATOR:
					X: 5
					Width: 475
					Height: 25
					Visible: false
					Children:
						Container@LATENCY:
							Y: 6
							Width: 11
							Height: 14
							Visible: false
							Children:
								ColorBlock@LATENCY_COLOR:
									X: 2
									Y: 2
									Width: PARENT_RIGHT - 4
									Height: PARENT_BOTTOM - 4
						ClientTooltipRegion@LATENCY_REGION:
							Width: 11
							Height: 25
							TooltipContainer: TOOLTIP_CONTAINER
							Template: LATENCY_TOOLTIP
						TextField@NAME:
							X: 15
							Width: 165
							Height: 25
							Text: Name
							LeftMargin: 24
							MaxLength: 16
							Children:
								Image@PROFILE:
									ImageCollection: lobby-bits
									X: 3
									Y: 3
									Visible: false
								ClientTooltipRegion@PROFILE_TOOLTIP:
									X: 3
									Y: 3
									Width: 16
									Height: 16
									TooltipContainer: TOOLTIP_CONTAINER
									Template: ANONYMOUS_PLAYER_TOOLTIP
						Label@SPECTATOR:
							X: 190
							Width: 418
							Height: 25
							Text: Spectator
							Align: Center
							Font: Bold
						Checkbox@STATUS_CHECKBOX:
							X: 617
							Y: 2
							Width: 20
							Height: 20
							Visible: false
						Image@STATUS_IMAGE:
							X: 619
							Y: 4
							Width: 20
							Height: 20
							ImageCollection: checkbox-bits
							ImageName: checked
							Visible: false
				Container@TEMPLATE_NONEDITABLE_SPECTATOR:
					X: 5
					Width: 475
					Height: 25
					Visible: false
					Children:
						Container@LATENCY:
							Y: 6
							Width: 11
							Height: 14
							Visible: false
							Children:
								ColorBlock@LATENCY_COLOR:
									X: 2
									Y: 2
									Width: PARENT_RIGHT - 4
									Height: PARENT_BOTTOM - 4
						ClientTooltipRegion@LATENCY_REGION:
							Width: 11
							Height: 25
							TooltipContainer: TOOLTIP_CONTAINER
							Template: LATENCY_TOOLTIP
						Image@PROFILE:
							ImageCollection: lobby-bits
							X: 18
							Y: 3
							Visible: false
						ClientTooltipRegion@PROFILE_TOOLTIP:
							X: 18
							Y: 3
							Width: 16
							Height: 16
							TooltipContainer: TOOLTIP_CONTAINER
							Template: ANONYMOUS_PLAYER_TOOLTIP
						Label@NAME:
							X: 39
							Width: 160
							Height: 25
							Text: Name
						DropDownButton@PLAYER_ACTION:
							X: 15
							Width: 165
							Height: 25
							Font: Regular
							Visible: false
							Align: Left
							LeftMargin: 24
							Children:
								Image@PROFILE:
									ImageCollection: lobby-bits
									X: 3
									Y: 3
									Visible: false
								ClientTooltipRegion@PROFILE_TOOLTIP:
									X: 3
									Y: 3
									Width: 16
									Height: 16
									TooltipContainer: TOOLTIP_CONTAINER
									Template: ANONYMOUS_PLAYER_TOOLTIP
						Label@SPECTATOR:
							X: 190
							Width: 418
							Height: 25
							Text: Spectator
							Align: Center
							Font: Bold
						Image@STATUS_IMAGE:
							X: 619
							Y: 4
							Width: 20
							Height: 20
							ImageCollection: checkbox-bits
							ImageName: checked
							Visible: false
				Container@TEMPLATE_NEW_SPECTATOR:
					X: 5
					Width: 475
					Height: 25
					Visible: false
					Children:
						Checkbox@TOGGLE_SPECTATORS:
							X: 15
							Width: 165
							Height: 20
							Text: Allow Spectators?
							Font: Regular
						Button@SPECTATE:
							X: 190
							Width: 418
							Height: 25
							Text: Spectate
							Font: Regular

ScrollPanel@FACTION_DROPDOWN_TEMPLATE:
	Width: DROPDOWN_WIDTH
	Children:
		ScrollItem@HEADER:
			BaseName: scrollheader
			Width: PARENT_RIGHT - 27
			Height: 13
			X: 2
			Y: 0
			Visible: false
			Children:
				Label@LABEL:
					Font: TinyBold
					Width: PARENT_RIGHT
					Height: 13
					Align: Center
		ScrollItem@TEMPLATE:
			Width: PARENT_RIGHT - 27
			Height: 25
			X: 2
			Y: 0
			Visible: false
			TooltipContainer: TOOLTIP_CONTAINER
			Children:
				Image@FLAG:
					X: 2
					Y: 2
					Width: 30
					Height: 15
				Label@LABEL:
					X: 30
					Width: 70
					Height: 25
