mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
icon fixes (#15827)
* icon fixes * ntos ui icons --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
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
|
||||
*/
|
||||
|
||||
@@ -22,6 +22,13 @@ Code is pretty much ripped verbatim from nano modules, but with un-needed stuff
|
||||
/datum/tgui_module/tgui_host()
|
||||
return host ? host.tgui_host() : src
|
||||
|
||||
/datum/tgui_module/ui_assets(mob/user)
|
||||
var/list/data = list()
|
||||
var/obj/item/modular_computer/host = tgui_host()
|
||||
if(istype(host))
|
||||
data += get_asset_datum(/datum/asset/simple/headers)
|
||||
return data
|
||||
|
||||
/datum/tgui_module/tgui_close(mob/user)
|
||||
if(host)
|
||||
host.tgui_close(user)
|
||||
@@ -56,7 +63,7 @@ Code is pretty much ripped verbatim from nano modules, but with un-needed stuff
|
||||
|
||||
/datum/tgui_module/tgui_static_data()
|
||||
. = ..()
|
||||
|
||||
|
||||
var/obj/item/modular_computer/host = tgui_host()
|
||||
if(istype(host))
|
||||
. += host.get_header_data()
|
||||
|
||||
@@ -35,9 +35,8 @@
|
||||
return TRUE
|
||||
|
||||
/datum/tgui_module/atmos_control/ui_assets(mob/user)
|
||||
return list(
|
||||
get_asset_datum(/datum/asset/simple/nanomaps),
|
||||
)
|
||||
. = ..()
|
||||
. += get_asset_datum(/datum/asset/simple/nanomaps)
|
||||
|
||||
/datum/tgui_module/atmos_control/tgui_interact(mob/user, datum/tgui/ui = null)
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
|
||||
Reference in New Issue
Block a user