Add filters to the replay browser dialog
This closes issue #2152. The filters added are: * Game type (singleplayer / multiplayer) * Date * Duration * Outcome * Player name Other changes: * Added a 'CollapseHiddenChildren' option to the ScrollPanelWidget to make hidden children take up no space. * Removed the extension (.rep) from the replay filenames in the replay browser.
This commit is contained in:
@@ -2,45 +2,144 @@ Background@REPLAYBROWSER_PANEL:
|
||||
Logic: ReplayBrowserLogic
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
||||
Width: 530
|
||||
Width: 490
|
||||
Height: 535
|
||||
Children:
|
||||
Label@REPLAYBROWSER_LABEL_TITLE:
|
||||
Y: 20
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Text: Choose Replay
|
||||
Align: Center
|
||||
Font: Bold
|
||||
ScrollPanel@REPLAY_LIST:
|
||||
Container@FILTERS:
|
||||
X: 20
|
||||
Y: 50
|
||||
Width: 282
|
||||
Height: 430
|
||||
Y: 20
|
||||
Width: 280
|
||||
Height: 180
|
||||
Children:
|
||||
ScrollItem@REPLAY_TEMPLATE:
|
||||
Width: PARENT_RIGHT-27
|
||||
Label@FILTERS_TITLE:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
X: 2
|
||||
Visible: false
|
||||
Font: Bold
|
||||
Align: Center
|
||||
Text: Filter
|
||||
Label@FLT_GAMETYPE_DESC:
|
||||
X: 0
|
||||
Y: 30
|
||||
Width: 80
|
||||
Height: 25
|
||||
Text: Type:
|
||||
Align: Right
|
||||
DropDownButton@FLT_GAMETYPE_DROPDOWNBUTTON:
|
||||
X: 85
|
||||
Y: 30
|
||||
Width: 160
|
||||
Height: 25
|
||||
Font: Regular
|
||||
Text: Any
|
||||
Label@FLT_DATE_DESC:
|
||||
X: 0
|
||||
Y: 60
|
||||
Width: 80
|
||||
Height: 25
|
||||
Text: Date:
|
||||
Align: Right
|
||||
DropDownButton@FLT_DATE_DROPDOWNBUTTON:
|
||||
X: 85
|
||||
Y: 60
|
||||
Width: 160
|
||||
Height: 25
|
||||
Font: Regular
|
||||
Text: Any
|
||||
Label@FLT_PLAYER_DESC:
|
||||
X: 0
|
||||
Y: 90
|
||||
Width: 80
|
||||
Height: 25
|
||||
Text: Player:
|
||||
Align: Right
|
||||
DropDownButton@FLT_PLAYER_DROPDOWNBUTTON:
|
||||
X: 85
|
||||
Y: 90
|
||||
Width: 160
|
||||
Height: 25
|
||||
Font: Regular
|
||||
Text: Anyone
|
||||
Label@FLT_OUTCOME_DESC:
|
||||
X: 0
|
||||
Y: 120
|
||||
Width: 80
|
||||
Height: 25
|
||||
Text: Outcome:
|
||||
Align: Right
|
||||
DropDownButton@FLT_OUTCOME_DROPDOWNBUTTON:
|
||||
X: 85
|
||||
Y: 120
|
||||
Width: 160
|
||||
Height: 25
|
||||
Font: Regular
|
||||
Text: Any
|
||||
Label@FLT_DURATION_DESC:
|
||||
X: 0
|
||||
Y: 150
|
||||
Width: 80
|
||||
Height: 25
|
||||
Text: Duration:
|
||||
Align: Right
|
||||
DropDownButton@FLT_DURATION_DROPDOWNBUTTON:
|
||||
X: 85
|
||||
Y: 150
|
||||
Width: 160
|
||||
Height: 25
|
||||
Font: Regular
|
||||
Text: Any
|
||||
Container@REPLAY_LIST_CONTAINER:
|
||||
X: 20
|
||||
Y: 210
|
||||
Width: 245
|
||||
Height: PARENT_BOTTOM - 270
|
||||
Children:
|
||||
Label@REPLAYBROWSER_LABEL_TITLE:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Text: Choose Replay
|
||||
Align: Center
|
||||
Font: Bold
|
||||
ScrollPanel@REPLAY_LIST:
|
||||
X: 0
|
||||
Y: 30
|
||||
Width: PARENT_RIGHT
|
||||
Height: PARENT_BOTTOM - 25
|
||||
CollapseHiddenChildren: True
|
||||
Children:
|
||||
Label@TITLE:
|
||||
X: 10
|
||||
Width: PARENT_RIGHT-20
|
||||
ScrollItem@REPLAY_TEMPLATE:
|
||||
Width: PARENT_RIGHT-27
|
||||
Height: 25
|
||||
Background@MAP_BG:
|
||||
X: 2
|
||||
Visible: false
|
||||
Children:
|
||||
Label@TITLE:
|
||||
X: 10
|
||||
Width: PARENT_RIGHT-20
|
||||
Height: 25
|
||||
Container@MAP_BG_CONTAINER:
|
||||
X: PARENT_RIGHT-WIDTH-20
|
||||
Y: 50
|
||||
Y: 20
|
||||
Width: 194
|
||||
Height: 194
|
||||
Background: dialog3
|
||||
Children:
|
||||
MapPreview@MAP_PREVIEW:
|
||||
X: 1
|
||||
Y: 1
|
||||
Width: 192
|
||||
Height: 192
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
Label@MAP_BG_TITLE:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Text: Preview
|
||||
Align: Center
|
||||
Font: Bold
|
||||
Background@MAP_BG:
|
||||
Y: 30
|
||||
Width: 194
|
||||
Height: 194
|
||||
Background: dialog3
|
||||
Children:
|
||||
MapPreview@MAP_PREVIEW:
|
||||
X: 1
|
||||
Y: 1
|
||||
Width: 192
|
||||
Height: 192
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
Container@REPLAY_INFO:
|
||||
X: PARENT_RIGHT-WIDTH - 20
|
||||
Y: 50
|
||||
|
||||
Reference in New Issue
Block a user