Add yaml-defined FMV playback to GUI elements

This commit is contained in:
Oliver Brakmann
2014-12-05 00:31:32 +01:00
parent 3bb3eebeb9
commit 04bd4627d4
5 changed files with 197 additions and 68 deletions

View File

@@ -21,7 +21,7 @@ Container@MISSIONBROWSER_PANEL:
X: 15
Y: 15
Width: 239
Height: 347
Height: 307
Children:
ScrollItem@HEADER:
Width: PARENT_RIGHT-27
@@ -74,6 +74,13 @@ Container@MISSIONBROWSER_PANEL:
Width: PARENT_RIGHT - 32
VAlign: Top
Font: Small
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: 15
Y: 337
Width: 239
Height: 25
Text: Difficulty
Font: Regular
Button@BACK_BUTTON:
Y: 376
Width: 140
@@ -81,20 +88,34 @@ Container@MISSIONBROWSER_PANEL:
Text: Back
Font: Bold
Key: escape
Button@START_VIDEO_BUTTON:
Button@START_BRIEFING_VIDEO_BUTTON:
X: PARENT_RIGHT - 290
Y: 376
Width: 140
Height: 35
Text: View Briefing
Text: Watch Briefing
Font: Bold
Button@STOP_VIDEO_BUTTON:
Button@STOP_BRIEFING_VIDEO_BUTTON:
X: PARENT_RIGHT - 290
Y: 376
Width: 140
Height: 35
Text: Stop Briefing
Font: Bold
Button@START_INFO_VIDEO_BUTTON:
X: PARENT_RIGHT - 440
Y: 376
Width: 140
Height: 35
Text: Watch Info Video
Font: Bold
Button@STOP_INFO_VIDEO_BUTTON:
X: PARENT_RIGHT - 440
Y: 376
Width: 140
Height: 35
Text: Stop Info Video
Font: Bold
Button@STARTGAME_BUTTON:
X: PARENT_RIGHT - 140
Y: 376
@@ -102,13 +123,6 @@ Container@MISSIONBROWSER_PANEL:
Height: 35
Text: Play
Font: Bold
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: PARENT_RIGHT - 290 - 150
Y: 376
Width: 140
Height: 35
Text: Difficulty
Font: Bold
Container@MISSION_BIN:
Children:
VqaPlayer@MISSION_VIDEO:
@@ -116,3 +130,14 @@ Container@MISSIONBROWSER_PANEL:
Y: 1
Width: 640
Height: 375
Background@FULLSCREEN_PLAYER:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Background: panel-allblack
Visible: False
Children:
VqaPlayer@PLAYER:
X: 0
Y: 0
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM

View File

@@ -16,7 +16,7 @@ Background@MISSIONBROWSER_PANEL:
X: 20
Y: 50
Width: 270
Height: 377
Height: 332
Children:
ScrollItem@HEADER:
BaseName: scrollheader
@@ -69,20 +69,34 @@ Background@MISSIONBROWSER_PANEL:
Width: PARENT_RIGHT - 32
VAlign: Top
Font: Small
Button@START_VIDEO_BUTTON:
Button@START_BRIEFING_VIDEO_BUTTON:
X: 20
Y: PARENT_BOTTOM - 45
Width: 120
Width: 130
Height: 25
Text: Play Briefing
Text: Watch Briefing
Font: Bold
Button@STOP_VIDEO_BUTTON:
Button@STOP_BRIEFING_VIDEO_BUTTON:
X: 20
Y: PARENT_BOTTOM - 45
Width: 120
Width: 130
Height: 25
Text: Stop Briefing
Font: Bold
Button@START_INFO_VIDEO_BUTTON:
X: 160
Y: PARENT_BOTTOM - 45
Width: 130
Height: 25
Text: Watch Info Video
Font: Bold
Button@STOP_INFO_VIDEO_BUTTON:
X: 160
Y: PARENT_BOTTOM - 45
Width: 130
Height: 25
Text: Stop Info Video
Font: Bold
Button@STARTGAME_BUTTON:
X: PARENT_RIGHT - 140 - 130
Y: PARENT_BOTTOM - 45
@@ -99,9 +113,9 @@ Background@MISSIONBROWSER_PANEL:
Font: Bold
Key: escape
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: PARENT_RIGHT - 140 - 130 - 150
Y: PARENT_BOTTOM - 45
Width: 140
X: 20
Y: 427 - HEIGHT
Width: 270
Height: 25
Text: Difficulty
Font: Bold
@@ -117,3 +131,14 @@ Background@MISSIONBROWSER_PANEL:
Y: 1
Width: 640
Height: 375
Background@FULLSCREEN_PLAYER:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Background: dialog5
Visible: False
Children:
VqaPlayer@PLAYER:
X: 0
Y: 0
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM