add support for replay viewer to cnc

This commit is contained in:
Chris Forbes
2010-11-15 20:03:06 +13:00
parent f990006587
commit e3925b752d
3 changed files with 105 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ Background@MAINMENU_BG:
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:250
Height:290
Height:330
Delegate:MainMenuButtonsDelegate
Children:
Background@MOTD_BG:
@@ -80,10 +80,18 @@ Background@MAINMENU_BG:
Height:25
Text:Music
Bold:True
Button@MAINMENU_BUTTON_REPLAY_VIEWER:
Id:MAINMENU_BUTTON_REPLAY_VIEWER
X:45
Y:230
Width:160
Height:25
Text: Replay Viewer
Bold: True
Button@MAINMENU_BUTTON_QUIT:
Id:MAINMENU_BUTTON_QUIT
X:45
Y:230
Y:270
Width:160
Height:25
Text:Quit

View File

@@ -0,0 +1,94 @@
Background@REPLAYBROWSER_BG:
Id:REPLAYBROWSER_BG
Delegate:ReplayBrowserDelegate
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:700
Height:410
Children:
Label@REPLAYBROWSER_LABEL_TITLE:
Id:REPLAYBROWSER_LABEL_TITLE
X:0
Y:20
Width:PARENT_RIGHT
Height:25
Text:Choose Replay
Align:Center
Bold:True
ListBox@REPLAY_LIST:
Id:REPLAY_LIST
X:20
Y:50
Width:390
Height:300
Children:
Label@REPLAY_TEMPLATE:
Id:REPLAY_TEMPLATE
Width:PARENT_RIGHT-28
Height:25
ClickThrough:false
X:2
Y:0
Visible:false
Container@REPLAY_INFO:
Id:REPLAY_INFO
X:0
Y:0
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Visible:false
Children:
MapPreview@MAP_PREVIEW:
Id:MAP_PREVIEW
X:PARENT_RIGHT-241
Y:30
Width:192
Height:192
Label@MAP_TITLE_LABEL:
Id:MAP_TITLE_LABEL
X:PARENT_RIGHT - 200 - WIDTH
Y:250
Align:Right
Width:70
Height:20
Text:Map:
Bold:True
Label@MAP_TITLE:
Id:MAP_TITLE
X:PARENT_RIGHT - 195
Y:250
Align:Left
Width:70
Height:20
Label@DURATION_LABEL:
Id:DURATION_LABEL
X:PARENT_RIGHT - 200 - WIDTH
Y:270
Align:Right
Width:70
Height:20
Text:Duration:
Bold:True
Label@DURATION:
Id:DURATION
X:PARENT_RIGHT - 195
Y:270
Align:Left
Width:70
Height:20
Button@WATCH_BUTTON:
Id:WATCH_BUTTON
X:PARENT_RIGHT - 140 - 130
Y:PARENT_BOTTOM - 45
Width:120
Height:25
Text:Watch
Bold:True
Button@CANCEL_BUTTON:
Id:CANCEL_BUTTON
X:PARENT_RIGHT - 140
Y:PARENT_BOTTOM - 45
Width:120
Height:25
Text:Cancel
Bold:True

View File

@@ -62,6 +62,7 @@ ChromeLayout:
mods/cnc/chrome/settings.yaml
mods/cnc/chrome/gamelobby.yaml
mods/cnc/chrome/serverbrowser.yaml
mods/cnc/chrome/replaybrowser.yaml
Weapons:
mods/cnc/weapons.yaml