From c54fb47f7c7aacd1132d6634576f1b7d81fc2123 Mon Sep 17 00:00:00 2001 From: Centronias Date: Wed, 8 Oct 2025 15:17:11 -0700 Subject: [PATCH] Wrapped Parcels can be labelled with Papers (#40783) * labels * oop * Update Resources/Prototypes/Entities/Objects/Misc/parcel_wrap.yml --- .../Entities/Objects/Misc/parcel_wrap.yml | 26 ++++++++++++++++++ .../ParcelWrap/paper_labels.rsi/bounty.png | Bin 0 -> 202 bytes .../paper_labels.rsi/captains_paper.png | Bin 0 -> 202 bytes .../ParcelWrap/paper_labels.rsi/invoice.png | Bin 0 -> 202 bytes .../ParcelWrap/paper_labels.rsi/meta.json | 23 ++++++++++++++++ .../ParcelWrap/paper_labels.rsi/paper.png | Bin 0 -> 195 bytes 6 files changed, 49 insertions(+) create mode 100644 Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/bounty.png create mode 100644 Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/captains_paper.png create mode 100644 Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/invoice.png create mode 100644 Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/meta.json create mode 100644 Resources/Textures/Objects/Misc/ParcelWrap/paper_labels.rsi/paper.png 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 0000000000000000000000000000000000000000..8b44d0e52b59f2c03079f990861e74507167eb94 GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}EuJopArY;~ z2@_BrPuWrQnD_AU^Y)tCX6Ueg_`J#3;`YhIvd-n~HGlq0et7L}IZyxmy0iz+ tQgrLu~Le6ae@OQgZgv11)Uc|#DVT%@O1TaS?83{1OO!xOMCzT literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..b02ea9c4a574f1d6590b74025f755b2aa9f421ee GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}EuJopArY;~ z2@q;r!#R(3K46)*JM`rM)Yz4Z9!PC{xWt~$(697OPOQZk* literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..2089996fdb100202acc5368543dda2303ef07953 GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}EuJopArY;~ z2@H?-MV*81@GbAOR&pJ~h%l|Lo6%#C^2w{SP}zWRShK0Ny7+qS)5-mu`) tr@*6(DoYt>EH#R<3h8YNG+4mEkbPY41nVT-44``$JYD@<);T3K0RUS&Oilm* literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f9f977302cb4b53588ae04f520e5c5d55a5ca1ef GIT binary patch literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}wVp1HArY-_ zFKy&)P!M6ca5>_!k`>$UfR{W$8)uts$vF`3pzZ6U;m~RJ-ReYZ{YiEOB_LQd-*l&A z@|k(N%Fm_lpLl6%%k#`#bH%gopJ8LzqWVyysr0shYaD-F$bxXLsMo8{JZD|RvFAI7 r;)3v1UX6?F3;1N)7rv5u5zcPLD7Wi5!%kbELl`_={an^LB{Ts5ohV13 literal 0 HcmV?d00001 -- 2.51.2