mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 14:37:04 +01:00
final major 516 fixes (#27676)
This commit is contained in:
@@ -19,21 +19,18 @@
|
||||
// Failed to fix
|
||||
action = alert(src, "Did that work?", "", "Yes", "No, switch to old ui")
|
||||
if(action == "No, switch to old ui")
|
||||
winset(src, "output", "on-show=&is-disabled=0&is-visible=1")
|
||||
winset(src, "chat_panel", "is-disabled=1;is-visible=0")
|
||||
winset(src, "legacy_output_selector", "left=output_legacy")
|
||||
log_tgui(src, "Failed to fix.")
|
||||
|
||||
/client/proc/nuke_chat()
|
||||
// Catch all solution (kick the whole thing in the pants)
|
||||
winset(src, "output", "on-show=&is-disabled=0&is-visible=1")
|
||||
winset(src, "chat_panel", "is-disabled=1;is-visible=0")
|
||||
winset(src, "legacy_output_selector", "left=output_legacy")
|
||||
if(!tgui_panel || !istype(tgui_panel))
|
||||
log_tgui(src, "tgui_panel datum is missing")
|
||||
tgui_panel = new(src, "chat_panel")
|
||||
tgui_panel.initialize(force = TRUE)
|
||||
// Force show the panel to see if there are any errors
|
||||
winset(src, "output", "is-disabled=1&is-visible=0")
|
||||
winset(src, "chat_panel", "is-disabled=0;is-visible=1")
|
||||
winset(src, "legacy_output_selector", "left=output_browser")
|
||||
if(byond_version >= 516)
|
||||
winset(src, null, "browser-options=byondstorage,find")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user