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

This commit is contained in:
Ivaylo Draganov
2021-09-24 17:10:51 +03:00
committed by reaperrr
parent d14ba6b04d
commit 0261dcaa7a
2 changed files with 39 additions and 34 deletions

View File

@@ -3,7 +3,7 @@ Container@MISSIONBROWSER_PANEL:
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 714
Height: 420
Height: 435
Children:
Label@MISSIONBROWSER_TITLE:
Y: 0 - 22
@@ -13,15 +13,15 @@ Container@MISSIONBROWSER_PANEL:
Contrast: true
Font: BigBold
Background@BG:
Width: 714
Height: 420
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Background: panel-black
Children:
ScrollPanel@MISSION_LIST:
X: 15
Y: 15
Width: 311
Height: 390
Height: PARENT_BOTTOM - 30
Children:
ScrollItem@HEADER:
Width: PARENT_RIGHT - 27
@@ -51,7 +51,7 @@ Container@MISSIONBROWSER_PANEL:
X: 337
Y: 15
Width: 362
Height: 392
Height: PARENT_BOTTOM - 30
Children:
Background@MISSION_BG:
Width: PARENT_RIGHT
@@ -69,7 +69,7 @@ Container@MISSIONBROWSER_PANEL:
ScrollPanel@MISSION_DESCRIPTION_PANEL:
Y: 213
Width: PARENT_RIGHT
Height: 142
Height: 157
TopBottomSpacing: 5
Children:
Label@MISSION_DESCRIPTION:
@@ -78,32 +78,32 @@ Container@MISSIONBROWSER_PANEL:
VAlign: Top
Font: Small
Label@DIFFICULTY_DESC:
Y: 365
Y: PARENT_BOTTOM - HEIGHT
Width: 56
Height: 25
Text: Difficulty:
Align: Right
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: 61
Y: 365
Y: PARENT_BOTTOM - HEIGHT
Width: 120
Height: 25
Font: Regular
Label@GAMESPEED_DESC:
X: PARENT_RIGHT - WIDTH - 125
Y: 365
Y: PARENT_BOTTOM - HEIGHT
Width: 120
Height: 25
Text: Speed:
Align: Right
DropDownButton@GAMESPEED_DROPDOWNBUTTON:
X: PARENT_RIGHT - WIDTH
Y: 365
Y: PARENT_BOTTOM - HEIGHT
Width: 120
Height: 25
Font: Regular
Button@BACK_BUTTON:
Y: 419
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: Back
@@ -111,46 +111,51 @@ Container@MISSIONBROWSER_PANEL:
Key: escape
Button@START_BRIEFING_VIDEO_BUTTON:
X: PARENT_RIGHT - 290
Y: 419
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: Watch Briefing
Font: Bold
Button@STOP_BRIEFING_VIDEO_BUTTON:
X: PARENT_RIGHT - 290
Y: 419
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: Stop Briefing
Font: Bold
Button@START_INFO_VIDEO_BUTTON:
X: PARENT_RIGHT - 440
Y: 419
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: Watch Info Video
Font: Bold
Button@STOP_INFO_VIDEO_BUTTON:
X: PARENT_RIGHT - 440
Y: 419
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: Stop Info Video
Font: Bold
Button@STARTGAME_BUTTON:
X: PARENT_RIGHT - 140
Y: 419
Y: PARENT_BOTTOM - 1
Width: 140
Height: 35
Text: Play
Font: Bold
Container@MISSION_BIN:
Background@MISSION_BIN:
X: 15
Y: 15
Width: 686
Height: 405
Background: panel-black
Children:
VideoPlayer@MISSION_VIDEO:
X: 1
Y: 1
Width: 712
Height: 418
Width: 684
Height: 402
TooltipContainer@TOOLTIP_CONTAINER:
Background@FULLSCREEN_PLAYER:

View File

@@ -2,8 +2,8 @@ Background@MISSIONBROWSER_PANEL:
Logic: MissionBrowserLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 682
Height: 487
Width: 700
Height: 500
Children:
Label@MISSIONBROWSER_TITLE:
Y: 21
@@ -15,8 +15,8 @@ Background@MISSIONBROWSER_PANEL:
ScrollPanel@MISSION_LIST:
X: 20
Y: 50
Width: 270
Height: 377
Width: 288
Height: PARENT_BOTTOM - 110
Children:
ScrollItem@HEADER:
BaseName: scrollheader
@@ -43,10 +43,10 @@ Background@MISSIONBROWSER_PANEL:
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Container@MISSION_INFO:
X: 300
X: 318
Y: 50
Width: 362
Height: 363
Height: PARENT_BOTTOM - 110
Children:
Background@MISSION_BG:
Width: PARENT_RIGHT
@@ -64,7 +64,7 @@ Background@MISSIONBROWSER_PANEL:
ScrollPanel@MISSION_DESCRIPTION_PANEL:
Y: 212
Width: PARENT_RIGHT
Height: 130
Height: 143
TopBottomSpacing: 5
Children:
Label@MISSION_DESCRIPTION:
@@ -73,27 +73,27 @@ Background@MISSIONBROWSER_PANEL:
VAlign: Top
Font: Small
Label@DIFFICULTY_DESC:
Y: 352
Y: PARENT_BOTTOM - HEIGHT
Width: 56
Height: 25
Text: Difficulty:
Align: Right
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: 61
Y: 352
Y: PARENT_BOTTOM - HEIGHT
Width: 135
Height: 25
Font: Regular
Label@GAMESPEED_DESC:
X: PARENT_RIGHT - WIDTH - 115
Y: 352
Y: PARENT_BOTTOM - HEIGHT
Width: 120
Height: 25
Text: Speed:
Align: Right
DropDownButton@GAMESPEED_DROPDOWNBUTTON:
X: PARENT_RIGHT - WIDTH
Y: 352
Y: PARENT_BOTTOM - HEIGHT
Width: 110
Height: 25
Font: Regular
@@ -143,15 +143,15 @@ Background@MISSIONBROWSER_PANEL:
Background@MISSION_BIN:
X: 20
Y: 50
Width: 642
Height: 377
Width: PARENT_RIGHT - 40
Height: PARENT_BOTTOM - 110
Background: dialog3
Children:
VideoPlayer@MISSION_VIDEO:
X: 1
Y: 1
Width: 640
Height: 375
Width: PARENT_RIGHT - 2
Height: PARENT_BOTTOM - 2
TooltipContainer@TOOLTIP_CONTAINER:
Background@FULLSCREEN_PLAYER: