Make size and white-space of "Replay Browser" panel consistent

This commit is contained in:
Ivaylo Draganov
2021-09-24 16:25:21 +03:00
committed by reaperrr
parent a69d86c587
commit d14ba6b04d
2 changed files with 76 additions and 69 deletions

View File

@@ -2,8 +2,8 @@ Container@REPLAYBROWSER_PANEL:
Logic: ReplayBrowserLogic Logic: ReplayBrowserLogic
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 780 Width: 900
Height: 500 Height: 540
Children: Children:
Label@TITLE: Label@TITLE:
Width: PARENT_RIGHT Width: PARENT_RIGHT
@@ -18,17 +18,18 @@ Container@REPLAYBROWSER_PANEL:
Background: panel-black Background: panel-black
Children: Children:
Container@FILTER_AND_MANAGE_CONTAINER: Container@FILTER_AND_MANAGE_CONTAINER:
X: 20 X: 15
Y: 20 Y: 15
Width: 280 Width: 285
Height: PARENT_BOTTOM - 40 Height: PARENT_BOTTOM
Children: Children:
Container@FILTERS: Container@FILTERS:
Width: 280 Width: PARENT_RIGHT
Height: 320 Height: 320
Children: Children:
Label@FILTERS_TITLE: Label@FILTERS_TITLE:
X: 85 X: 85
Y: 0 - 9
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Font: Bold Font: Bold
@@ -36,107 +37,106 @@ Container@REPLAYBROWSER_PANEL:
Text: Filter Text: Filter
Label@FLT_GAMETYPE_DESC: Label@FLT_GAMETYPE_DESC:
X: 0 X: 0
Y: 30 Y: 15
Width: 80 Width: 80
Height: 25 Height: 25
Text: Type: Text: Type:
Align: Right Align: Right
DropDownButton@FLT_GAMETYPE_DROPDOWNBUTTON: DropDownButton@FLT_GAMETYPE_DROPDOWNBUTTON:
X: 85 X: 85
Y: 30 Y: 15
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Any Text: Any
Label@FLT_DATE_DESC: Label@FLT_DATE_DESC:
X: 0 X: 0
Y: 60 Y: 45
Width: 80 Width: 80
Height: 25 Height: 25
Text: Date: Text: Date:
Align: Right Align: Right
DropDownButton@FLT_DATE_DROPDOWNBUTTON: DropDownButton@FLT_DATE_DROPDOWNBUTTON:
X: 85 X: 85
Y: 60 Y: 45
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Any Text: Any
Label@FLT_DURATION_DESC: Label@FLT_DURATION_DESC:
X: 0 X: 0
Y: 90 Y: 75
Width: 80 Width: 80
Height: 25 Height: 25
Text: Duration: Text: Duration:
Align: Right Align: Right
DropDownButton@FLT_DURATION_DROPDOWNBUTTON: DropDownButton@FLT_DURATION_DROPDOWNBUTTON:
X: 85 X: 85
Y: 90 Y: 75
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Any Text: Any
Label@FLT_MAPNAME_DESC: Label@FLT_MAPNAME_DESC:
X: 0 X: 0
Y: 120 Y: 105
Width: 80 Width: 80
Height: 25 Height: 25
Text: Map: Text: Map:
Align: Right Align: Right
DropDownButton@FLT_MAPNAME_DROPDOWNBUTTON: DropDownButton@FLT_MAPNAME_DROPDOWNBUTTON:
X: 85 X: 85
Y: 120 Y: 105
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Any Text: Any
Label@FLT_PLAYER_DESC: Label@FLT_PLAYER_DESC:
X: 0 X: 0
Y: 150 Y: 135
Width: 80 Width: 80
Height: 25 Height: 25
Text: Player: Text: Player:
Align: Right Align: Right
DropDownButton@FLT_PLAYER_DROPDOWNBUTTON: DropDownButton@FLT_PLAYER_DROPDOWNBUTTON:
X: 85 X: 85
Y: 150 Y: 135
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Anyone Text: Anyone
Label@FLT_OUTCOME_DESC: Label@FLT_OUTCOME_DESC:
X: 0 X: 0
Y: 180 Y: 165
Width: 80 Width: 80
Height: 25 Height: 25
Text: Outcome: Text: Outcome:
Align: Right Align: Right
DropDownButton@FLT_OUTCOME_DROPDOWNBUTTON: DropDownButton@FLT_OUTCOME_DROPDOWNBUTTON:
X: 85 X: 85
Y: 180 Y: 165
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Any Text: Any
Label@FLT_FACTION_DESC: Label@FLT_FACTION_DESC:
X: 0 X: 0
Y: 210 Y: 195
Width: 80 Width: 80
Height: 25 Height: 25
Text: Faction: Text: Faction:
Align: Right Align: Right
DropDownButton@FLT_FACTION_DROPDOWNBUTTON: DropDownButton@FLT_FACTION_DROPDOWNBUTTON:
X: 85 X: 85
Y: 210 Y: 195
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Any Text: Any
Button@FLT_RESET_BUTTON: Button@FLT_RESET_BUTTON:
X: 85 X: 85
Y: 250 Y: 235
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Text: Reset Filters Text: Reset Filters
Font: Bold Font: Bold
Container@MANAGEMENT: Container@MANAGEMENT:
X: 85 X: 85
Y: PARENT_BOTTOM - 115 Y: 395
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 115
Children: Children:
Label@MANAGE_TITLE: Label@MANAGE_TITLE:
Y: 1 Y: 1
@@ -166,13 +166,13 @@ Container@REPLAYBROWSER_PANEL:
Text: Delete All Text: Delete All
Font: Bold Font: Bold
Container@REPLAY_LIST_CONTAINER: Container@REPLAY_LIST_CONTAINER:
X: 310 X: 314
Y: 20 Y: 15
Width: 250 Width: 383
Height: PARENT_BOTTOM - 20 - 20 Height: PARENT_BOTTOM - 45
Children: Children:
Label@REPLAYBROWSER_LABEL_TITLE: Label@REPLAYBROWSER_LABEL_TITLE:
Y: 1 Y: 0 - 9
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Text: Choose Replay Text: Choose Replay
@@ -180,9 +180,9 @@ Container@REPLAYBROWSER_PANEL:
Font: Bold Font: Bold
ScrollPanel@REPLAY_LIST: ScrollPanel@REPLAY_LIST:
X: 0 X: 0
Y: 30 Y: 15
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 30 Height: PARENT_BOTTOM
CollapseHiddenChildren: True CollapseHiddenChildren: True
Children: Children:
ScrollItem@REPLAY_TEMPLATE: ScrollItem@REPLAY_TEMPLATE:
@@ -199,15 +199,15 @@ Container@REPLAYBROWSER_PANEL:
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP TooltipTemplate: SIMPLE_TOOLTIP
Container@MAP_PREVIEW_ROOT: Container@MAP_PREVIEW_ROOT:
X: PARENT_RIGHT - WIDTH - 20 X: PARENT_RIGHT - WIDTH - 15
Y: 50 Y: 30
Width: 194 Width: 174
Height: 250 Height: 250
Container@REPLAY_INFO: Container@REPLAY_INFO:
X: PARENT_RIGHT - WIDTH - 20 X: PARENT_RIGHT - WIDTH - 15
Y: 250 Y: 230
Width: 194 Width: 174
Height: PARENT_BOTTOM - 260 Height: PARENT_BOTTOM - 240
Children: Children:
Label@DURATION: Label@DURATION:
Y: 21 Y: 21
@@ -218,7 +218,7 @@ Container@REPLAYBROWSER_PANEL:
ScrollPanel@PLAYER_LIST: ScrollPanel@PLAYER_LIST:
Y: 40 Y: 40
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 50 Height: PARENT_BOTTOM - 45
IgnoreChildMouseOver: true IgnoreChildMouseOver: true
Children: Children:
ScrollItem@HEADER: ScrollItem@HEADER:
@@ -254,18 +254,18 @@ Container@REPLAYBROWSER_PANEL:
X: 5 X: 5
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Button@CANCEL_BUTTON: Button@CANCEL_BUTTON:
Key: escape Key: escape
X: 0 X: 0
Y: PARENT_BOTTOM - 1 Y: PARENT_BOTTOM - 1
Width: 140 Width: 140
Height: 35 Height: 35
Text: Back Text: Back
Button@WATCH_BUTTON: Button@WATCH_BUTTON:
Key: return Key: return
X: PARENT_RIGHT - 140 X: PARENT_RIGHT - 140
Y: PARENT_BOTTOM - 1 Y: PARENT_BOTTOM - 1
Width: 140 Width: 140
Height: 35 Height: 35
Text: Watch Text: Watch
TooltipContainer@TOOLTIP_CONTAINER: TooltipContainer@TOOLTIP_CONTAINER:

View File

@@ -2,12 +2,19 @@ Background@REPLAYBROWSER_PANEL:
Logic: ReplayBrowserLogic Logic: ReplayBrowserLogic
X: (WINDOW_RIGHT - WIDTH) / 2 X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2 Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 780 Width: 900
Height: 535 Height: 600
Children: Children:
Label@TITLE:
Y: 16
Width: PARENT_RIGHT
Height: 25
Text: Replay Viewer
Align: Center
Font: Bold
Container@FILTER_AND_MANAGE_CONTAINER: Container@FILTER_AND_MANAGE_CONTAINER:
X: 20 X: 20
Y: 20 Y: 37
Width: 280 Width: 280
Height: PARENT_BOTTOM - 75 Height: PARENT_BOTTOM - 75
Children: Children:
@@ -17,6 +24,7 @@ Background@REPLAYBROWSER_PANEL:
Children: Children:
Label@FILTERS_TITLE: Label@FILTERS_TITLE:
X: 85 X: 85
Y: 6
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 25 Height: 25
Font: Bold Font: Bold
@@ -122,9 +130,8 @@ Background@REPLAYBROWSER_PANEL:
Font: Bold Font: Bold
Container@MANAGEMENT: Container@MANAGEMENT:
X: 85 X: 85
Y: PARENT_BOTTOM - 115 Y: 395
Width: PARENT_RIGHT - 85 Width: PARENT_RIGHT - 85
Height: 115
Children: Children:
Label@MANAGE_TITLE: Label@MANAGE_TITLE:
Y: 1 Y: 1
@@ -154,13 +161,13 @@ Background@REPLAYBROWSER_PANEL:
Text: Delete All Text: Delete All
Font: Bold Font: Bold
Container@REPLAY_LIST_CONTAINER: Container@REPLAY_LIST_CONTAINER:
X: 310 X: 311
Y: 20 Y: 37
Width: 250 Width: 384
Height: PARENT_BOTTOM - 20 - 55 Height: PARENT_BOTTOM - 37 - 55
Children: Children:
Label@REPLAYBROWSER_LABEL_TITLE: Label@REPLAYBROWSER_LABEL_TITLE:
Y: 1 Y: 6
Width: PARENT_RIGHT Width: PARENT_RIGHT
Height: 25 Height: 25
Text: Choose Replay Text: Choose Replay
@@ -188,14 +195,14 @@ Background@REPLAYBROWSER_PANEL:
TooltipTemplate: SIMPLE_TOOLTIP TooltipTemplate: SIMPLE_TOOLTIP
Container@MAP_PREVIEW_ROOT: Container@MAP_PREVIEW_ROOT:
X: PARENT_RIGHT - WIDTH - 20 X: PARENT_RIGHT - WIDTH - 20
Y: 50 Y: 67
Width: 194 Width: 174
Height: 250 Height: 250
Container@REPLAY_INFO: Container@REPLAY_INFO:
X: PARENT_RIGHT - WIDTH - 20 X: PARENT_RIGHT - WIDTH - 20
Y: 250 Y: 267
Width: 194 Width: 174
Height: PARENT_BOTTOM - 250 - 45 Height: PARENT_BOTTOM - 267 - 45
Children: Children:
Label@DURATION: Label@DURATION:
Y: 19 Y: 19