* Draft PR, do not merge * Lathe now uses animations. Timing is still wrong, code is very wet, repetitions and unused layers are there. * Removed (unneeded?) PowerDeviceVisualizer from the lathe Refactored & Renamed code and variables Renamed animation names * WIP protolathe animation * Working protolathe animation. I still don't like the solution though.
This commit is contained in:
@@ -25,9 +25,10 @@
|
||||
sprite: Buildings/autolathe.rsi
|
||||
layers:
|
||||
- state: autolathe
|
||||
map: ["enum.AutolatheVisualLayers.Base"]
|
||||
- state: autolathe_unlit
|
||||
shader: unshaded
|
||||
map: ["enum.PowerDeviceVisualLayers.Powered"]
|
||||
map: ["enum.AutolatheVisualLayers.BaseUnlit"]
|
||||
- type: Icon
|
||||
sprite: Buildings/autolathe.rsi
|
||||
state: autolathe
|
||||
@@ -56,7 +57,7 @@
|
||||
- Multitool
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: PowerDeviceVisualizer2D
|
||||
- type: AutolatheVisualizer2D
|
||||
|
||||
- type: entity
|
||||
parent: BaseLathe
|
||||
@@ -67,9 +68,12 @@
|
||||
sprite: Buildings/research.rsi
|
||||
layers:
|
||||
- state: protolathe
|
||||
map: ["enum.ProtolatheVisualLayers.Base"]
|
||||
- state: protolathe_unlit
|
||||
shader: unshaded
|
||||
map: ["enum.PowerDeviceVisualLayers.Powered"]
|
||||
map: ["enum.ProtolatheVisualLayers.BaseUnlit"]
|
||||
- state: protolathe
|
||||
map: ["enum.ProtolatheVisualLayers.AnimationLayer"]
|
||||
- type: Icon
|
||||
sprite: Buildings/research.rsi
|
||||
state: protolathe
|
||||
@@ -104,4 +108,4 @@
|
||||
type: ResearchClientBoundUserInterface
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: PowerDeviceVisualizer2D
|
||||
- type: ProtolatheVisualizer2D
|
||||
|
||||
Reference in New Issue
Block a user