Files
OpenRA/mods/common/chrome/lobby-options.yaml
Ivaylo Draganov eadc8ad689 Change color of labels that correspond to disabled inputs
- Add a new widget type for input and extend it from other input widgets
- Add a new label type that can be linked to an input widget
- Change the label color when the input's disabled state changes
2022-03-07 21:01:33 +01:00

86 lines
2.1 KiB
YAML

Container@LOBBY_OPTIONS_BIN:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@TITLE:
Y: 0 - 24
Width: PARENT_RIGHT
Height: 25
Font: Bold
Align: Center
Text: Map Options
ScrollPanel:
Logic: LobbyOptionsLogic
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Container@LOBBY_OPTIONS:
Y: 10
Width: PARENT_RIGHT - 24
Children:
Container@CHECKBOX_ROW_TEMPLATE:
Width: PARENT_RIGHT
Height: 30
Children:
Checkbox@A:
X: 10
Width: PARENT_RIGHT / 3 - 20
Height: 20
Visible: False
TooltipContainer: TOOLTIP_CONTAINER
Checkbox@B:
X: PARENT_RIGHT / 3 + 10
Width: PARENT_RIGHT / 3 - 20
Height: 20
Visible: False
TooltipContainer: TOOLTIP_CONTAINER
Checkbox@C:
X: (PARENT_RIGHT / 3) * 2 + 10
Width: PARENT_RIGHT / 3 - 20
Height: 20
Visible: False
TooltipContainer: TOOLTIP_CONTAINER
Container@DROPDOWN_ROW_TEMPLATE:
Height: 60
Width: PARENT_RIGHT
Children:
LabelForInput@A_DESC:
X: 10
Width: PARENT_RIGHT / 3 - 20
Height: 20
Visible: False
For: A
DropDownButton@A:
X: 10
Width: PARENT_RIGHT / 3 - 20
Y: 25
Height: 25
Visible: False
TooltipContainer: TOOLTIP_CONTAINER
LabelForInput@B_DESC:
X: PARENT_RIGHT / 3 + 10
Width: PARENT_RIGHT / 3 - 20
Height: 20
Visible: False
For: B
DropDownButton@B:
X: PARENT_RIGHT / 3 + 10
Width: PARENT_RIGHT / 3 - 20
Y: 25
Height: 25
Visible: False
TooltipContainer: TOOLTIP_CONTAINER
LabelForInput@C_DESC:
X: (PARENT_RIGHT / 3) * 2 + 10
Width: PARENT_RIGHT / 3 - 20
Height: 20
Visible: False
For: C
DropDownButton@C:
X: (PARENT_RIGHT / 3) * 2 + 10
Width: PARENT_RIGHT / 3 - 20
Y: 25
Height: 25
Visible: False
TooltipContainer: TOOLTIP_CONTAINER