From: Banedon <15725971+Lanedon@users.noreply.github.com> Date: Sun, 20 Apr 2025 21:17:12 +0000 (+0200) Subject: Santa hat with a foldable beard (#36510) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=aeb53a302b6afb3f4f01a203921a0fd52d983884;p=space-station-14.git Santa hat with a foldable beard (#36510) * Added foldable component to santa hat * Modified sprites, modified YAML. YAML is cursed * Changed santa hat description to mention the beard fold * Removed HideLayerClothing since it doesnt work * Changed the prefix from "beard" to "nobeard" to match with the fold/unfold verb * Credits for sprite changes --------- Co-authored-by: Lanedon --- diff --git a/Resources/Prototypes/Entities/Clothing/Head/hats.yml b/Resources/Prototypes/Entities/Clothing/Head/hats.yml index 2477e1e996..b665708eba 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/hats.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/hats.yml @@ -421,15 +421,28 @@ sprite: Clothing/Head/Hats/redwizard.rsi - type: entity - parent: ClothingHeadBase + parent: [ClothingHeadBase, BaseFoldable] id: ClothingHeadHatSantahat name: santa hat - description: A festive hat worn by Santa Claus. + description: A festive hat worn by Santa Claus. Now with a foldable beard. components: - - type: Sprite - sprite: Clothing/Head/Hats/santahat.rsi - type: Clothing sprite: Clothing/Head/Hats/santahat.rsi + - type: Appearance + - type: Foldable + canFoldInsideContainer: true + - type: FoldableClothing + foldedEquippedPrefix: nobeard + foldedHeldPrefix: nobeard + - type: Sprite + sprite: Clothing/Head/Hats/santahat.rsi + layers: + - state: icon + map: ["unfoldedLayer"] + - state: icon-nobeard + map: [ "foldedLayer" ] + visible: true + - type: entity parent: ClothingHeadBase diff --git a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/icon-nobeard.png b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/icon-nobeard.png new file mode 100644 index 0000000000..88fb770f8d Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/icon-nobeard.png differ diff --git a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/icon.png b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/icon.png index 88fb770f8d..5b6ddcc296 100644 Binary files a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/icon.png and b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/icon.png differ diff --git a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/meta.json b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/meta.json index cec1961dce..4399ee55c2 100644 --- a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/meta.json +++ b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/meta.json @@ -1,30 +1,49 @@ { "version": 1, "license": "CC-BY-SA-3.0", - "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/4f6190e2895e09116663ef282d3ce1d8b35c032e. vox state by Flareguy", + "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/4f6190e2895e09116663ef282d3ce1d8b35c032e. vox state by Flareguy, no beard variant by Banedon", "size": { "x": 32, "y": 32 }, - "states": [ - { - "name": "icon" - }, - { - "name": "equipped-HELMET", - "directions": 4 - }, - { - "name": "equipped-HELMET-vox", - "directions": 4 - }, - { - "name": "inhand-left", - "directions": 4 - }, - { - "name": "inhand-right", - "directions": 4 - } - ] + "states": [ + { + "name": "icon-nobeard" + }, + { + "name": "icon" + }, + { + "name": "equipped-HELMET", + "directions": 4 + }, + { + "name": "nobeard-equipped-HELMET", + "directions": 4 + }, + { + "name": "equipped-HELMET-vox", + "directions": 4 + }, + { + "name": "nobeard-equipped-HELMET-vox", + "directions": 4 + }, + { + "name": "inhand-left", + "directions": 4 + }, + { + "name": "nobeard-inhand-left", + "directions": 4 + }, + { + "name": "inhand-right", + "directions": 4 + }, + { + "name": "nobeard-inhand-right", + "directions": 4 + } + ] } diff --git a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-equipped-HELMET-vox.png b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-equipped-HELMET-vox.png new file mode 100644 index 0000000000..db59861857 Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-equipped-HELMET-vox.png differ diff --git a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-equipped-HELMET.png b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-equipped-HELMET.png new file mode 100644 index 0000000000..8950c1a5e9 Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-equipped-HELMET.png differ diff --git a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-inhand-left.png b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-inhand-left.png new file mode 100644 index 0000000000..d3420b965a Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-inhand-left.png differ diff --git a/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-inhand-right.png b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-inhand-right.png new file mode 100644 index 0000000000..fc7cddd395 Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/santahat.rsi/nobeard-inhand-right.png differ