* 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.
@@ -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
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -28,15 +28,15 @@
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055
|
||||
]
|
||||
]
|
||||
},
|
||||
@@ -45,20 +45,37 @@
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055,
|
||||
0.055
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "autolathe_inserting",
|
||||
"name": "autolathe_inserting_metal_plate",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "autolathe_inserting_glass_plate",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
@@ -99,23 +116,6 @@
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "autolathe_r",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "protolathe_n",
|
||||
"name": "protolathe_building",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
@@ -314,7 +314,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "protolathe_t",
|
||||
"name": "protolathe_open",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |