Paper Visualizer (#4811)

This commit is contained in:
20kdc
2021-10-09 14:48:53 +01:00
committed by GitHub
parent 090692560b
commit 4f5cbb63de
3 changed files with 28 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
components:
- type: Sprite
sprite: Objects/Misc/bureaucracy.rsi
netsync: false
layers:
- state: paper
- type: Paper
@@ -13,14 +14,26 @@
interfaces:
- key: enum.PaperUiKey.Key
type: PaperBoundUserInterface
- type: Appearance
visuals:
- type: GenericEnumVisualizer
key: enum.PaperVisuals.Status
layer: 0
states:
# This default isn't actually explicitly used right now.
enum.PaperStatus.Blank: paper
enum.PaperStatus.Written: paper_words
- type: entity
parent: Paper
id: PaperWritten
abstract: true
components:
- type: Paper
- type: Sprite
layers:
# Changing it here is fine - if the PaperStatus key is actually added,
# something happened, so that ought to override this either way.
- state: paper_words
- type: entity