mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 21:27:01 +01:00
icon fixes (#7943)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user