Extract sysinfo logic to its own class.

This commit is contained in:
Paul Chote
2020-02-08 18:17:27 +00:00
committed by abcdefg30
parent 98aef70e88
commit e8df28c518
11 changed files with 232 additions and 230 deletions

View File

@@ -0,0 +1,56 @@
Background@MAINMENU_SYSTEM_INFO_PROMPT:
Logic: SystemInfoPromptLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 520
Height: 260
Children:
Label@PROMPT_TITLE:
Width: PARENT_RIGHT
Y: 20
Height: 25
Font: Bold
Align: Center
Text: System Information
Label@PROMPT_TEXT_A:
X: 15
Y: 50
Width: PARENT_RIGHT - 30
Height: 16
Align: Center
Text: We would like to collect some details that will help us optimize OpenRA.
Label@PROMPT_TEXT_B:
X: 15
Y: 68
Width: PARENT_RIGHT - 30
Height: 16
Align: Center
Text: With your permission, the following anonymous system data will be sent:
ScrollPanel@SYSINFO_DATA:
X: 20
Y: 98
Width: PARENT_RIGHT - 40
TopBottomSpacing: 4
ItemSpacing: 4
Height: 110
Children:
Label@DATA_TEMPLATE:
X: 8
Height: 13
VAlign: Top
Font: Small
Checkbox@SYSINFO_CHECKBOX:
X: 40
Y: PARENT_BOTTOM - 42
Width: 200
Height: 20
Font: Regular
Text: Send System Information
Button@CONTINUE_BUTTON:
X: PARENT_RIGHT - WIDTH - 20
Y: PARENT_BOTTOM - 45
Width: 120
Height: 25
Text: Continue
Font: Bold
Key: return

View File

@@ -218,61 +218,6 @@ Container@MAINMENU:
Height: 30
Text: Back
Font: Bold
Background@SYSTEM_INFO_PROMPT:
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 520
Height: 260
Children:
Label@PROMPT_TITLE:
Width: PARENT_RIGHT
Y: 20
Height: 25
Font: Bold
Align: Center
Text: System Information
Label@PROMPT_TEXT_A:
X: 15
Y: 50
Width: PARENT_RIGHT - 30
Height: 16
Align: Center
Text: We would like to collect some details that will help us optimize OpenRA.
Label@PROMPT_TEXT_B:
X: 15
Y: 68
Width: PARENT_RIGHT - 30
Height: 16
Align: Center
Text: With your permission, the following anonymous system data will be sent:
ScrollPanel@SYSINFO_DATA:
X: 20
Y: 98
Width: PARENT_RIGHT - 40
TopBottomSpacing: 4
ItemSpacing: 4
Height: 110
Children:
Label@DATA_TEMPLATE:
X: 8
Height: 13
VAlign: Top
Font: Small
Checkbox@SYSINFO_CHECKBOX:
X: 40
Y: PARENT_BOTTOM - 42
Width: 200
Height: 20
Font: Regular
Text: Send System Information
Button@BACK_BUTTON:
X: PARENT_RIGHT - WIDTH - 20
Y: PARENT_BOTTOM - 45
Width: 120
Height: 25
Text: Continue
Font: Bold
Key: return
Container@PERFORMANCE_INFO:
Logic: PerfDebugLogic
Children: