From: Centronias Date: Wed, 8 Oct 2025 22:17:11 +0000 (-0700) Subject: Wrapped Parcels can be labelled with Papers (#40783) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c54fb47f7c7aacd1132d6634576f1b7d81fc2123;p=space-station-14.git Wrapped Parcels can be labelled with Papers (#40783) * labels * oop * Update Resources/Prototypes/Entities/Objects/Misc/parcel_wrap.yml --- diff --git a/Resources/Prototypes/Entities/Objects/Misc/parcel_wrap.yml b/Resources/Prototypes/Entities/Objects/Misc/parcel_wrap.yml index 58455ba211..61d8452b93 100644 --- a/Resources/Prototypes/Entities/Objects/Misc/parcel_wrap.yml +++ b/Resources/Prototypes/Entities/Objects/Misc/parcel_wrap.yml @@ -38,6 +38,7 @@ - type: ContainerContainer containers: contents: !type:ContainerSlot + paper_label: !type:ContainerSlot - type: Appearance - type: GenericVisualizer visuals: @@ -49,11 +50,25 @@ "Large": { state: "parcel-medium" } "Huge": { state: "parcel-large" } "Ginormous": { state: "parcel-large" } + enum.PaperLabelVisuals.HasLabel: + enum.PaperLabelVisuals.Layer: + True: { visible: true } + False: { visible: false } + enum.PaperLabelVisuals.LabelType: + enum.PaperLabelVisuals.Layer: + Paper: { state: paper } + Bounty: { state: bounty } + CaptainsPaper: { state: captains_paper } + Invoice: { state: invoice } - type: Sprite sprite: Objects/Misc/ParcelWrap/wrapped_parcel.rsi layers: - state: parcel-medium map: [ "enum.WrappedParcelVisuals.Layer" ] + - state: paper + visible: false + sprite: Objects/Misc/ParcelWrap/paper_labels.rsi + map: ["enum.PaperLabelVisuals.Layer"] - type: WrappedParcel unwrapDelay: 0.5 unwrapSound: @@ -61,6 +76,17 @@ params: volume: -4 unwrapTrash: ParcelWrapTrash + - type: ItemSlots + - type: PaperLabel + labelSlot: + insertVerbText: comp-paper-label-insert + ejectVerbText: comp-paper-label-eject + whitelist: + components: + - Paper + blacklist: + tags: + - Book - type: Damageable damageContainer: Inorganic - type: Destructible diff --git a/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/bounty.png b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/bounty.png new file mode 100644 index 0000000000..8b44d0e52b Binary files /dev/null and b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/bounty.png differ diff --git a/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/captains_paper.png b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/captains_paper.png new file mode 100644 index 0000000000..b02ea9c4a5 Binary files /dev/null and b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/captains_paper.png differ diff --git a/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/invoice.png b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/invoice.png new file mode 100644 index 0000000000..2089996fdb Binary files /dev/null and b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/invoice.png differ diff --git a/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/meta.json b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/meta.json new file mode 100644 index 0000000000..4136d89ef0 --- /dev/null +++ b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/meta.json @@ -0,0 +1,23 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Original sprites by Vermidia and modified by SpaceRox1244; manual offset applied by Centronias", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "paper" + }, + { + "name": "bounty" + }, + { + "name": "captains_paper" + }, + { + "name": "invoice" + } + ] +} diff --git a/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/paper.png b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/paper.png new file mode 100644 index 0000000000..f9f977302c Binary files /dev/null and b/Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/paper.png differ