The terms "width" and "height" are clearer and they match what the values actually represent (window or parent width/height). The YAML changes are generated with the update rule.
59 lines
1.0 KiB
YAML
59 lines
1.0 KiB
YAML
Background@DIRECTCONNECT_PANEL:
|
|
Logic: DirectConnectLogic
|
|
X: (WINDOW_WIDTH - WIDTH) / 2
|
|
Y: (WINDOW_HEIGHT - HEIGHT) / 2
|
|
Width: 450
|
|
Height: 160
|
|
Children:
|
|
Label@DIRECTCONNECT_LABEL_TITLE:
|
|
X: 0
|
|
Y: 21
|
|
Width: 450
|
|
Height: 25
|
|
Text: label-directconnect-panel-title
|
|
Align: Center
|
|
Font: Bold
|
|
Label@ADDRESS_LABEL:
|
|
X: 20
|
|
Y: 60
|
|
Width: 125
|
|
Height: 25
|
|
Align: Right
|
|
Text: label-directconnect-panel-address
|
|
TextField@IP:
|
|
X: 150
|
|
Y: 60
|
|
Width: 210
|
|
MaxLength: 50
|
|
Height: 25
|
|
Label@PORT_LABEL:
|
|
X: 360
|
|
Y: 60
|
|
Width: 10
|
|
Height: 25
|
|
Align: Center
|
|
Text: label-directconnect-panel-port
|
|
TextField@PORT:
|
|
X: 370
|
|
Y: 60
|
|
Width: 60
|
|
MaxLength: 5
|
|
Height: 25
|
|
Type: Integer
|
|
Button@JOIN_BUTTON:
|
|
X: PARENT_WIDTH - 430
|
|
Y: PARENT_HEIGHT - 45
|
|
Width: 160
|
|
Height: 25
|
|
Text: button-directconnect-panel-join
|
|
Font: Bold
|
|
Key: return
|
|
Button@BACK_BUTTON:
|
|
X: PARENT_WIDTH - 180
|
|
Y: PARENT_HEIGHT - 45
|
|
Width: 160
|
|
Height: 25
|
|
Text: button-cancel
|
|
Font: Bold
|
|
Key: escape
|