Files
OpenRA/mods/common/chrome/settings-hotkeys.yaml
RoosterDragon ca6aa5ebf1 Adjust widget sizes to ensure they accommodate the English translation text.
Some existing widget are too small to accommodate their text. Adjust their sizes to fit. Text can be rendered outside the widget bounds so visually this often has no impact, but adjusting this now will help in the future for checking translation text for other languages fit in their widgets.
2024-01-21 12:34:28 +02:00

165 lines
3.9 KiB
YAML

Container@HOTKEYS_PANEL:
Logic: HotkeysSettingsLogic
HotkeyGroups:
Game Commands:
Types: OrderGenerator, World, Menu
Viewport Commands:
Types: Viewport
Observer / Replay Commands:
Types: Observer, Replay
Unit Commands:
Types: Unit
Unit Stance Commands:
Types: Stance
Production Commands:
Types: Production, ProductionSlot
Support Power Commands:
Types: SupportPower
Music Commands:
Types: Music
Chat Commands:
Types: Chat
Control Groups:
Types: ControlGroups
Editor Commands:
Types: Editor
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@FILTER_INPUT_LABEL:
Width: 103
Height: 25
Font: Bold
Text: label-hotkeys-panel-filter-input
TextField@FILTER_INPUT:
X: 108
Width: 180
Height: 25
Label@CONTEXT_DROPDOWN_LABEL:
X: PARENT_RIGHT - WIDTH - 195 - 5
Width: 100
Height: 25
Font: Bold
Text: label-hotkeys-panel-context-dropdown
Align: Right
DropDownButton@CONTEXT_DROPDOWN:
X: PARENT_RIGHT - WIDTH
Width: 195
Height: 25
Font: Bold
ScrollPanel@HOTKEY_LIST:
Y: 35
Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 65 - 35
TopBottomSpacing: 5
ItemSpacing: 5
Children:
Container@HEADER:
Width: PARENT_RIGHT - 24 - 10
Height: 18
Children:
Background@BACKGROUND:
Width: PARENT_RIGHT
Height: 13
Background: separator
ClickThrough: True
Label@LABEL:
Width: PARENT_RIGHT
Height: 13
Font: TinyBold
Align: Center
Container@TEMPLATE:
Width: (PARENT_RIGHT - 24) / 2 - 10
Height: 30
Visible: false
Children:
Label@FUNCTION:
Y: 0 - 1
Width: PARENT_RIGHT - 120 - 5
Height: 25
Align: Right
Button@HOTKEY:
X: PARENT_RIGHT - WIDTH
Width: 120
Height: 25
TooltipContainer: SETTINGS_TOOLTIP_CONTAINER
Container@HOTKEY_EMPTY_LIST:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Visible: false
Children:
Label@HOTKEY_EMPTY_LIST_MESSAGE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Align: Center
Text: label-hotkey-empty-list-message
Background@HOTKEY_REMAP_BGND:
Y: PARENT_BOTTOM - HEIGHT
Width: PARENT_RIGHT
Height: 65
Background: dialog3
Children:
Container@HOTKEY_REMAP_DIALOG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@HOTKEY_LABEL:
X: 15
Y: 19
Width: 200
Height: 25
Font: Bold
Align: Right
HotkeyEntry@HOTKEY_ENTRY:
X: 15 + 200 + 5
Y: 20
Width: 300
Height: 25
Container@NOTICES:
X: 15 + 200 + 5
Y: 42
Width: 300
Height: 25
Children:
Label@ORIGINAL_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Label@DUPLICATE_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Label@READONLY_NOTICE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Font: Tiny
Text: label-notices-readonly-notice
Button@OVERRIDE_HOTKEY_BUTTON:
X: PARENT_RIGHT - 3 * WIDTH - 30
Y: 20
Width: 70
Height: 25
Text: button-hotkey-remap-dialog-override
Font: Bold
Button@CLEAR_HOTKEY_BUTTON:
X: PARENT_RIGHT - 2 * WIDTH - 30
Y: 20
Width: 65
Height: 25
Text: button-hotkey-remap-dialog-clear.label
Font: Bold
TooltipText: button-hotkey-remap-dialog-clear.tooltip
TooltipContainer: SETTINGS_TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Button@RESET_HOTKEY_BUTTON:
X: PARENT_RIGHT - WIDTH - 20
Y: 20
Width: 65
Height: 25
Text: button-hotkey-remap-dialog-reset.label
Font: Bold
TooltipText: button-hotkey-remap-dialog-reset.tooltip
TooltipContainer: SETTINGS_TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP