Rename *_RIGHT to *_WIDTH and *_BOTTOM to *_HEIGHT in integer expressions for widgets

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.
This commit is contained in:
Ivaylo Draganov
2024-10-04 11:04:46 +03:00
committed by Gustas
parent bb17cfa179
commit 79ae71a517
125 changed files with 3503 additions and 3457 deletions

View File

@@ -1,7 +1,7 @@
Background@CONTENT_PANEL:
Logic: ModContentLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
X: (WINDOW_WIDTH - WIDTH) / 2
Y: (WINDOW_HEIGHT - HEIGHT) / 2
Width: 500
Height: 290
Background: panel-bg
@@ -15,7 +15,7 @@ Background@CONTENT_PANEL:
Label@TITLE:
X: 0
Y: 14
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 25
Text: Manage Content
Align: Center
@@ -23,14 +23,14 @@ Background@CONTENT_PANEL:
Label@HEADER_TEMPLATE:
X: 30
Y: 66
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 16
Align: Center
WordWrap: true
ScrollPanel@PACKAGES:
X: 30
Y: 84
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 137
TopBottomSpacing: 4
ItemSpacing: 2
@@ -38,7 +38,7 @@ Background@CONTENT_PANEL:
Children:
Container@PACKAGE_TEMPLATE:
X: 6
Width: PARENT_RIGHT - 16
Width: PARENT_WIDTH - 16
Height: 23
Children:
Label@TITLE:
@@ -86,15 +86,15 @@ Background@CONTENT_PANEL:
Text: Requires Disc
Button@CHECK_SOURCE_BUTTON:
X: 30
Y: PARENT_BOTTOM - 52
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 200
Height: 32
Text: Detect Disc or Installation
Font: Bold
Button@BACK_BUTTON:
X: PARENT_RIGHT - 140
Y: PARENT_BOTTOM - 52
X: PARENT_WIDTH - 140
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 110
Height: 32
@@ -115,7 +115,7 @@ Background@SOURCE_TOOLTIP:
Text: Content available from:
Container@SOURCES:
Y: 15
Width: PARENT_RIGHT - 10
Width: PARENT_WIDTH - 10
Height: 7 # used as bottom margin
Children:
Label@SOURCE_TEMPLATE:
@@ -138,14 +138,14 @@ Background@INFO_TOOLTIP:
Container@PACKAGE_DOWNLOAD_PANEL:
Logic: DownloadPackageLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
X: (WINDOW_WIDTH - WIDTH) / 2
Y: (WINDOW_HEIGHT - HEIGHT) / 2
Width: 500
Height: 177
Children:
Background:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Width: PARENT_WIDTH
Height: PARENT_HEIGHT
Background: panel-bg
Background@RULE:
X: 30
@@ -156,25 +156,25 @@ Container@PACKAGE_DOWNLOAD_PANEL:
Label@TITLE:
X: 0
Y: 12
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 25
Align: Center
Font: MediumBold
ProgressBar@PROGRESS_BAR:
X: 30
Y: 64
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 16
BarMargin: 0, 0
Label@STATUS_LABEL:
X: 30
Y: 85
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 25
Align: Left
Button@RETRY_BUTTON:
X: 30
Y: PARENT_BOTTOM - 52
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 120
Height: 32
@@ -183,8 +183,8 @@ Container@PACKAGE_DOWNLOAD_PANEL:
Font: Bold
Key: return
Button@CANCEL_BUTTON:
X: PARENT_RIGHT - 30 - WIDTH
Y: PARENT_BOTTOM - 52
X: PARENT_WIDTH - 30 - WIDTH
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 110
Height: 32
@@ -194,8 +194,8 @@ Container@PACKAGE_DOWNLOAD_PANEL:
Background@SOURCE_INSTALL_PANEL:
Logic: InstallFromSourceLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
X: (WINDOW_WIDTH - WIDTH) / 2
Y: (WINDOW_HEIGHT - HEIGHT) / 2
Width: 500
Height: 177
Background: panel-bg
@@ -208,52 +208,52 @@ Background@SOURCE_INSTALL_PANEL:
Background: panel-rule
Label@TITLE:
Y: 12
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 25
Align: Center
Font: MediumBold
Container@PROGRESS:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Width: PARENT_WIDTH
Height: PARENT_HEIGHT
Visible: false
Children:
ProgressBar@PROGRESS_BAR:
X: 30
Y: 60
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 16
BarMargin: 0, 0
Label@PROGRESS_MESSAGE:
X: 30
Y: 80
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 25
Align: Left
Container@MESSAGE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Width: PARENT_WIDTH
Height: PARENT_HEIGHT
Height: 157
Visible: false
Children:
Label@MESSAGE_MESSAGE:
Y: 65
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 25
Align: Center
Container@LIST:
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 338
Visible: false
Children:
Label@LIST_MESSAGE:
Y: 65
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 16
Align: Center
ScrollPanel@LIST_PANEL:
X: 30
Y: 99
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 170
TopBottomSpacing: 4
ItemSpacing: 2
@@ -261,36 +261,36 @@ Background@SOURCE_INSTALL_PANEL:
Children:
Container@LIST_HEADER_TEMPLATE:
X: 6
Width: PARENT_RIGHT - 12 - 24
Width: PARENT_WIDTH - 12 - 24
Height: 14
Children:
Background@TOP_RULE:
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 1
Background: panel-rule
Label@LABEL:
Y: 3
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 10
Font: TinyBold
Align: Center
Background@BOTTOM_RULE:
Y: 16
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 1
Background: panel-rule
Label@LABEL_LIST_TEMPLATE:
X: 6
Width: PARENT_RIGHT - 16
Width: PARENT_WIDTH - 16
Height: 23
Container@CHECKBOX_LIST_TEMPLATE:
X: 6
Width: PARENT_RIGHT - 16
Width: PARENT_WIDTH - 16
Height: 23
Children:
Checkbox@PACKAGE_CHECKBOX:
X: 6
Width: PARENT_RIGHT - 16
Width: PARENT_WIDTH - 16
Height: 23
Children:
Image@PACKAGE_INFO:
@@ -305,15 +305,15 @@ Background@SOURCE_INSTALL_PANEL:
TooltipTemplate: INFO_TOOLTIP
Button@PRIMARY_BUTTON:
X: 30
Y: PARENT_BOTTOM - 52
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 110
Height: 32
Font: Bold
Key: return
Button@SECONDARY_BUTTON:
X: PARENT_RIGHT - 140
Y: PARENT_BOTTOM - 52
X: PARENT_WIDTH - 140
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 110
Height: 32
@@ -323,8 +323,8 @@ Background@SOURCE_INSTALL_PANEL:
Background@CONTENT_PROMPT_PANEL:
Logic: ModContentPromptLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
X: (WINDOW_WIDTH - WIDTH) / 2
Y: (WINDOW_HEIGHT - HEIGHT) / 2
Width: 500
Height: 140
Background: panel-bg
@@ -338,7 +338,7 @@ Background@CONTENT_PROMPT_PANEL:
Label@TITLE:
X: 0
Y: 12
Width: PARENT_RIGHT
Width: PARENT_WIDTH
Height: 25
Text: Install Content
Align: Center
@@ -346,13 +346,13 @@ Background@CONTENT_PROMPT_PANEL:
Label@HEADER_TEMPLATE:
X: 30
Y: 65
Width: PARENT_RIGHT - 60
Width: PARENT_WIDTH - 60
Height: 16
Align: Center
WordWrap: true
Button@ADVANCED_BUTTON:
X: 30
Y: PARENT_BOTTOM - 52
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 140
Height: 32
@@ -360,15 +360,15 @@ Background@CONTENT_PROMPT_PANEL:
Font: Bold
Button@QUICK_BUTTON:
X: 185
Y: PARENT_BOTTOM - 52
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 110
Height: 32
Text: Quick Install
Font: Bold
Button@QUIT_BUTTON:
X: PARENT_RIGHT - WIDTH - 30
Y: PARENT_BOTTOM - 52
X: PARENT_WIDTH - WIDTH - 30
Y: PARENT_HEIGHT - 52
Background: button-highlighted
Width: 110
Height: 32
@@ -378,8 +378,8 @@ Background@CONTENT_PROMPT_PANEL:
Background@MODCONTENT_BACKGROUND:
Background: background
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Width: WINDOW_WIDTH
Height: WINDOW_HEIGHT
Background@BUTTON_TOOLTIP:
Logic: ButtonTooltipLogic