Food Synthesizers (#19569)

* Food Synthesizers

Initial port, need to figure out what madness you people have done to tgui... and sprite sheets.

At this moment, it compiles but I haven't tested it yet.  Too eepy

* iconforge spritesheet nonsense

* Cleaning up tgui menu

full disclosure, After six plus hours of trying to figure out how to do the spritesheets  and the tgui stuff I just gave up on this particular bit and threw it into Gemini for a looksie over.

As it's originally my code I figure it's worth at least a reasonable proof read. The side-by-side comparison is pretty wild.

* Passes tgu-lint building

* Appease Gripe err Grep checks

* Oh these for the grep as well whoops

* Sorts out the backend

also piss off linter check, it's COMMENTED OUT aaaaaaaaaa.

* changes from will

* changes from will and some UI splitting, needs proper testing and final adjustments

* passadata

* .

* can be combined

* .

* ml={1}

* id

* Crew category

* id handling

* .

* more cleanup

* smaller cleanup

* why not

* deps up, minor tgui core fix

* timer

* .

* .

* missed to put that back

* order

* this

* Change preference category for foodsynth cookies

* Enforce south facement for cookie image

* Maurice I am no longer asking

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Poojawa
2026-07-09 13:50:35 -05:00
committed by GitHub
parent 9a8be3b591
commit ba0fd0be33
26 changed files with 2378 additions and 47 deletions
@@ -0,0 +1,15 @@
//Let's be optimal with our menu preview icons, shall we?
/datum/asset/spritesheet_batched/synthesizer
name = "synthesizer"
/datum/asset/spritesheet_batched/synthesizer/create_spritesheets()
for(var/datum/category_item/synthesizer/path as anything in subtypesof(/datum/category_item/synthesizer))
var/datum/universal_icon/icon = get_display_icon_for(path::build_path)
if(!icon || !icon.icon_file)
continue
icon.scale(128, 128) //enbiggen for the menu UI
var/key = sanitize_css_class_name("[path::type]")
insert_icon(key, icon)