Rename modchooser to modcontent.
This commit is contained in:
BIN
mods/modcontent/chrome.png
Normal file
BIN
mods/modcontent/chrome.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
183
mods/modcontent/chrome.yaml
Normal file
183
mods/modcontent/chrome.yaml
Normal file
@@ -0,0 +1,183 @@
|
||||
panel-header: chrome.png
|
||||
background: 3,515,58,58
|
||||
border-r: 61,515,3,58
|
||||
border-l: 0,515,3,58
|
||||
border-b: 3,573,58,3
|
||||
border-t: 3,512,58,3
|
||||
corner-tl: 0,512,3,3
|
||||
corner-tr: 61,512,3,3
|
||||
corner-bl: 0,573,3,3
|
||||
corner-br: 61,573,3,3
|
||||
|
||||
panel-bg: chrome.png
|
||||
background: 67,515,58,58
|
||||
border-r: 125,515,3,58
|
||||
border-l: 64,515,3,58
|
||||
border-b: 67,573,58,3
|
||||
border-t: 67,512,58,3
|
||||
corner-tl: 64,512,3,3
|
||||
corner-tr: 125,512,3,3
|
||||
corner-bl: 64,573,3,3
|
||||
corner-br: 125,573,3,3
|
||||
|
||||
panel-thinborder: chrome.png
|
||||
background: 3,515,58,58
|
||||
border-r: 61,515,2,58
|
||||
border-l: 1,515,2,58
|
||||
border-b: 3,573,58,2
|
||||
border-t: 3,513,58,2
|
||||
corner-tl: 1,513,2,2
|
||||
corner-tr: 61,513,2,2
|
||||
corner-bl: 1,573,2,2
|
||||
corner-br: 61,573,2,2
|
||||
|
||||
panel-thinborder-light: chrome.png
|
||||
background: 643,515,58,58
|
||||
border-r: 701,515,2,58
|
||||
border-l: 641,515,2,58
|
||||
border-b: 643,573,58,2
|
||||
border-t: 643,513,58,2
|
||||
corner-tl: 641,513,2,2
|
||||
corner-tr: 701,513,2,2
|
||||
corner-bl: 641,573,2,2
|
||||
corner-br: 701,573,2,2
|
||||
|
||||
button: chrome.png
|
||||
background: 138,522,44,44
|
||||
border-r: 182,522,10,44
|
||||
border-l: 128,522,10,44
|
||||
border-b: 138,566,44,10
|
||||
border-t: 138,512,44,10
|
||||
corner-tl: 128,512,10,10
|
||||
corner-tr: 182,512,10,10
|
||||
corner-bl: 128,566,10,10
|
||||
corner-br: 182,566,10,10
|
||||
|
||||
button-hover: chrome.png
|
||||
background: 202,522,44,44
|
||||
border-r: 246,522,10,44
|
||||
border-l: 192,522,10,44
|
||||
border-b: 202,566,44,10
|
||||
border-t: 202,512,44,10
|
||||
corner-tl: 192,512,10,10
|
||||
corner-tr: 246,512,10,10
|
||||
corner-bl: 192,566,10,10
|
||||
corner-br: 246,566,10,10
|
||||
|
||||
button-disabled: chrome.png
|
||||
Inherits: button
|
||||
|
||||
button-pressed: chrome.png
|
||||
background: 330,522,44,44
|
||||
border-r: 374,522,10,44
|
||||
border-l: 320,522,10,44
|
||||
border-b: 330,566,44,10
|
||||
border-t: 330,512,44,10
|
||||
corner-tl: 320,512,10,10
|
||||
corner-tr: 374,512,10,10
|
||||
corner-bl: 320,566,10,10
|
||||
corner-br: 374,566,10,10
|
||||
|
||||
button-highlighted: chrome.png
|
||||
background: 266,522,44,44
|
||||
border-r: 310,522,10,44
|
||||
border-l: 256,522,10,44
|
||||
border-b: 266,566,44,10
|
||||
border-t: 266,512,44,10
|
||||
corner-tl: 256,512,10,10
|
||||
corner-tr: 310,512,10,10
|
||||
corner-bl: 256,566,10,10
|
||||
corner-br: 310,566,10,10
|
||||
|
||||
button-highlighted-hover: chrome.png
|
||||
Inherits: button-pressed
|
||||
|
||||
button-highlighted-pressed: chrome.png
|
||||
Inherits: button-pressed
|
||||
|
||||
button-highlighted-disabled: chrome.png
|
||||
Inherits: button-highlighted
|
||||
|
||||
button-highlighted-thin: chrome.png
|
||||
background: 522,522,44,44
|
||||
border-r: 566,522,10,44
|
||||
border-l: 512,522,10,44
|
||||
border-b: 522,566,44,10
|
||||
border-t: 522,512,44,10
|
||||
corner-tl: 512,512,10,10
|
||||
corner-tr: 566,512,10,10
|
||||
corner-bl: 512,566,10,10
|
||||
corner-br: 566,566,10,10
|
||||
|
||||
button-highlighted-thin-hover: chrome.png
|
||||
Inherits: button-highlighted-thin-pressed
|
||||
|
||||
button-highlighted-thin-pressed: chrome.png
|
||||
background: 586,522,44,44
|
||||
border-r: 630,522,10,44
|
||||
border-l: 576,522,10,44
|
||||
border-b: 586,566,44,10
|
||||
border-t: 586,512,44,10
|
||||
corner-tl: 576,512,10,10
|
||||
corner-tr: 630,512,10,10
|
||||
corner-bl: 576,566,10,10
|
||||
corner-br: 630,566,10,10
|
||||
|
||||
button-highlighted-thin-disabled: chrome.png
|
||||
Inherits: button-highlighted-thin
|
||||
|
||||
|
||||
progressbar-bg: chrome.png
|
||||
background: 453,565,56,6
|
||||
border-r: 507,565,5,6
|
||||
border-l: 448,565,5,6
|
||||
border-b: 453,571,54,5
|
||||
border-t: 453,560,54,5
|
||||
corner-tl: 448,560,5,5
|
||||
corner-tr: 507,560,5,5
|
||||
corner-bl: 448,571,5,5
|
||||
corner-br: 507,571,5,5
|
||||
|
||||
progressbar-thumb: chrome.png
|
||||
background: 453,549,56,6
|
||||
border-r: 507,549,5,6
|
||||
border-l: 448,549,5,6
|
||||
border-b: 453,555,54,5
|
||||
border-t: 453,544,54,5
|
||||
corner-tl: 448,544,5,5
|
||||
corner-tr: 507,544,5,5
|
||||
corner-bl: 448,555,5,5
|
||||
corner-br: 507,555,5,5
|
||||
|
||||
panel-rule: chrome.png
|
||||
border-t: 64,512,64,2
|
||||
|
||||
background: chrome.png
|
||||
background:0,0,1024,480
|
||||
|
||||
modcontent: chrome.png
|
||||
logo: 0,576,280,128
|
||||
leftarrow:384,512,20,64
|
||||
rightarrow:404,512,20,64
|
||||
cdicon: 448,512,20,20
|
||||
|
||||
scrollpanel-bg: chrome.png
|
||||
Inherits: panel-thinborder
|
||||
|
||||
scrollpanel-button: chrome.png
|
||||
Inherits: panel-thinborder
|
||||
|
||||
scrollpanel-button-hover: chrome.png
|
||||
Inherits: panel-thinborder-light
|
||||
|
||||
scrollpanel-button-disabled: chrome.png
|
||||
Inherits: panel-thinborder
|
||||
|
||||
scrollpanel-button-pressed: chrome.png
|
||||
Inherits: panel-thinborder-light
|
||||
|
||||
scrollbar: chrome.png
|
||||
down_arrow: 480,512,16,16
|
||||
down_pressed: 480,512,16,16
|
||||
up_arrow: 480,528,16,16
|
||||
up_pressed: 480,528,16,16
|
||||
361
mods/modcontent/content.yaml
Normal file
361
mods/modcontent/content.yaml
Normal file
@@ -0,0 +1,361 @@
|
||||
Background@CONTENT_PANEL:
|
||||
Logic: ModContentLogic
|
||||
X: (WINDOW_RIGHT - WIDTH) / 2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT) / 2
|
||||
Width: 500
|
||||
Height: 290
|
||||
Background: panel-bg
|
||||
Children:
|
||||
Background@RULE:
|
||||
X: 30
|
||||
Y: 50
|
||||
Width: 440
|
||||
Height: 150
|
||||
Background: panel-rule
|
||||
Label@TITLE:
|
||||
X: 0
|
||||
Y: 12
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Text: Manage Content
|
||||
Align: Center
|
||||
Font: MediumBold
|
||||
Label@HEADER_TEMPLATE:
|
||||
Y: 65
|
||||
Width: PARENT_RIGHT
|
||||
Height: 16
|
||||
Align: Center
|
||||
ScrollPanel@PACKAGES:
|
||||
X: 30
|
||||
Y: 84
|
||||
Width: PARENT_RIGHT - 60
|
||||
Height: 137
|
||||
TopBottomSpacing: 4
|
||||
ItemSpacing: 2
|
||||
BorderWidth: 2
|
||||
Children:
|
||||
Container@PACKAGE_TEMPLATE:
|
||||
X: 6
|
||||
Width: PARENT_RIGHT - 16
|
||||
Height: 23
|
||||
Children:
|
||||
Label@TITLE:
|
||||
Width: 275
|
||||
Height: 23
|
||||
Label@REQUIRED:
|
||||
X: 185
|
||||
Y: 0-2
|
||||
Width: 90
|
||||
Height: 23
|
||||
Align: Center
|
||||
Font: Bold
|
||||
TextColor: CC0000
|
||||
Text: Required
|
||||
Image@DISC:
|
||||
X: 275
|
||||
Y: 1
|
||||
Width: 20
|
||||
Height: 20
|
||||
ImageCollection: modcontent
|
||||
ImageName: cdicon
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipTemplate: DISC_TOOLTIP
|
||||
Button@DOWNLOAD:
|
||||
X: 304
|
||||
Y: 0
|
||||
Width: 100
|
||||
Height: 23
|
||||
Background: button-highlighted-thin
|
||||
Text: Download
|
||||
Label@INSTALLED:
|
||||
X: 304
|
||||
Y: 0-2
|
||||
Width: 100
|
||||
Height: 23
|
||||
Align: Center
|
||||
Font: Bold
|
||||
TextColor: 00CC00
|
||||
Text: Installed
|
||||
Label@REQUIRES_DISC:
|
||||
X: 304
|
||||
Y: 0-2
|
||||
Width: 100
|
||||
Height: 23
|
||||
Align: Center
|
||||
Font: Bold
|
||||
TextColor: DDDDDD
|
||||
Text: Requires Disc
|
||||
Button@CHECK_DISC_BUTTON:
|
||||
X: 30
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 200
|
||||
Height: 32
|
||||
Text: Detect Disc or Installation
|
||||
Font: Bold
|
||||
Button@BACK_BUTTON:
|
||||
X: PARENT_RIGHT - 140
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 110
|
||||
Height: 32
|
||||
Text: Back
|
||||
Font: Bold
|
||||
Key: escape
|
||||
TooltipContainer@TOOLTIP_CONTAINER:
|
||||
|
||||
Background@DISC_TOOLTIP:
|
||||
Logic: ModContentDiscTooltipLogic
|
||||
Background: panel-thinborder
|
||||
Height: 25
|
||||
Children:
|
||||
Label@DESCRIPTION:
|
||||
X: 5
|
||||
Height: 23
|
||||
Font: Bold
|
||||
Text: Content available from:
|
||||
Container@DISCS:
|
||||
Y: 15
|
||||
Width: PARENT_RIGHT - 10
|
||||
Height: 7 # used as bottom margin
|
||||
Children:
|
||||
Label@DISC_TEMPLATE:
|
||||
X: 20
|
||||
Height: 14
|
||||
Font: TinyBold
|
||||
|
||||
Container@PACKAGE_DOWNLOAD_PANEL:
|
||||
Logic: DownloadPackageLogic
|
||||
X: (WINDOW_RIGHT - WIDTH) / 2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT) / 2
|
||||
Width: 500
|
||||
Height: 177
|
||||
Children:
|
||||
Background:
|
||||
Width: PARENT_RIGHT
|
||||
Height: PARENT_BOTTOM
|
||||
Background: panel-bg
|
||||
Background@RULE:
|
||||
X: 30
|
||||
Y: 50
|
||||
Width: 440
|
||||
Height: 150
|
||||
Background: panel-rule
|
||||
Label@TITLE:
|
||||
X: 0
|
||||
Y: 12
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Align: Center
|
||||
Font: MediumBold
|
||||
ProgressBar@PROGRESS_BAR:
|
||||
X: 30
|
||||
Y: 64
|
||||
Width: PARENT_RIGHT - 60
|
||||
Height: 16
|
||||
BarMargin: 0, 0
|
||||
Label@STATUS_LABEL:
|
||||
X: 30
|
||||
Y: 85
|
||||
Width: PARENT_RIGHT - 60
|
||||
Height: 25
|
||||
Align: Left
|
||||
Button@RETRY_BUTTON:
|
||||
X: 30
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 120
|
||||
Height: 32
|
||||
Visible: false
|
||||
Text: Retry
|
||||
Font: Bold
|
||||
Key: return
|
||||
Button@CANCEL_BUTTON:
|
||||
X: PARENT_RIGHT - 30 - WIDTH
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 110
|
||||
Height: 32
|
||||
Text: Cancel
|
||||
Font: Bold
|
||||
Key: escape
|
||||
|
||||
Background@DISC_INSTALL_PANEL:
|
||||
Logic: InstallFromDiscLogic
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
||||
Width: 500
|
||||
Height: 177
|
||||
Background: panel-bg
|
||||
Children:
|
||||
Background@RULE:
|
||||
X: 30
|
||||
Y: 50
|
||||
Width: 440
|
||||
Height:150
|
||||
Background: panel-rule
|
||||
Label@TITLE:
|
||||
Y: 12
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Align: Center
|
||||
Font: MediumBold
|
||||
Container@PROGRESS:
|
||||
Width: PARENT_RIGHT
|
||||
Height: PARENT_BOTTOM
|
||||
Visible: false
|
||||
Children:
|
||||
ProgressBar@PROGRESS_BAR:
|
||||
X: 30
|
||||
Y: 60
|
||||
Width: PARENT_RIGHT - 60
|
||||
Height: 16
|
||||
BarMargin: 0, 0
|
||||
Label@PROGRESS_MESSAGE:
|
||||
X: 30
|
||||
Y: 80
|
||||
Width: PARENT_RIGHT - 60
|
||||
Height: 25
|
||||
Align: Left
|
||||
Container@MESSAGE:
|
||||
Width: PARENT_RIGHT
|
||||
Height: PARENT_BOTTOM
|
||||
Height: 157
|
||||
Visible: false
|
||||
Children:
|
||||
Label@MESSAGE_MESSAGE:
|
||||
Y: 65
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Align: Center
|
||||
Container@LIST:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 338
|
||||
Visible: false
|
||||
Children:
|
||||
Label@LIST_MESSAGE:
|
||||
Y: 65
|
||||
Width: PARENT_RIGHT
|
||||
Height: 16
|
||||
Align: Center
|
||||
ScrollPanel@LIST_PANEL:
|
||||
X: 30
|
||||
Y: 99
|
||||
Width: PARENT_RIGHT - 60
|
||||
Height: 170
|
||||
TopBottomSpacing: 4
|
||||
ItemSpacing: 2
|
||||
BorderWidth: 2
|
||||
Children:
|
||||
Container@LIST_HEADER_TEMPLATE:
|
||||
X: 6
|
||||
Width: PARENT_RIGHT - 12 - 24
|
||||
Height: 14
|
||||
Children:
|
||||
Background@TOP_RULE:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 1
|
||||
Background: panel-rule
|
||||
Label@LABEL:
|
||||
Y: 3
|
||||
Width: PARENT_RIGHT
|
||||
Height: 10
|
||||
Font: TinyBold
|
||||
Align: Center
|
||||
Background@BOTTOM_RULE:
|
||||
Y: 16
|
||||
Width: PARENT_RIGHT
|
||||
Height: 1
|
||||
Background: panel-rule
|
||||
Label@LIST_TEMPLATE:
|
||||
X: 6
|
||||
Width: PARENT_RIGHT - 16
|
||||
Height: 23
|
||||
Button@PRIMARY_BUTTON:
|
||||
X: 30
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 110
|
||||
Height: 32
|
||||
Font: Bold
|
||||
Key: return
|
||||
Button@SECONDARY_BUTTON:
|
||||
X: PARENT_RIGHT - 140
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 110
|
||||
Height: 32
|
||||
Font: Bold
|
||||
Key: escape
|
||||
|
||||
Background@CONTENT_PROMPT_PANEL:
|
||||
Logic: ModContentPromptLogic
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
||||
Width: 500
|
||||
Height: 140
|
||||
Background: panel-bg
|
||||
Children:
|
||||
Background@RULE:
|
||||
X: 30
|
||||
Y: 50
|
||||
Width: 440
|
||||
Height: 150
|
||||
Background: panel-rule
|
||||
Label@TITLE:
|
||||
X: 0
|
||||
Y: 12
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Text: Install Content
|
||||
Align: Center
|
||||
Font: MediumBold
|
||||
Label@HEADER_TEMPLATE:
|
||||
Y: 65
|
||||
Width: PARENT_RIGHT
|
||||
Height: 16
|
||||
Align: Center
|
||||
Button@ADVANCED_BUTTON:
|
||||
X: 30
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 140
|
||||
Height: 32
|
||||
Text: Advanced Install
|
||||
Font: Bold
|
||||
Button@QUICK_BUTTON:
|
||||
X: 185
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 110
|
||||
Height: 32
|
||||
Text: Quick Install
|
||||
Font: Bold
|
||||
Button@QUIT_BUTTON:
|
||||
X: PARENT_RIGHT - WIDTH - 30
|
||||
Y: PARENT_BOTTOM - 52
|
||||
Background: button-highlighted
|
||||
Width: 110
|
||||
Height: 32
|
||||
Text: Quit
|
||||
Font: Bold
|
||||
Key: escape
|
||||
|
||||
Background@MODCONTENT_BACKGROUND:
|
||||
Background: background
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
|
||||
Background@BUTTON_TOOLTIP:
|
||||
Logic: ButtonTooltipLogic
|
||||
Background: panel-thinborder
|
||||
Height: 25
|
||||
Children:
|
||||
Label@LABEL:
|
||||
X: 5
|
||||
Height: 23
|
||||
Font: Bold
|
||||
Label@HOTKEY:
|
||||
TextColor: FFFF00
|
||||
Height: 23
|
||||
Font: Bold
|
||||
BIN
mods/modcontent/cursor.pal
Normal file
BIN
mods/modcontent/cursor.pal
Normal file
Binary file not shown.
BIN
mods/modcontent/cursor.shp
Normal file
BIN
mods/modcontent/cursor.shp
Normal file
Binary file not shown.
9
mods/modcontent/cursors.yaml
Normal file
9
mods/modcontent/cursors.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
Palettes:
|
||||
cursor: cursor.pal
|
||||
|
||||
Cursors:
|
||||
cursor.shp: cursor
|
||||
default:
|
||||
Start:0
|
||||
X: -4
|
||||
Y: -7
|
||||
8
mods/modcontent/metrics.yaml
Normal file
8
mods/modcontent/metrics.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
# General dumping-ground for UI element sizes, etc.
|
||||
|
||||
Metrics:
|
||||
ButtonBaseLine: 2
|
||||
ButtonDepth: 0
|
||||
ButtonFont: Bold
|
||||
CheckboxPressedState: true
|
||||
ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
|
||||
58
mods/modcontent/mod.yaml
Normal file
58
mods/modcontent/mod.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
Metadata:
|
||||
Title: Mod Content Manager
|
||||
Version: {DEV_VERSION}
|
||||
Author: The OpenRA Developers
|
||||
Hidden: true
|
||||
|
||||
Packages:
|
||||
.
|
||||
./mods/modcontent: modcontent
|
||||
./mods/common: common
|
||||
|
||||
Cursors:
|
||||
modcontent|cursors.yaml
|
||||
|
||||
Chrome:
|
||||
modcontent|chrome.yaml
|
||||
|
||||
Assemblies:
|
||||
common|OpenRA.Mods.Common.dll
|
||||
|
||||
ChromeLayout:
|
||||
modcontent|content.yaml
|
||||
|
||||
Notifications:
|
||||
modcontent|notifications.yaml
|
||||
|
||||
LoadScreen: ModContentLoadScreen
|
||||
Image: ./mods/modcontent/chrome.png
|
||||
|
||||
ChromeMetrics:
|
||||
common|metrics.yaml
|
||||
modcontent|metrics.yaml
|
||||
|
||||
Fonts:
|
||||
Regular:
|
||||
Font: common|FreeSans.ttf
|
||||
Size:14
|
||||
Bold:
|
||||
Font: common|FreeSansBold.ttf
|
||||
Size:14
|
||||
BigBold:
|
||||
Font: common|FreeSansBold.ttf
|
||||
Size:24
|
||||
MediumBold:
|
||||
Font: common|FreeSansBold.ttf
|
||||
Size:18
|
||||
Tiny:
|
||||
Font: common|FreeSans.ttf
|
||||
Size:10
|
||||
TinyBold:
|
||||
Font: common|FreeSansBold.ttf
|
||||
Size:10
|
||||
|
||||
SoundFormats:
|
||||
|
||||
SpriteFormats: ShpTD
|
||||
|
||||
SpriteSequenceFormat: DefaultSpriteSequence
|
||||
5
mods/modcontent/notifications.yaml
Normal file
5
mods/modcontent/notifications.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
Sounds:
|
||||
Notifications:
|
||||
TabClick:
|
||||
ClickSound:
|
||||
ClickDisabledSound:
|
||||
Reference in New Issue
Block a user