From f55573d37c1f89f6515d3243d9df53e6f1de3502 Mon Sep 17 00:00:00 2001 From: penev92 Date: Sat, 9 May 2015 23:17:34 +0300 Subject: [PATCH] Give D2k its own mission browser --- mods/d2k/chrome/missionbrowser.yaml | 146 ++++++++++++++++++++++++++++ mods/d2k/mod.yaml | 2 +- 2 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 mods/d2k/chrome/missionbrowser.yaml diff --git a/mods/d2k/chrome/missionbrowser.yaml b/mods/d2k/chrome/missionbrowser.yaml new file mode 100644 index 0000000000..290406cc5a --- /dev/null +++ b/mods/d2k/chrome/missionbrowser.yaml @@ -0,0 +1,146 @@ +Background@MISSIONBROWSER_PANEL: + Logic: MissionBrowserLogic + X: (WINDOW_RIGHT - WIDTH)/2 + Y: (WINDOW_BOTTOM - HEIGHT)/2 + Width: 960 + Height: 690 + Children: + Label@MISSIONBROWSER_TITLE: + Y: 20 + Width: PARENT_RIGHT + Height: 25 + Text: Missions + Align: Center + Font: Bold + ScrollPanel@MISSION_LIST: + X: 20 + Y: 50 + Width: 270 + Height: 542 + Children: + ScrollItem@HEADER: + BaseName: scrollheader + Width: PARENT_RIGHT-27 + Height: 13 + X: 2 + Visible: false + Children: + Label@LABEL: + Font: TinyBold + Width: PARENT_RIGHT + Height: 10 + Align: Center + ScrollItem@TEMPLATE: + Width: PARENT_RIGHT-27 + Height: 25 + X: 2 + Children: + Label@TITLE: + X: 10 + Width: PARENT_RIGHT-20 + Height: 25 + Container@MISSION_INFO: + X: 300 + Y: 50 + Width: 642 + Height: 800 + Children: + Background@MISSION_BG: + Width: PARENT_RIGHT + Height: 402 + Background: dialog3 + Children: + MapPreview@MISSION_PREVIEW: + X: 1 + Y: 1 + Width: PARENT_RIGHT-2 + Height: PARENT_BOTTOM-2 + IgnoreMouseOver: True + IgnoreMouseInput: True + ShowSpawnPoints: False + ScrollPanel@MISSION_DESCRIPTION_PANEL: + Y: 412 + Width: PARENT_RIGHT + Height: 170 + Children: + Label@MISSION_DESCRIPTION: + X: 4 + Y: 1 + Width: PARENT_RIGHT - 32 + VAlign: Top + Font: Small + Button@START_BRIEFING_VIDEO_BUTTON: + X: 20 + Y: PARENT_BOTTOM - 45 + Width: 130 + Height: 25 + Text: Watch Briefing + Font: Bold + Button@STOP_BRIEFING_VIDEO_BUTTON: + X: 20 + Y: PARENT_BOTTOM - 45 + 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 + Width: 120 + Height: 25 + Text: Play + Font: Bold + Button@BACK_BUTTON: + X: PARENT_RIGHT - 140 + Y: PARENT_BOTTOM - 45 + Width: 120 + Height: 25 + Text: Back + Font: Bold + Key: escape + DropDownButton@DIFFICULTY_DROPDOWNBUTTON: + X: 20 + Y: 632 - HEIGHT + Width: 270 + Height: 25 + Text: Difficulty + Font: Bold + Background@MISSION_BIN: + X: 300 + Y: 50 + Width: 642 + Height: 402 + Background: dialog3 + Children: + VqaPlayer@MISSION_VIDEO: + X: 1 + Y: 1 + Width: 640 + Height: 400 + AspectRatio: 1 + DrawOverlay: False +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 diff --git a/mods/d2k/mod.yaml b/mods/d2k/mod.yaml index 3d55f46541..bc39f11ce9 100644 --- a/mods/d2k/mod.yaml +++ b/mods/d2k/mod.yaml @@ -98,7 +98,7 @@ ChromeLayout: ./mods/ra/chrome/musicplayer.yaml ./mods/d2k/chrome/tooltips.yaml ./mods/ra/chrome/assetbrowser.yaml - ./mods/ra/chrome/missionbrowser.yaml + ./mods/d2k/chrome/missionbrowser.yaml ./mods/ra/chrome/confirmation-dialogs.yaml ./mods/ra/chrome/editor.yaml