From 158e70df990fce070dd862d92f8f9de95d28ce06 Mon Sep 17 00:00:00 2001 From: actioninja Date: Thu, 9 Apr 2020 19:03:45 -0700 Subject: [PATCH] remove deprecated style var --- code/datums/components/uplink.dm | 1 - code/game/machinery/launch_pad.dm | 1 - .../antagonists/nukeop/equipment/nuclearbomb.dm | 2 -- code/modules/tgui/tgui.dm | 14 -------------- 4 files changed, 18 deletions(-) diff --git a/code/datums/components/uplink.dm b/code/datums/components/uplink.dm index 3dd4ebfaa62..20a550c3b83 100644 --- a/code/datums/components/uplink.dm +++ b/code/datums/components/uplink.dm @@ -127,7 +127,6 @@ if(!ui) ui = new(user, src, ui_key, "Uplink", name, 620, 580, master_ui, state) ui.set_autoupdate(FALSE) // This UI is only ever opened by one person, and never is updated outside of user input. - ui.set_style("syndicate") ui.open() /datum/component/uplink/ui_data(mob/user) diff --git a/code/game/machinery/launch_pad.dm b/code/game/machinery/launch_pad.dm index 2776c05da9e..152e5995e76 100644 --- a/code/game/machinery/launch_pad.dm +++ b/code/game/machinery/launch_pad.dm @@ -325,7 +325,6 @@ ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui) ui = new(user, src, ui_key, "Launchpad", "Briefcase Launchpad Remote", 300, 240, master_ui, state) //width, height - ui.set_style("syndicate") ui.open() ui.set_autoupdate(TRUE) diff --git a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm index 1d7c0bd5458..cc67881e715 100644 --- a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm +++ b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm @@ -7,7 +7,6 @@ density = TRUE resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF - ui_style = "nanotrasen" ui_x = 350 ui_y = 442 @@ -265,7 +264,6 @@ ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui) ui = new(user, src, ui_key, "NuclearBomb", name, ui_x, ui_y, master_ui, state) - ui.set_style(ui_style) ui.open() /obj/machinery/nuclearbomb/ui_data(mob/user) diff --git a/code/modules/tgui/tgui.dm b/code/modules/tgui/tgui.dm index 91d0021d8d8..b225758a7fd 100644 --- a/code/modules/tgui/tgui.dm +++ b/code/modules/tgui/tgui.dm @@ -22,8 +22,6 @@ var/width = 0 /// The window height var/height = 0 - /// The style to be used for this UI. - var/style = "nanotrasen" /// The interface (template) to be used for this UI. var/interface /// Update the UI every MC tick. @@ -121,7 +119,6 @@ // NOTE: Intentional \ref usage; tgui datums can't/shouldn't // be tagged, so this is an effective unwrap html = replacetextEx(html, "\[ref]", "\ref[src]") - html = replacetextEx(html, "\[style]", style) // Open the window. user << browse(html, "window=[window_id];can_minimize=0;auto_format=0;[window_size][have_title_bar]") @@ -172,16 +169,6 @@ master_ui = null qdel(src) - /** - * public - * - * Set the style for this UI. - * - * required style string The new UI style. - **/ -/datum/tgui/proc/set_style(style) - src.style = lowertext(style) - /** * public * @@ -207,7 +194,6 @@ "title" = title, "status" = status, "screen" = ui_screen, - "style" = style, "interface" = interface, "fancy" = user.client.prefs.tgui_fancy, "locked" = user.client.prefs.tgui_lock && !custom_browser_id,