Added sprites for openable ingredients (#41923)

* dont you hate it when you open your bag, but it stays closed?

* linting my yml
This commit is contained in:
korczoczek 2025-12-20 19:21:49 +01:00 committed by GitHub
parent 000c2e9b5d
commit 77036e8cdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 79 additions and 7 deletions

View file

@ -84,8 +84,17 @@
name: flour bag
description: A big bag of flour. Good for baking!
components:
- type: Appearance
- type: GenericVisualizer
visuals:
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: {state: "flour-big_open"} # open
False: {state: "flour-big"} # closed
- type: Sprite
state: flour-big
layers:
- state: flour-big
map: ["enum.OpenableVisuals.Layer"]
- type: SolutionContainerManager
solutions:
food:
@ -116,8 +125,17 @@
name: cornmeal bag
description: A big bag of cornmeal. Good for cooking!
components:
- type: Appearance
- type: GenericVisualizer
visuals:
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: {state: "cornmeal-big_open"} # open
False: {state: "cornmeal-big"} # closed
- type: Sprite
state: cornmeal-big
layers:
- state: cornmeal-big
map: ["enum.OpenableVisuals.Layer"]
- type: SolutionContainerManager
solutions:
food:
@ -147,8 +165,17 @@
name: rice bag
description: A big bag of rice. Good for cooking!
components:
- type: Appearance
- type: GenericVisualizer
visuals:
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: {state: "rice-big_open"} # open
False: {state: "rice-big"} # closed
- type: Sprite
state: rice-big
layers:
- state: rice-big
map: ["enum.OpenableVisuals.Layer"]
- type: SolutionContainerManager
solutions:
food:
@ -178,8 +205,17 @@
name: sugar bag
description: A big bag of tasty spacey sugar.
components:
- type: Appearance
- type: GenericVisualizer
visuals:
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: {state: "sugar-big_open"} # open
False: {state: "sugar-big"} # closed
- type: Sprite
state: sugar-big
layers:
- state: sugar-big
map: ["enum.OpenableVisuals.Layer"]
- type: SolutionContainerManager
solutions:
food:
@ -211,8 +247,17 @@
name: olive oil
description: Olive oil. From space olives presumably.
components:
- type: Appearance
- type: GenericVisualizer
visuals:
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: {state: "oliveoil_open"} # open
False: {state: "oliveoil"} # closed
- type: Sprite
state: oliveoil
layers:
- state: oliveoil
map: ["enum.OpenableVisuals.Layer"]
- type: SolutionContainerManager
solutions:
food:
@ -229,8 +274,17 @@
name: mayonnaise
description: Bottle of mayonnaise.
components:
- type: Appearance
- type: GenericVisualizer
visuals:
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: {state: "mayo_open"} # open
False: {state: "mayo"} # closed
- type: Sprite
state: mayo
layers:
- state: mayo
map: ["enum.OpenableVisuals.Layer"]
- type: SolutionContainerManager
solutions:
food:

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

View file

@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation and baystation and modified by potato1234x at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 and https://github.com/Baystation12/Baystation12/commit/a6067826de7fd8f698793f6d84e6c2f1f9b1f188. Tofu and tofu-slice were created by Discord user rosysyntax#6514. Chevrelog and chevredisk created by Github user deathride58, tortilladough tortillaflat and tortillaslice added by Phunny, butter-slice and croissant-raw taken from tgstation at commit https://github.com/tgstation/tgstation/commit/7ffd61b6fa6a6183daa8900f9a490f46f7a81955, cotton made by mlexf (discord 1143460554963427380). Croissant-raw-cotton, cotton-dough-slice and cotton-dough-rope by JuneSzalkowska, cloth-box by Janet Blackquill <uhhadd@gmail.com> 2024. Cheese wedge inhand by Orsoniks.",
"copyright": "Taken from tgstation and baystation and modified by potato1234x at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 and https://github.com/Baystation12/Baystation12/commit/a6067826de7fd8f698793f6d84e6c2f1f9b1f188. Tofu and tofu-slice were created by Discord user rosysyntax#6514. Chevrelog and chevredisk created by Github user deathride58, tortilladough tortillaflat and tortillaslice added by Phunny, butter-slice and croissant-raw taken from tgstation at commit https://github.com/tgstation/tgstation/commit/7ffd61b6fa6a6183daa8900f9a490f46f7a81955, cotton made by mlexf (discord 1143460554963427380). Croissant-raw-cotton, cotton-dough-slice and cotton-dough-rope by JuneSzalkowska, cloth-box by Janet Blackquill <uhhadd@gmail.com> 2024. Cheese wedge inhand by Orsoniks. Opened variants of olive oil, mayo and cornmeal, flour, rice and sugar bags by korczoczek, based on the unopened sprites",
"size": {
"x": 32,
"y": 32
@ -42,6 +42,9 @@
{
"name": "cornmeal-big"
},
{
"name": "cornmeal-big_open"
},
{
"name": "cornmealdough"
},
@ -84,21 +87,33 @@
{
"name": "flour-big"
},
{
"name": "flour-big_open"
},
{
"name": "flour-small"
},
{
"name": "mayo"
},
{
"name": "mayo_open"
},
{
"name": "oliveoil"
},
{
"name": "oliveoil_open"
},
{
"name": "pizzabread"
},
{
"name": "rice-big"
},
{
"name": "rice-big_open"
},
{
"name": "rice-small"
},
@ -114,6 +129,9 @@
{
"name": "sugar-big"
},
{
"name": "sugar-big_open"
},
{
"name": "sugar-small"
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B