icon fixes (#7943)

This commit is contained in:
Cadyn
2024-03-12 07:44:38 +01:00
committed by GitHub
parent 1c58178b33
commit f591da28ad
19 changed files with 258 additions and 120 deletions
+11
View File
@@ -146,6 +146,13 @@ GLOBAL_LIST(tgui_modals)
var/datum/tgui_modal/input/bento/modal = new(id, text, delegate, arguments, value, choices)
return tgui_modal_new(source, modal)
//Bento but spritesheet edition
/datum/proc/tgui_modal_bento_spritesheet(datum/source = src, id, text = "Default modal message", delegate, arguments, value, choices)
ASSERT(length(id))
var/datum/tgui_modal/input/bento/spritesheet/modal = new(id, text, delegate, arguments, value, choices)
return tgui_modal_new(source, modal)
/**
* Opens a yes/no TGUI modal
*
@@ -339,6 +346,10 @@ GLOBAL_LIST(tgui_modals)
. = ..()
.["choices"] = choices
//Bento modal but takes spritesheet classes as choices
/datum/tgui_modal/input/bento/spritesheet
modal_type = "bentospritesheet"
/**
* Boolean modal - has yes/no buttons that do different actions depending on which is pressed
*/