PlantHolderVisualizer component system refactor (#10091)

* Converted PlantHolderVisualizer to component and system.

* Cleaned up Botany folder.

* Converted initialization of HydroTrayVisualizer under PlantHolderVisualizerSystem to it's own GenericVisualizer.

* Cleaned up hydro_tray.yml.
This commit is contained in:
Steven K
2022-07-30 19:18:49 -07:00
committed by GitHub
parent 3365333ba0
commit 68a5fcb7f8
9 changed files with 111 additions and 117 deletions

View File

@@ -18,8 +18,52 @@
- type: Anchorable
- type: Pullable
- type: Sprite
sprite: Structures/Hydroponics/containers.rsi
state: hydrotray3
layers:
- sprite: Structures/Hydroponics/containers.rsi
state: hydrotray3
- sprite: Structures/Hydroponics/overlays.rsi
state: lowhealth3
map: [ "health_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: lowwater3
map: [ "water_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: lownutri3
map: [ "nutri_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: alert3
map: [ "undefined_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: harvest3
map: [ "harvest_alert" ]
visible: false
- type: Appearance
- type: GenericVisualizer
visuals:
enum.PlantHolderVisuals.HealthLight:
health_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.WaterLight:
water_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.NutritionLight:
nutri_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.AlertLight:
undefined_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.HarvestLight:
harvest_alert:
True: { visible: true }
False: { visible: false }
- type: PlantHolder
drawWarnings: true
- type: Construction

View File

@@ -53,5 +53,4 @@
- !type:AddToSolutionReaction
solution: soil
- type: Appearance
visuals:
- type: PlantHolderVisualizer
- type: PlantHolderVisuals