mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-18 19:53:35 +01:00
[MIRROR] Food Synthesizers (#12885)
Co-authored-by: Poojawa <Poojawa@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3d332058f5
commit
725fac5bb3
@@ -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)
|
||||
Reference in New Issue
Block a user