Merge pull request #8065 from pchote/ingame-map-editor

Add the new map editor.
This commit is contained in:
Pavel Penev
2015-05-18 19:16:16 +03:00
61 changed files with 3315 additions and 140 deletions

385
mods/cnc/chrome/editor.yaml Normal file
View File

@@ -0,0 +1,385 @@
Container@NEW_MAP_BG:
Logic: NewMapLogic
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - HEIGHT)/2
Width: 300
Height: 125
Children:
Label@TITLE:
Text:New Map
Width: PARENT_RIGHT
Y: 0-25
Font: BigBold
Contrast: true
Align: Center
Background@bg:
Width: PARENT_RIGHT
Height: 90
Background: panel-black
Children:
Label@TILESET_LABEL:
X: 25
Y: 14
Width: 95
Height: 25
Align: Right
Text: Tileset:
DropDownButton@TILESET:
X: 125
Y: 15
Width: 160
Height: 25
Label@WIDTH_LABEL:
X: 25
Y: 49
Width: 95
Height: 25
Align: Right
Text: Width:
TextField@WIDTH:
X: 125
Y: 50
Width: 50
MaxLength: 3
Height: 25
Text: 128
Label@HEIGHT_LABEL:
X: 135
Y: 49
Width: 95
Height: 25
Align: Right
Text: Height:
TextField@HEIGHT:
X: 235
Y: 50
Width: 50
MaxLength: 3
Height: 25
Text: 128
Button@CANCEL_BUTTON:
Y: 89
Width: 140
Height: 35
Text: Cancel
Font: Bold
Key: escape
Button@CREATE_BUTTON:
X: PARENT_RIGHT - WIDTH
Y: 89
Width: 140
Height: 35
Text: Create
Font: Bold
Key: return
Background@SAVE_MAP_PANEL:
Logic: SaveMapLogic
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - HEIGHT)/2
Width: 345
Height: 264
Children:
Label@LABEL_TITLE:
Text: Save Map
Width: PARENT_RIGHT
Y: 0-25
Font: BigBold
Contrast: true
Align: Center
Background@SAVE_MAP_BACKGROUND:
Width: PARENT_RIGHT
Height: 230
Background: panel-black
Children:
Label@TITLE_LABEL:
X: 10
Y: 14
Width: 95
Height: 25
Align: Right
Text: Title:
TextField@TITLE:
X: 110
Y: 15
Width: 220
MaxLength: 50
Height: 25
Label@AUTHOR_LABEL:
X: 10
Y: 49
Width: 95
Height: 25
Align: Right
Text: Author:
TextField@AUTHOR:
X: 110
Y: 50
Width: 220
MaxLength: 50
Height: 25
Label@DESCRIPTION_LABEL:
X: 10
Y: 84
Width: 95
Height: 25
Align: Right
Text: Description:
TextField@DESCRIPTION:
X: 110
Y: 85
Width: 220
MaxLength: 50
Height: 25
Label@VISIBILITY_LABEL:
X: 10
Y: 119
Width: 95
Height: 25
Align: Right
Text: Visibility:
DropDownButton@VISIBILITY_DROPDOWN:
X: 110
Y: 120
Width: 220
Height: 25
Font: Regular
Label@DIRECTORY_LABEL:
X: 10
Y: 154
Width: 95
Height: 25
Align: Right
Text: Directory:
DropDownButton@DIRECTORY_DROPDOWN:
X: 110
Y: 155
Width: 220
Height: 25
Font: Regular
Label@FILENAME_LABEL:
X: 10
Y: 189
Width: 95
Height: 25
Align: Right
Text: Filename:
TextField@FILENAME:
X: 110
Y: 190
Width: 105
Height: 25
DropDownButton@TYPE_DROPDOWN:
X: 220
Y: 190
Width: 110
Height: 25
Font: Regular
Button@BACK_BUTTON:
Y: PARENT_BOTTOM - 35
Width: 140
Height: 35
Text: Cancel
Font: Bold
Key: escape
Button@SAVE_BUTTON:
X: PARENT_RIGHT - 140
Y: PARENT_BOTTOM - 35
Width: 140
Height: 35
Text: Save
Font: Bold
Container@EDITOR_ROOT:
Logic: LoadMapEditorLogic
Children:
Container@WORLD_ROOT:
Container@MENU_ROOT:
TooltipContainer@TOOLTIP_CONTAINER:
Container@EDITOR_WORLD_ROOT:
Logic: LoadIngamePerfLogic, MapEditorLogic
Children:
Container@PERF_ROOT:
ViewportController:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
EditorViewportController@MAP_EDITOR:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:
TerrainTemplatePreview@DRAG_TILE_PREVIEW:
Visible: false
Sprite@DRAG_LAYER_PREVIEW:
Visible: false
ActorPreview@DRAG_ACTOR_PREVIEW:
Visible: false
Background@RADAR_BG:
X: WINDOW_RIGHT-255
Y: 5
Width: 250
Height: 250
Background: panel-gray
Children:
Radar@INGAME_RADAR:
X: 1
Y: 1
Width: PARENT_RIGHT-2
Height: PARENT_BOTTOM-2
MenuButton@OPTIONS_BUTTON:
Logic: MenuButtonsChromeLogic
Key: escape
X: WINDOW_RIGHT-254-WIDTH
Y: 5
Width: 30
Height: 25
TooltipText: Menu
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image:
X: 7
Y: 5
ImageCollection: order-icons
ImageName: options
Container@TILE_WIDGETS:
Logic: TileSelectorLogic
X: WINDOW_RIGHT-255
Y: 278
Width: 250
Height: 324
ClickThrough: false
Children:
Container@TILES_BG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
DropDownButton@TILE_CATEGORY:
Width: PARENT_RIGHT
Height: 25
Font: Bold
ScrollPanel@TILETEMPLATE_LIST:
Y: 24
Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 24
ItemSpacing: 4
Children:
ScrollItem@TILEPREVIEW_TEMPLATE:
Visible: false
Width: PARENT_RIGHT - 35
TooltipContainer: TOOLTIP_CONTAINER
Children:
TerrainTemplatePreview@TILE_PREVIEW:
X: 4
Y: 4
Container@LAYER_WIDGETS:
Logic: LayerSelectorLogic
X: WINDOW_RIGHT-255
Y: 278
Width: 250
Height: 324
ClickThrough: false
Children:
Container@LAYERS_BG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
ScrollPanel@LAYERTEMPLATE_LIST:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
ItemSpacing: 4
Children:
ScrollItem@LAYERPREVIEW_TEMPLATE:
Visible: false
IgnoreChildMouseOver: true
TooltipContainer: TOOLTIP_CONTAINER
Children:
Sprite@LAYER_PREVIEW:
X: 4
Y: 4
Visible: false
Container@ACTOR_WIDGETS:
Logic: ActorSelectorLogic
X: WINDOW_RIGHT-255
Y: 278
Width: 250
Height: 324
ClickThrough: false
Children:
Container@ACTORS_BG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
DropDownButton@OWNERS_DROPDOWN:
Width: PARENT_RIGHT
Height: 25
Font: Bold
ScrollPanel@ACTORTEMPLATE_LIST:
Y: 24
Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 24
ItemSpacing: 4
Children:
ScrollItem@ACTORPREVIEW_TEMPLATE:
Visible: false
Width: PARENT_RIGHT - 35
TooltipContainer: TOOLTIP_CONTAINER
IgnoreChildMouseOver: true
Children:
ActorPreview@ACTOR_PREVIEW:
X: 4
Y: 4
Visible: true
Container@MAP_EDITOR_TAB_CONTAINER:
Logic: MapEditorTabsLogic
X: WINDOW_RIGHT-255
Y: 254
Width: 250
Height: 25
ClickThrough: false
Children:
Button@TILES_TAB:
Width: 81
Height: 25
Text: Tiles
Font: Bold
Button@OVERLAYS_TAB:
X: 80
Width: 90
Height: 25
Text: Overlays
Font: Bold
Button@ACTORS_TAB:
X: 169
Width: 81
Height: 25
Text: Actors
Font: Bold
Button@GRID_BUTTON:
X: WINDOW_RIGHT - 420
Y: 5
Width: 100
Height: 25
Text: Grid
Font: Bold
Key: f1
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: Toggle the terrain grid
TooltipContainer: TOOLTIP_CONTAINER
Label@ZOOM_LABEL:
X: WINDOW_RIGHT - 500 - 55
Y: 5
Width: 50
Height: 25
Text: Zoom:
Align: Right
Font: Bold
Contrast: true
DropDownButton@ZOOM_BUTTON:
X: WINDOW_RIGHT - 500
Y: 5
Width: 70
Height: 25
Font: Bold

View File

@@ -33,12 +33,24 @@ Container@INGAME_MENU:
Width: 140
Height: 35
Text: Abort Mission
Button@EXIT_EDITOR:
X: 0
Y: 0
Width: 140
Height: 35
Text: Exit Map Editor
Button@SURRENDER:
X: 150
Y: 0
Width: 140
Height: 35
Text: Surrender
Button@SAVE_MAP:
X: 150
Y: 0
Width: 140
Height: 35
Text: Save Map
Button@MUSIC:
X: 300
Y: 0

View File

@@ -165,14 +165,21 @@ Container@MENU_BACKGROUND:
Width: 140
Height: 35
Text: Music
Button@ASSETBROWSER_BUTTON:
Button@MAP_EDITOR_BUTTON:
X: 300
Y: 0
Width: 140
Height: 35
Text: Map Editor
Font: Bold
Button@ASSETBROWSER_BUTTON:
X: 450
Y: 0
Width: 140
Height: 35
Text: Asset Browser
Button@CREDITS_BUTTON:
X: 450
X: 600
Y: 0
Width: 140
Height: 35
@@ -184,6 +191,41 @@ Container@MENU_BACKGROUND:
Width: 140
Height: 35
Text: Back
Background@MAP_EDITOR_MENU:
Width: PARENT_RIGHT
Visible: False
Children:
Label@MAP_EDITOR_MENU_TITLE:
X: 0
Y: 0-30
Width: PARENT_RIGHT
Height: 20
Text: Map Editor
Align: Center
Font: Bold
Contrast: True
Button@NEW_MAP_BUTTON:
X: 0
Y: 0
Width: 140
Height: 35
Text: New Map
Font: Bold
Button@LOAD_MAP_BUTTON:
X: 150
Y: 0
Width: 140
Height: 35
Text: Load Map
Font: Bold
Button@BACK_BUTTON:
X: 300
Y: 0
Width: 140
Height: 35
Text: Back
Font: Bold
Key: escape
Container@NEWS_BG:
Children:
DropDownButton@NEWS_BUTTON:

View File

@@ -120,6 +120,7 @@ ChromeLayout:
./mods/cnc/chrome/tooltips.yaml
./mods/cnc/chrome/assetbrowser.yaml
./mods/cnc/chrome/missionbrowser.yaml
./mods/cnc/chrome/editor.yaml
Voices:
./mods/cnc/audio/voices.yaml

View File

@@ -1,17 +1,8 @@
World:
^BaseWorld:
Inherits: ^Palettes
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
ScreenMap:
ActorMap:
LoadWidgetAtGameStart:
ShellmapRoot: MENU_BACKGROUND
ScreenShaker:
BuildingInfluence:
BridgeLayer:
Bridges: bridge1, bridge2, bridge3, bridge4
TerrainGeometryOverlay:
ShroudRenderer:
ShroudVariants: typea, typeb, typec, typed
FogVariants: typea, typeb, typec, typed
@@ -30,18 +21,6 @@ World:
Name: Nod
Race: nod
Description: Brotherhood of Nod\nThe Brotherhood is a religious cult centered around their leader Kane\nand the alien substance Tiberium. They utilize stealth technology\nand guerilla tactics to defeat those who oppose them.
ProductionQueueFromSelection:
ProductionTabsWidget: PRODUCTION_TABS
DomainIndex:
SmudgeLayer@SCORCH:
Type: Scorch
Sequence: scorches
SmokePercentage: 50
SmudgeLayer@CRATER:
Type: Crater
Sequence: craters
ResourceLayer:
ResourceClaimLayer:
ResourceType@green-tib:
ResourceType: 1
Palette: staticterrain
@@ -66,8 +45,33 @@ World:
PipColor: Blue
AllowedTerrainTypes: Clear,Road
AllowUnderActors: true
LoadWidgetAtGameStart:
ShellmapRoot: MENU_BACKGROUND
World:
Inherits: ^BaseWorld
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
ScreenShaker:
NukePaletteEffect:
BuildingInfluence:
BridgeLayer:
Bridges: bridge1, bridge2, bridge3, bridge4
ProductionQueueFromSelection:
ProductionTabsWidget: PRODUCTION_TABS
DomainIndex:
SmudgeLayer@SCORCH:
Type: Scorch
Sequence: scorches
SmokePercentage: 50
SmudgeLayer@CRATER:
Type: Crater
Sequence: craters
ResourceLayer:
ResourceClaimLayer:
PathfinderDebugOverlay:
TerrainGeometryOverlay:
SpawnMapActors:
MPStartLocations:
CreateMPPlayers:
@@ -143,3 +147,7 @@ World:
PanelName: SKIRMISH_STATS
RadarPings:
EditorWorld:
Inherits: ^BaseWorld
EditorActorLayer:
EditorResourceLayer:

View File

@@ -53,6 +53,13 @@ Container@INGAME_MENU:
Height: 30
Text: Surrender
Font: Bold
Button@SAVE_MAP:
X: (PARENT_RIGHT - WIDTH)/2
Y: 180
Width: 140
Height: 30
Text: Save Map
Font: Bold
Button@ABORT_MISSION:
X: (PARENT_RIGHT - WIDTH)/2
Y: 220
@@ -60,3 +67,10 @@ Container@INGAME_MENU:
Height: 30
Text: Abort Mission
Font: Bold
Button@EXIT_EDITOR:
X: (PARENT_RIGHT - WIDTH)/2
Y: 220
Width: 140
Height: 30
Text: Exit Map Editor
Font: Bold

View File

@@ -127,16 +127,23 @@ Container@MAINMENU:
Height: 30
Text: Music
Font: Bold
Button@ASSETBROWSER_BUTTON:
Button@MAP_EDITOR_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 140
Width: 140
Height: 30
Text: Map Editor
Font: Bold
Button@ASSETBROWSER_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Width: 140
Height: 30
Text: Asset Browser
Font: Bold
Button@CREDITS_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Y: 220
Width: 140
Height: 30
Text: Credits
@@ -149,6 +156,40 @@ Container@MAINMENU:
Height: 30
Text: Back
Font: Bold
Background@MAP_EDITOR_MENU:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@MAP_EDITOR_MENU_TITLE:
X: 0
Y: 20
Width: 200
Height: 30
Text: Map Editor
Align: Center
Font: Bold
Button@NEW_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 60
Width: 140
Height: 30
Text: New Map
Font: Bold
Button@LOAD_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 100
Width: 140
Height: 30
Text: Load Map
Font: Bold
Button@BACK_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Key: escape
Y: 260
Width: 140
Height: 30
Text: Back
Font: Bold
Background@NEWS_BG:
X: (WINDOW_RIGHT - WIDTH)/2
Y: 35

View File

@@ -100,6 +100,7 @@ ChromeLayout:
./mods/ra/chrome/assetbrowser.yaml
./mods/ra/chrome/missionbrowser.yaml
./mods/ra/chrome/confirmation-dialogs.yaml
./mods/ra/chrome/editor.yaml
Weapons:
./mods/d2k/weapons.yaml

View File

@@ -76,4 +76,5 @@ sietch:
Power:
Amount: 0
ProvidesPrerequisite@buildingname:
-WithCrumbleOverlay:

View File

@@ -1,23 +1,8 @@
World:
^BaseWorld:
Inherits: ^Palettes
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
ScreenMap:
ActorMap:
LoadWidgetAtGameStart:
ScreenShaker:
BuildingInfluence:
ProductionQueueFromSelection:
ProductionPaletteWidget: PRODUCTION_PALETTE
WormManager:
CrateSpawner:
Minimum: 0
Maximum: 2
SpawnInterval: 60
WaterChance: 0
ValidGround: Sand, Dune, Rock
TerrainGeometryOverlay:
ShroudRenderer:
ShroudVariants: typea, typeb, typec, typed
FogVariants: typea, typeb, typec, typed
@@ -46,12 +31,6 @@ World:
Name: Corrino
Race: corrino
Selectable: false
DomainIndex:
PathfinderDebugOverlay:
BuildableTerrainLayer:
D2kResourceLayer:
TerrainGeometryOverlay:
ResourceClaimLayer:
ResourceType@Spice:
ResourceType: 1
Palette: d2k
@@ -64,6 +43,30 @@ World:
PipColor: green
AllowedTerrainTypes: Sand
AllowUnderActors: true
LoadWidgetAtGameStart:
World:
Inherits: ^BaseWorld
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
ScreenShaker:
BuildingInfluence:
ProductionQueueFromSelection:
ProductionPaletteWidget: PRODUCTION_PALETTE
WormManager:
CrateSpawner:
Minimum: 0
Maximum: 2
SpawnInterval: 60
WaterChance: 0
ValidGround: Sand, Dune, Rock
DomainIndex:
PathfinderDebugOverlay:
BuildableTerrainLayer:
D2kResourceLayer:
ResourceClaimLayer:
SmudgeLayer@Rock:
Type: RockCrater
Sequence: rockcraters
@@ -135,3 +138,8 @@ World:
RadarPings:
ObjectivesPanel:
PanelName: SKIRMISH_STATS
EditorWorld:
Inherits: ^BaseWorld
EditorActorLayer:
D2kEditorResourceLayer:

372
mods/ra/chrome/editor.yaml Normal file
View File

@@ -0,0 +1,372 @@
Background@NEW_MAP_BG:
Logic: NewMapLogic
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - HEIGHT)/2
Width: 300
Height: 185
Children:
Label@LABEL_TITLE:
X: 0
Y: 20
Width: 300
Height: 25
Text: New Map
Align: Center
Font: Bold
Label@TILESET_LABEL:
X: 20
Y: 59
Width: 95
Height: 25
Align: Right
Text: Tileset:
DropDownButton@TILESET:
X: 120
Y: 60
Width: 160
Height: 25
Label@WIDTH_LABEL:
X: 20
Y: 94
Width: 95
Height: 25
Align: Right
Text: Width:
TextField@WIDTH:
X: 120
Y: 95
Width: 50
MaxLength: 3
Height: 25
Text: 128
Label@HEIGHT_LABEL:
X: 130
Y: 94
Width: 95
Height: 25
Align: Right
Text: Height:
TextField@HEIGHT:
X: 230
Y: 95
Width: 50
MaxLength: 3
Height: 25
Text: 128
Button@CREATE_BUTTON:
X: 30
Y: PARENT_BOTTOM - 45
Width: 120
Height: 25
Text: Create
Font: Bold
Key: return
Button@CANCEL_BUTTON:
X: 160
Y: PARENT_BOTTOM - 45
Width: 120
Height: 25
Text: Cancel
Font: Bold
Key: escape
Background@SAVE_MAP_PANEL:
Logic: SaveMapLogic
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - HEIGHT)/2
Width: 350
Height: 335
Children:
Label@LABEL_TITLE:
X: (PARENT_RIGHT - WIDTH)/2
Y: 20
Width: 250
Height: 25
Text: Save Map
Align: Center
Font: Bold
Label@TITLE_LABEL:
X: 10
Y: 59
Width: 95
Height: 25
Align: Right
Text: Title:
TextField@TITLE:
X: 110
Y: 60
Width: 220
MaxLength: 50
Height: 25
Label@AUTHOR_LABEL:
X: 10
Y: 94
Width: 95
Height: 25
Align: Right
Text: Author:
TextField@AUTHOR:
X: 110
Y: 95
Width: 220
MaxLength: 50
Height: 25
Label@DESCRIPTION_LABEL:
X: 10
Y: 129
Width: 95
Height: 25
Align: Right
Text: Description:
TextField@DESCRIPTION:
X: 110
Y: 130
Width: 220
MaxLength: 50
Height: 25
Label@VISIBILITY_LABEL:
X: 10
Y: 164
Width: 95
Height: 25
Align: Right
Text: Visibility:
DropDownButton@VISIBILITY_DROPDOWN:
X: 110
Y: 165
Width: 220
Height: 25
Label@DIRECTORY_LABEL:
X: 10
Y: 199
Width: 95
Height: 25
Align: Right
Text: Directory:
DropDownButton@DIRECTORY_DROPDOWN:
X: 110
Y: 200
Width: 220
Height: 25
Label@FILENAME_LABEL:
X: 10
Y: 234
Width: 95
Height: 25
Align: Right
Text: Filename:
TextField@FILENAME:
X: 110
Y: 235
Width: 105
Height: 25
DropDownButton@TYPE_DROPDOWN:
X: 220
Y: 235
Width: 110
Height: 25
Button@SAVE_BUTTON:
X: 80
Y: PARENT_BOTTOM - 45
Width: 120
Height: 25
Text: Save
Font: Bold
Button@BACK_BUTTON:
X: 210
Y: PARENT_BOTTOM - 45
Width: 120
Height: 25
Text: Cancel
Font: Bold
Key: escape
Container@EDITOR_ROOT:
Logic: LoadMapEditorLogic
Children:
Container@WORLD_ROOT:
Container@MENU_ROOT:
TooltipContainer@TOOLTIP_CONTAINER:
Container@EDITOR_WORLD_ROOT:
Logic: LoadIngamePerfLogic, MapEditorLogic
Children:
Container@PERF_ROOT:
ViewportController:
X: 0
Y: 0
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
TooltipContainer: TOOLTIP_CONTAINER
EditorViewportController@MAP_EDITOR:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:
ActorPreview@DRAG_ACTOR_PREVIEW:
Visible: false
TerrainTemplatePreview@DRAG_TILE_PREVIEW:
Visible: false
Sprite@DRAG_LAYER_PREVIEW:
Visible: false
Background@RADAR_BG:
X: WINDOW_RIGHT-255
Y: 5
Width: 250
Height: 250
Children:
Radar@INGAME_RADAR:
X: 10
Y: 10
Width: PARENT_RIGHT-19
Height: PARENT_BOTTOM-19
Container@TILE_WIDGETS:
Logic: TileSelectorLogic
Children:
Background@TILES_BG:
X: WINDOW_RIGHT-250
Y: 290
Width: 240
Height: 360
Children:
DropDownButton@TILE_CATEGORY:
X: 10
Y: 10
Width: 220
Height: 25
Font: Bold
ScrollPanel@TILETEMPLATE_LIST:
X: 10
Y: 35
Width: PARENT_RIGHT-20
Height: PARENT_BOTTOM-45
ItemSpacing: 4
Children:
ScrollItem@TILEPREVIEW_TEMPLATE:
Visible: false
Width: PARENT_RIGHT - 35
TooltipContainer: TOOLTIP_CONTAINER
Children:
TerrainTemplatePreview@TILE_PREVIEW:
X: 4
Y: 4
Container@LAYER_WIDGETS:
Visible: false
Logic: LayerSelectorLogic
Children:
Background@LAYERS_BG:
X: WINDOW_RIGHT-250
Y: 290
Width: 240
Height: 360
Children:
ScrollPanel@LAYERTEMPLATE_LIST:
X: 10
Y: 10
Width: PARENT_RIGHT-20
Height: PARENT_BOTTOM-20
ItemSpacing: 4
Children:
ScrollItem@LAYERPREVIEW_TEMPLATE:
Visible: false
IgnoreChildMouseOver: true
TooltipContainer: TOOLTIP_CONTAINER
Children:
Sprite@LAYER_PREVIEW:
X: 4
Y: 4
Visible: false
Container@ACTOR_WIDGETS:
Visible: false
Logic: ActorSelectorLogic
Children:
Background@ACTORS_BG:
X: WINDOW_RIGHT-250
Y: 290
Width: 240
Height: 360
Children:
DropDownButton@OWNERS_DROPDOWN:
X: 10
Y: 10
Width: 220
Height: 25
Font: Bold
ScrollPanel@ACTORTEMPLATE_LIST:
X: 10
Y: 35
Width: PARENT_RIGHT-20
Height: PARENT_BOTTOM-45
ItemSpacing: 4
Children:
ScrollItem@ACTORPREVIEW_TEMPLATE:
Visible: false
Width: PARENT_RIGHT - 35
TooltipContainer: TOOLTIP_CONTAINER
IgnoreChildMouseOver: true
Children:
ActorPreview@ACTOR_PREVIEW:
X: 4
Y: 4
Visible: true
Container@MAP_EDITOR_TAB_CONTAINER:
Logic: MapEditorTabsLogic
X: WINDOW_RIGHT-245
Y: 260
Width: 240
Height: 25
Children:
Button@TILES_TAB:
X: 0
Width: 70
Height: 25
Text: Tiles
Font: Bold
Button@OVERLAYS_TAB:
X: 70
Width: 90
Height: 25
Text: Overlays
Font: Bold
Button@ACTORS_TAB:
X: 160
Width: 70
Height: 25
Text: Actors
Font: Bold
MenuButton@OPTIONS_BUTTON:
Logic: MenuButtonsChromeLogic
MenuContainer: INGAME_MENU
HideIngameUI: true
Pause: true
Width: 160
Height: 25
Text: Menu
TooltipText: Menu
TooltipContainer: TOOLTIP_CONTAINER
Font: Bold
Key: escape
Button@GRID_BUTTON:
X: 180
Width: 160
Height: 25
Text: Grid
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: Toggle the terrain grid
TooltipContainer: TOOLTIP_CONTAINER
Font: Bold
Key: f1
Label@ZOOM_LABEL:
X: 345
Width: 50
Height: 25
Text: Zoom:
Align: Right
Font: Bold
Contrast: true
DropDownButton@ZOOM_BUTTON:
X: 400
Width: 70
Height: 25
Font: Bold

View File

@@ -66,6 +66,13 @@ Container@INGAME_MENU:
Height: 30
Text: Surrender
Font: Bold
Button@SAVE_MAP:
X: (PARENT_RIGHT - WIDTH)/2
Y: 180
Width: 140
Height: 30
Text: Save Map
Font: Bold
Button@ABORT_MISSION:
X: (PARENT_RIGHT - WIDTH)/2
Y: 220
@@ -73,3 +80,10 @@ Container@INGAME_MENU:
Height: 30
Text: Abort Mission
Font: Bold
Button@EXIT_EDITOR:
X: (PARENT_RIGHT - WIDTH)/2
Y: 220
Width: 140
Height: 30
Text: Exit Map Editor
Font: Bold

View File

@@ -140,16 +140,23 @@ Container@MAINMENU:
Height: 30
Text: Music
Font: Bold
Button@ASSETBROWSER_BUTTON:
Button@MAP_EDITOR_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 140
Width: 140
Height: 30
Text: Map Editor
Font: Bold
Button@ASSETBROWSER_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Width: 140
Height: 30
Text: Asset Browser
Font: Bold
Button@CREDITS_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Y: 220
Width: 140
Height: 30
Text: Credits
@@ -162,6 +169,40 @@ Container@MAINMENU:
Height: 30
Text: Back
Font: Bold
Background@MAP_EDITOR_MENU:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@MAP_EDITOR_MENU_TITLE:
X: 0
Y: 20
Width: 200
Height: 30
Text: Map Editor
Align: Center
Font: Bold
Button@NEW_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 60
Width: 140
Height: 30
Text: New Map
Font: Bold
Button@LOAD_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 100
Width: 140
Height: 30
Text: Load Map
Font: Bold
Button@BACK_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Key: escape
Y: 260
Width: 140
Height: 30
Text: Back
Font: Bold
Container@PERFORMANCE_INFO:
Logic: PerfDebugLogic
Children:

View File

@@ -114,6 +114,7 @@ ChromeLayout:
./mods/ra/chrome/assetbrowser.yaml
./mods/ra/chrome/missionbrowser.yaml
./mods/ra/chrome/confirmation-dialogs.yaml
./mods/ra/chrome/editor.yaml
Weapons:
./mods/ra/weapons/explosions.yaml

View File

@@ -1,25 +1,9 @@
World:
^BaseWorld:
Inherits: ^Palettes
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
ScreenMap:
ActorMap:
ScreenMap:
TerrainGeometryOverlay:
LoadWidgetAtGameStart:
ScreenShaker:
BuildingInfluence:
ProductionQueueFromSelection:
ProductionPaletteWidget: PRODUCTION_PALETTE
BridgeLayer:
Bridges: bridge1, bridge2, br1, br2, br3, sbridge1, sbridge2, sbridge3, sbridge4
CrateSpawner:
DeliveryAircraft: badr
QuantizedFacings: 16
Minimum: 1
Maximum: 3
SpawnInterval: 120
WaterChance: .2
ShroudRenderer:
FogVariants: shroud
Index: 255, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 20, 40, 56, 65, 97, 130, 148, 194, 24, 33, 66, 132, 28, 41, 67, 134, 1, 2, 4, 8, 3, 6, 12, 9, 7, 14, 13, 11, 5, 10, 15, 255
@@ -77,16 +61,6 @@ World:
RandomRaceMembers: russia, ukraine
Side: Random
Description: A random Soviet country.
DomainIndex:
SmudgeLayer@SCORCH:
Type: Scorch
Sequence: scorches
SmokePercentage: 50
SmudgeLayer@CRATER:
Type: Crater
Sequence: craters
ResourceLayer:
ResourceClaimLayer:
ResourceType@ore:
ResourceType: 1
Palette: player
@@ -111,8 +85,37 @@ World:
AllowedTerrainTypes: Clear,Road
AllowUnderActors: true
TerrainType: Gems
World:
Inherits: ^BaseWorld
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
ScreenShaker:
BuildingInfluence:
ProductionQueueFromSelection:
ProductionPaletteWidget: PRODUCTION_PALETTE
BridgeLayer:
Bridges: bridge1, bridge2, br1, br2, br3, sbridge1, sbridge2, sbridge3, sbridge4
CrateSpawner:
DeliveryAircraft: badr
QuantizedFacings: 16
Minimum: 1
Maximum: 3
SpawnInterval: 120
WaterChance: .2
DomainIndex:
SmudgeLayer@SCORCH:
Type: Scorch
Sequence: scorches
SmokePercentage: 50
SmudgeLayer@CRATER:
Type: Crater
Sequence: craters
ResourceLayer:
ResourceClaimLayer:
PathfinderDebugOverlay:
TerrainGeometryOverlay:
SpawnMapActors:
CreateMPPlayers:
MPStartUnits@mcvonly:
@@ -162,3 +165,7 @@ World:
ObjectivesPanel:
PanelName: SKIRMISH_STATS
EditorWorld:
Inherits: ^BaseWorld
EditorActorLayer:
EditorResourceLayer:

View File

@@ -168,6 +168,7 @@ ChromeLayout:
./mods/ra/chrome/assetbrowser.yaml
./mods/ra/chrome/missionbrowser.yaml
./mods/ra/chrome/confirmation-dialogs.yaml
./mods/ra/chrome/editor.yaml
Voices:
./mods/ts/audio/voices.yaml

View File

@@ -1,15 +1,8 @@
World:
^BaseWorld:
Inherits: ^Palettes
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
ScreenMap:
ActorMap:
LoadWidgetAtGameStart:
BuildingInfluence:
ProductionQueueFromSelection:
ProductionPaletteWidget: PRODUCTION_PALETTE
ShroudRenderer:
Index: 255, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 20, 40, 56, 65, 97, 130, 148, 194, 24, 33, 66, 132, 28, 41, 67, 134, 1, 2, 4, 8, 3, 6, 12, 9, 7, 14, 13, 11, 5, 10, 15, 255
UseExtendedIndex: true
@@ -25,6 +18,41 @@ World:
Country@1:
Name: Nod
Race: nod
ResourceType@Tiberium:
ResourceType: 1
Palette: greentiberium
EditorSprite: waypoint # TODO: editor can't handle the real ones
Variants: tib01, tib02, tib03, tib04, tib05, tib06, tib07, tib08, tib09, tib10, tib11, tib12, tib13, tib14, tib15, tib16, tib17, tib18, tib19, tib20
MaxDensity: 12
ValuePerUnit: 50
Name: Tiberium
PipColor: Green
AllowedTerrainTypes: Clear, Rough, DirtRoad
AllowUnderActors: true
TerrainType: Tiberium
ResourceType@BlueTiberium:
ResourceType: 2
Palette: bluetiberium
EditorSprite: waypoint # TODO: editor can't handle the real ones
Variants: tib01, tib02, tib03, tib04, tib05, tib06, tib07, tib08, tib09, tib10, tib11, tib12, tib13, tib14, tib15, tib16, tib17, tib18, tib19, tib20
MaxDensity: 12
ValuePerUnit: 100
Name: BlueTiberium
PipColor: Blue
AllowedTerrainTypes: Clear, Rough, DirtRoad
AllowUnderActors: true
TerrainType: BlueTiberium
TerrainGeometryOverlay:
World:
Inherits: ^BaseWorld
ChatCommands:
DevCommands:
PlayerCommands:
HelpCommand:
BuildingInfluence:
ProductionQueueFromSelection:
ProductionPaletteWidget: PRODUCTION_PALETTE
DomainIndex:
SmudgeLayer@SMALLSCORCH:
Type: SmallScorch
@@ -55,32 +83,7 @@ World:
Sequence: largecraters
ResourceLayer:
ResourceClaimLayer:
ResourceType@Tiberium:
ResourceType: 1
Palette: greentiberium
EditorSprite: waypoint # TODO: editor can't handle the real ones
Variants: tib01, tib02, tib03, tib04, tib05, tib06, tib07, tib08, tib09, tib10, tib11, tib12, tib13, tib14, tib15, tib16, tib17, tib18, tib19, tib20
MaxDensity: 12
ValuePerUnit: 50
Name: Tiberium
PipColor: Green
AllowedTerrainTypes: Clear, Rough, DirtRoad
AllowUnderActors: true
TerrainType: Tiberium
ResourceType@BlueTiberium:
ResourceType: 2
Palette: bluetiberium
EditorSprite: waypoint # TODO: editor can't handle the real ones
Variants: tib01, tib02, tib03, tib04, tib05, tib06, tib07, tib08, tib09, tib10, tib11, tib12, tib13, tib14, tib15, tib16, tib17, tib18, tib19, tib20
MaxDensity: 12
ValuePerUnit: 100
Name: BlueTiberium
PipColor: Blue
AllowedTerrainTypes: Clear, Rough, DirtRoad
AllowUnderActors: true
TerrainType: BlueTiberium
PathfinderDebugOverlay:
TerrainGeometryOverlay:
SpawnMapActors:
CreateMPPlayers:
MPStartUnits@MCV:
@@ -153,3 +156,7 @@ World:
ObjectivesPanel:
PanelName: SKIRMISH_STATS
EditorWorld:
Inherits: ^BaseWorld
EditorActorLayer:
EditorResourceLayer: