diff --git a/mods/example/chrome/layouts/ingame-player.yaml b/mods/example/chrome/layouts/ingame-player.yaml index 6948c98..86d4546 100644 --- a/mods/example/chrome/layouts/ingame-player.yaml +++ b/mods/example/chrome/layouts/ingame-player.yaml @@ -13,3 +13,32 @@ Container@PLAYER_WIDGETS: LogicTicker@SIDEBAR_TICKER: MenuButton@OPTIONS_BUTTON: Key: escape + +Container@PRODUCTION_SIDEBAR: + Logic: ClassicProductionLogic + X: WINDOW_WIDTH - 220 + Y: 60 + Width: 210 + Height: WINDOW_HEIGHT - 80 + Children: + Container@PRODUCTION_TYPES: + Width: 210 + Height: 30 + Children: + ProductionTypeButton@BUILDINGS_BUTTON: + Width: 100 + Height: 28 + Text: Base + ProductionGroup: Buildings + ProductionTypeButton@UNITS_BUTTON: + X: 105 + Width: 100 + Height: 28 + Text: Units + ProductionGroup: Units + ProductionPalette@PRODUCTION_PALETTE: + Y: 36 + Width: 210 + Height: WINDOW_HEIGHT - 120 + Columns: 3 + LogicTicker@PRODUCTION_TICKER: diff --git a/mods/example/fluent/rules.ftl b/mods/example/fluent/rules.ftl index 897368a..a1c00bb 100644 --- a/mods/example/fluent/rules.ftl +++ b/mods/example/fluent/rules.ftl @@ -19,3 +19,4 @@ actor-biotitan-name = Bio-Titan actor-warcar-name = War Car actor-hauler-name = Record Hauler actor-depot-name = Record Depot +actor-workshop-name = Workshop diff --git a/mods/example/rules/doomsday.yaml b/mods/example/rules/doomsday.yaml index dcabe94..31f944a 100644 --- a/mods/example/rules/doomsday.yaml +++ b/mods/example/rules/doomsday.yaml @@ -164,6 +164,12 @@ biotitan: Categories: Units warcar: + Buildable: + Queue: Units + BuildPaletteOrder: 30 + Prerequisites: workshop + Valued: + Cost: 900 Tooltip: Name: actor-warcar-name AlwaysVisible: @@ -198,6 +204,11 @@ warcar: Categories: Units hauler: + Buildable: + Queue: Units + BuildPaletteOrder: 20 + Valued: + Cost: 700 Tooltip: Name: actor-hauler-name AlwaysVisible: @@ -300,6 +311,44 @@ depot: Refinery: UseStorage: false DockHost: + Production: + Produces: Buildings, Units + Exit@1: + SpawnOffset: 0,0,0 + ExitCell: 1,3 + Exit@2: + ExitCell: 3,3 + WithSpriteBody: + RenderSprites: + MapEditorData: + Categories: Buildings + +workshop: + Tooltip: + Name: actor-workshop-name + AlwaysVisible: + RevealsShroud: + Range: 5c0 + Buildable: + Queue: Buildings + BuildPaletteOrder: 10 + Valued: + Cost: 1200 + ProvidesPrerequisite@name: + Selectable: + Bounds: 2048, 2048 + SelectionDecorations: + Targetable: + TargetTypes: Ground + Health: + HP: 40000 + HitShape: + BodyOrientation: + QuantizedFacings: 1 + Building: + Dimensions: 2,2 + Footprint: xx xx + FootprintPlaceBuildingPreview: WithSpriteBody: RenderSprites: MapEditorData: diff --git a/mods/example/rules/example.yaml b/mods/example/rules/example.yaml index adba276..ebb6775 100644 --- a/mods/example/rules/example.yaml +++ b/mods/example/rules/example.yaml @@ -17,6 +17,11 @@ example.colorpicker: -MapEditorData: swat: + Buildable: + Queue: Units + BuildPaletteOrder: 10 + Valued: + Cost: 250 Tooltip: Name: actor-swat-name AlwaysVisible: diff --git a/mods/example/rules/palettes.yaml b/mods/example/rules/palettes.yaml index 765a9c8..7fbfd04 100644 --- a/mods/example/rules/palettes.yaml +++ b/mods/example/rules/palettes.yaml @@ -3,6 +3,8 @@ Name: greyscale PaletteFromGrayscale@effect: Name: effect + PaletteFromGrayscale@chrome: + Name: chrome PlayerColorPalette@player: BasePalette: greyscale PlayerColorShift: diff --git a/mods/example/rules/player.yaml b/mods/example/rules/player.yaml index 6e778cb..9c75e99 100644 --- a/mods/example/rules/player.yaml +++ b/mods/example/rules/player.yaml @@ -7,8 +7,15 @@ player: FrozenActorLayer: DeveloperMode: PlayerResources: - MissionObjectives: - ConquestVictoryConditions: + DefaultCash: 2000 + TechTree: + PlaceBuilding: + ClassicProductionQueue@Buildings: + Type: Buildings + Group: Buildings + ClassicProductionQueue@Units: + Type: Units + Group: Units editorplayer: Inherits: ^baseplayer diff --git a/mods/example/sequences/assets/d_workshop.png b/mods/example/sequences/assets/d_workshop.png new file mode 100644 index 0000000..89b731c Binary files /dev/null and b/mods/example/sequences/assets/d_workshop.png differ diff --git a/mods/example/sequences/assets/i_hauler.png b/mods/example/sequences/assets/i_hauler.png new file mode 100644 index 0000000..35c7ea6 Binary files /dev/null and b/mods/example/sequences/assets/i_hauler.png differ diff --git a/mods/example/sequences/assets/i_swat.png b/mods/example/sequences/assets/i_swat.png new file mode 100644 index 0000000..bc8975a Binary files /dev/null and b/mods/example/sequences/assets/i_swat.png differ diff --git a/mods/example/sequences/assets/i_warcar.png b/mods/example/sequences/assets/i_warcar.png new file mode 100644 index 0000000..a7dd467 Binary files /dev/null and b/mods/example/sequences/assets/i_warcar.png differ diff --git a/mods/example/sequences/assets/i_workshop.png b/mods/example/sequences/assets/i_workshop.png new file mode 100644 index 0000000..4f37cdf Binary files /dev/null and b/mods/example/sequences/assets/i_workshop.png differ diff --git a/mods/example/sequences/doomsday.yaml b/mods/example/sequences/doomsday.yaml index 7e865f3..8b6f657 100644 --- a/mods/example/sequences/doomsday.yaml +++ b/mods/example/sequences/doomsday.yaml @@ -99,6 +99,8 @@ biotitan: Length: 3 Tick: 140 warcar: + icon: + Filename: sequences/assets/i_warcar.png stand: Filename: sequences/assets/warcar_stand.png Facings: 16 @@ -109,6 +111,8 @@ warcar: Facings: 16 Length: 5 hauler: + icon: + Filename: sequences/assets/i_hauler.png stand: Filename: sequences/assets/hauler_stand.png Facings: 16 @@ -140,3 +144,8 @@ records: depot: idle: Filename: sequences/assets/d_depot.png +workshop: + icon: + Filename: sequences/assets/i_workshop.png + idle: + Filename: sequences/assets/d_workshop.png diff --git a/mods/example/sequences/example.yaml b/mods/example/sequences/example.yaml index 62bb0e1..94536ea 100644 --- a/mods/example/sequences/example.yaml +++ b/mods/example/sequences/example.yaml @@ -3,6 +3,8 @@ example: Filename: sequences/assets/example.png swat: + icon: + Filename: sequences/assets/i_swat.png stand: Filename: sequences/assets/swat_idle.png Facings: 8