Added a player action dropdown.

Adds options for:
 - handling kick
 - transferring admin
 - move to spectator
This commit is contained in:
teinarss
2018-07-05 22:07:30 +00:00
committed by Paul Chote
parent 0c1b11ed4f
commit 1c0aa24640
7 changed files with 212 additions and 60 deletions

View File

@@ -26,6 +26,23 @@ ScrollPanel@LABEL_DROPDOWN_TEMPLATE:
Width: PARENT_RIGHT - 20
Height: 25
ScrollPanel@PLAYERACTION_DROPDOWN_TEMPLATE:
Width: DROPDOWN_WIDTH
Background: panel-black
Children:
ScrollItem@TEMPLATE:
Width: PARENT_RIGHT - 27
Height: 25
X: 2
Y: 0
Visible: false
Children:
Label@LABEL:
X: 10
Width: PARENT_RIGHT - 20
Height: 25
Align: Left
ScrollPanel@FACTION_DROPDOWN_TEMPLATE:
Width: DROPDOWN_WIDTH
Background: panel-black

View File

@@ -185,16 +185,13 @@ Container@LOBBY_PLAYER_BIN:
Y: 0 - 1
Width: 180
Height: 25
Button@KICK:
X: 180
Width: 25
DropDownButton@PLAYER_ACTION:
X: 15
Width: 190
Height: 25
Children:
Image:
ImageCollection: lobby-bits
ImageName: kick
X: 7
Y: 7
Font: Regular
Visible: false
Align: Left
ColorBlock@COLORBLOCK:
X: 215
Y: 6
@@ -358,16 +355,13 @@ Container@LOBBY_PLAYER_BIN:
Y: 0 - 1
Width: 180
Height: 25
Button@KICK:
X: 180
Width: 25
DropDownButton@PLAYER_ACTION:
X: 15
Width: 190
Height: 25
Children:
Image:
ImageCollection: lobby-bits
ImageName: kick
X: 7
Y: 7
Font: Regular
Visible: false
Align: Left
Label@SPECTATOR:
X: 210
Width: 341