* Recipe stuff.

* Lathe GUI and stuff

* god dammit

* Lathe menu works, yay.

* EventArgs henk

* Some work

* SS14 -> Robust

* More SS14 -> Robust

* Lathe materials

* Lathe works, Lathe GUI, Queue GUI, etc

too many changes to name them here

* Remove materials button, add ViewVariables and update lathe on connect

* Add Autolathe RSI

* Adds new recipes, fixes a few bugs.

* Remove unused ScrollContainers

* Use same delegate for spawn.

* Removes client-side LatheComponent in favor of BoundUserInterface

* Remove GetMaterial and TryGetMaterial

* Use auto-properties in a few places.

* Adds LatheDatabase, and a bunch of other changes

* Remove useless log.

* Remove lathetype from prototypes.

* Turns Storage, Lathe and Database into autoproperties

* Remove Hacked property from LatheRecipePrototype

* Remove unneeded dependency injection from components

* Refactors LatheDatabaseComponent to use ComponentState

* Refactors MaterialStorageComponent to use ComponentState

* Oopsie

* Another oopsie

* Last oopsie, I hope

* Fix missing Close call.
This commit is contained in:
Víctor Aguilera Puerto
2019-04-26 15:51:05 +02:00
committed by Pieter-Jan Briers
parent 092539ae59
commit fe0414eda7
37 changed files with 1580 additions and 13 deletions

View File

@@ -0,0 +1,37 @@
- type: entity
id: autolathe
name: "Autolathe"
components:
- type: Clickable
- type: Sprite
sprite: Buildings/autolathe.rsi
state: idle
- type: Icon
sprite: Buildings/autolathe.rsi
state: idle
- type: BoundingBox
- type: Collidable
- type: SnapGrid
offset: Center
- type: Lathe
- type: LatheDatabase
static: true
recipes:
- Brutepack
- Ointment
- LightTube
- LightBulb
- MetalStack
- GlassStack
- Wirecutter
- Screwdriver
- Welder
- Wrench
- CableStack
- Crowbar
- Multitool
- type: MaterialStorage
- type: UserInterface
interfaces:
- key: enum.LatheUiKey.Key
type: LatheBoundUserInterface

View File

@@ -45,6 +45,14 @@
texture: Objects/sheet_glass.png
- type: Icon
texture: Objects/sheet_glass.png
- type: entity
id: GlassSheet1
name: Glass Sheet 1
parent: GlassStack
components:
- type: Stack
count: 1
- type: entity
name: Cable Coil

View File

@@ -0,0 +1,17 @@
- type: latheRecipe
id: Brutepack
icon: Objects/brutepack.png
result: Brutepack
completetime: 500
materials:
steel: 400
glass: 125
- type: latheRecipe
id: Ointment
icon: Objects/ointment.png
result: Ointment
completetime: 500
materials:
steel: 400
glass: 125

View File

@@ -0,0 +1,17 @@
- type: latheRecipe
id: LightTube
icon: Objects/light_tube.rsi/normal.png
result: LightTube
completetime: 500
materials:
steel: 60
glass: 100
- type: latheRecipe
id: LightBulb
icon: Objects/light_bulb.rsi/normal.png
result: LightBulb
completetime: 500
materials:
steel: 30
glass: 50

View File

@@ -0,0 +1,15 @@
- type: latheRecipe
id: MetalStack
icon: Objects/sheet_metal.png
result: SteelSheet1
completetime: 500
materials:
steel: 3750
- type: latheRecipe
id: GlassStack
icon: Objects/sheet_glass.png
result: GlassSheet1
completetime: 500
materials:
glass: 3750

View File

@@ -0,0 +1,59 @@
- type: latheRecipe
id: Wirecutter
icon: Objects/wirecutter.png
result: Wirecutter
completetime: 500
materials:
steel: 80
- type: latheRecipe
id: Screwdriver
icon: Objects/screwdriver.png
result: Screwdriver
completetime: 500
materials:
steel: 75
- type: latheRecipe
id: Welder
icon: Objects/welder.png
result: Welder
completetime: 500
materials:
steel: 70
glass: 30
- type: latheRecipe
id: Wrench
icon: Objects/wrench.png
result: Wrench
completetime: 500
materials:
steel: 70
glass: 30
- type: latheRecipe
id: CableStack
icon: Objects/cable_coil.png
result: CableStack
completetime: 500
materials:
steel: 50
glass: 50
- type: latheRecipe
id: Crowbar
icon: Objects/crowbar.png
result: Crowbar
completetime: 500
materials:
steel: 50
- type: latheRecipe
id: Multitool
icon: Objects/multitool.png
result: Multitool
completetime: 500
materials:
steel: 50
glass: 20

View File

@@ -2,6 +2,7 @@
id: steel
name: Steel
color: gray
icon: Objects/sheet_metal.png
density: 7700
electricresistivity: 6.9e-7
thermalconductivity: 18
@@ -11,6 +12,7 @@
id: glass
name: Glass
color: '#e8f0ff33'
icon: Objects/sheet_glass.png
density: 2500
electricresistivity: 1.0e+13
thermalconductivity: 0.9

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

View File

@@ -0,0 +1 @@
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/master/icons/obj/machines/excelsior/autolathe.dmi", "states": [{"name": "closing", "directions": 1, "delays": [[0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]]}, {"name": "idle", "directions": 1, "delays": [[1.0]]}, {"name": "opening", "directions": 1, "delays": [[0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]]}, {"name": "panel", "directions": 1, "delays": [[1.0]]}, {"name": "stanok", "directions": 1, "delays": [[1.0]]}, {"name": "workdone", "directions": 1, "delays": [[0.1, 0.1, 0.1, 0.1, 0.5, 0.1, 0.1, 0.5]]}, {"name": "working", "directions": 1, "delays": [[0.1, 0.1, 0.1, 0.1, 0.1]]}]}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B