Add a "Video Player" menu with basic impl; kill the music player widget.

This commit is contained in:
Paul Chote
2010-08-12 18:05:54 +12:00
parent 74500c369c
commit 2c1ab33893
10 changed files with 236 additions and 98 deletions

View File

@@ -1,17 +1,11 @@
Container@ROOT:
Children:
VqaPlayer:
Id:VIDEOPLAYER
X:WINDOW_RIGHT - 400
Y:WINDOW_BOTTOM - 250
Width:200
Height:200
Background@MAINMENU_BG:
Id:MAINMENU_BG
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:250
Height:250
Height:290
Delegate:MainMenuButtonsDelegate
Children:
Label@MAINMENU_LABEL_TITLE:
@@ -47,10 +41,18 @@ Container@ROOT:
Height:25
Text:Settings
Bold:True
Button@MAINMENU_BUTTON_VIDEOPLAYER:
Id:MAINMENU_BUTTON_VIDEOPLAYER
X:45
Y:190
Width:160
Height:25
Text:Video Player
Bold:True
Button@MAINMENU_BUTTON_QUIT:
Id:MAINMENU_BUTTON_QUIT
X:45
Y:190
Y:230
Width:160
Height:25
Text:Quit
@@ -86,43 +88,4 @@ Container@ROOT:
X:20
Y:205
Width:170
Height:40
Background@MUSIC_BG:
Id:MUSIC_BG
Delegate:MusicPlayerDelegate
X:WINDOW_RIGHT - 175
Y:WINDOW_BOTTOM - 95
Width: 160
Height: 55
Visible: true
Children:
Button@BUTTON_PLAY:
Id:BUTTON_PLAY
X:50
Y:15
Width:25
Height:25
Children:
Image@IMAGE_PLAY:
Id:IMAGE_PLAY
X:0
Y:0
Width:25
Height:25
ImageCollection:music
ImageName:play
Button@BUTTON_STOP:
Id:BUTTON_STOP
X:85
Y:15
Width:25
Height:25
Children:
Image@IMAGE_STOP:
Id:IMAGE_STOP
X:0
Y:0
Width:25
Height:25
ImageCollection:music
ImageName:stop
Height:40

View File

@@ -0,0 +1,78 @@
Container@ROOT:
Children:
Background@VIDEOPLAYER_MENU:
Id:VIDEOPLAYER_MENU
Delegate:VideoPlayerDelegate
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM- HEIGHT)/2
Width: 700
Height: 680
Visible: false
Children:
Label@VIDEOPLAYER_TITLE:
X:0
Y:20
Align:Center
Width:PARENT_RIGHT
Height:20
Text:Video Player
Bold:True
VqaPlayer:
Id:VIDEOPLAYER
X:30
Y:50
Width:640
Height:400
ListBox@VIDEO_LIST:
Id:VIDEO_LIST
X:20
Y:460
Width:480
Height:200
Children:
Label@VIDEO_TEMPLATE:
Id:VIDEO_TEMPLATE
Width:PARENT_RIGHT-28
Height:25
ClickThrough:false
X:2
Y:0
Visible:false
Button@BUTTON_PLAY:
Id:BUTTON_PLAY
X:590 - WIDTH
Y:460
Width:25
Height:25
Children:
Image@IMAGE_PLAY:
Id:IMAGE_PLAY
X:0
Y:0
Width:25
Height:25
ImageCollection:music
ImageName:play
Button@BUTTON_STOP:
Id:BUTTON_STOP
X:610
Y:460
Width:25
Height:25
Children:
Image@IMAGE_STOP:
Id:IMAGE_STOP
X:0
Y:0
Width:25
Height:25
ImageCollection:music
ImageName:stop
Button@BUTTON_CLOSE:
Id:BUTTON_CLOSE
X:PARENT_RIGHT - 180
Y:PARENT_BOTTOM - 45
Width:160
Height:25
Text:Close
Bold:True

View File

@@ -42,6 +42,7 @@ Assemblies:
ChromeLayout:
mods/cnc/chrome/ingame.yaml:
mods/cnc/chrome/mainmenu.yaml:
mods/cnc/chrome/videoplayer.yaml:
mods/cnc/chrome/settings.yaml:
mods/cnc/chrome/gamelobby.yaml:
mods/cnc/chrome/serverbrowser.yaml: