boolean... (#19205)

* boolean...

* move to right secton

* disconnect should be red

* sync all styles

* more ui theming

* radio

* also fix that
This commit is contained in:
Kashargul
2026-02-20 21:42:08 +01:00
committed by GitHub
parent 5cff3b2d1d
commit f7412d11fb
28 changed files with 86 additions and 51 deletions
+1 -3
View File
@@ -57,9 +57,7 @@
var/datum/asset/spritesheet_batched/robot_icons/spritesheet = GLOB.robot_sprite_sheets[target.modtype]
if(target)
var/ui_theme = target.get_ui_theme()
if(ui_theme)
.["theme"] = ui_theme
.["theme"] = target.get_ui_theme()
.["target"] = list()
.["target"]["name"] = target.name
.["target"]["ckey"] = target.ckey
@@ -310,7 +310,7 @@
"deliveryslot_3" = deliveryslot_3,
"items_preserved" = items_preserved,
"has_destructive_analyzer" = analyzer,
"techweb_name" = handler?.linked_web ? "[handler.linked_web.id] / [handler.linked_web.organization]" : "Disconnected",
"techweb_name" = handler?.linked_web ? "[handler.linked_web.id] / [handler.linked_web.organization]" : null
)
return data
/obj/item/dogborg/sleeper/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
@@ -50,7 +50,7 @@
var/shown_robot_modules = 0 //Used to determine whether they have the module menu shown or not
var/atom/movable/screen/robot_modules_background
var/ui_theme
var/ui_theme = "ntos"
var/selecting_module = FALSE
//3 Modules can be activated at any one time.
@@ -52,6 +52,7 @@
..()
/datum/robot_sprite/dogborg/command
sprite_hud_icon_state = "clerical"
name = "Commandhound V2"
sprite_icon_state = "kcom"
has_eye_light_sprites = TRUE
+6
View File
@@ -34,6 +34,12 @@
/obj/item/pda/ai/can_use()
return 1
/obj/item/pda/ai/tgui_static_data(mob/user)
. = ..()
if(isrobot(loc))
var/mob/living/silicon/robot/robot_owner = loc
.["theme"] = robot_owner.get_ui_theme()
/obj/item/pda/ai/attack_self(mob/user)
. = ..(user)
if(.)
@@ -314,6 +314,13 @@
ui = new(user, src, "ExperimentConfigure", "[parent_atom ? "[parent_atom.name] | " : ""]Experiment Configuration")
ui.open()
/datum/component/experiment_handler/tgui_static_data(mob/user)
. = ..()
var/atom/parent_atom = parent
if(isrobot(parent_atom.loc))
var/mob/living/silicon/robot/owner_robot = parent_atom.loc
.["theme"] = owner_robot.get_ui_theme()
/datum/component/experiment_handler/tgui_data(mob/user)
. = list(
"always_active" = (config_flags & EXPERIMENT_CONFIG_ALWAYS_ACTIVE),
@@ -172,6 +172,12 @@
ui = new(user, src, "XenoarchDepthScanner", name)
ui.open()
/obj/item/depth_scanner/tgui_static_data(mob/user)
. = ..()
if(isrobot(loc))
var/mob/living/silicon/robot/robot_owner = loc
.["theme"] = robot_owner.get_ui_theme()
/obj/item/depth_scanner/tgui_data(mob/user, datum/tgui/ui, datum/tgui_state/state)
var/list/data = ..()