mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 00:35:45 +01:00
ntos ui icons (#7984)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -3,10 +3,8 @@
|
||||
tgui_id = "CrewMonitor"
|
||||
|
||||
/datum/tgui_module/crew_monitor/ui_assets(mob/user)
|
||||
return list(
|
||||
get_asset_datum(/datum/asset/simple/nanomaps),
|
||||
get_asset_datum(/datum/asset/simple/headers)
|
||||
)
|
||||
. = ..()
|
||||
. += get_asset_datum(/datum/asset/simple/nanomaps)
|
||||
|
||||
/datum/tgui_module/crew_monitor/tgui_act(action, params, datum/tgui/ui)
|
||||
if(..())
|
||||
|
||||
Reference in New Issue
Block a user