mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Fix a bunch of html UI's for 516 (#88917)
## About The Pull Request Moved broken on 516 UI's to browser datum They now work and have a dark theme Most of them are admin ones (All except 1) I tried to check all the raw HTML UI's by typing `<< browse(` into the VSC search and going through each element, but I might have missed something. What worked as it was, I didn't touch, except for the Dynamic control UI's ## Why It's Good For The Game Admin can do their things on 516 Coders/Mappers can debug some stuff on 516  ## Changelog 🆑 fix: Admin/Debug UI's (Especially the Game Panel) now work properly on Byond 516, instead of showing raw HTML /🆑
This commit is contained in:
@@ -482,7 +482,9 @@ ADMIN_VERB(modify_goals, R_ADMIN, "Modify Goals", "Modify the station goals for
|
||||
for(var/datum/station_goal/goal as anything in SSstation.get_station_goals())
|
||||
dat += "[goal.name] - <a href='byond://?src=[REF(goal)];[HrefToken()];announce=1'>Announce</a> | <a href='byond://?src=[REF(goal)];[HrefToken()];remove=1'>Remove</a><br>"
|
||||
dat += "<br><a href='byond://?src=[REF(src)];[HrefToken()];add_station_goal=1'>Add New Goal</a>"
|
||||
usr << browse(dat, "window=goals;size=400x400")
|
||||
var/datum/browser/browser = new(usr, "goals", "Modify Goals", 400, 400)
|
||||
browser.set_content(dat)
|
||||
browser.open()
|
||||
|
||||
ADMIN_VERB(debug_mob_lists, R_DEBUG, "Debug Mob Lists", "For when you just gotta know.", ADMIN_CATEGORY_DEBUG)
|
||||
var/chosen_list = tgui_input_list(user, "Which list?", "Select List", list("Players","Admins","Mobs","Living Mobs","Dead Mobs","Clients","Joined Clients"))
|
||||
@@ -541,7 +543,9 @@ ADMIN_VERB(display_overlay_log, R_DEBUG, "Display Overlay Log", "Display SSoverl
|
||||
render_stats(SSoverlays.stats, user)
|
||||
|
||||
ADMIN_VERB(init_log, R_DEBUG, "Display Initialize() Log", "Displays a list of things that didn't handle Initialize() properly.", ADMIN_CATEGORY_DEBUG)
|
||||
user << browse(replacetext(SSatoms.InitLog(), "\n", "<br>"), "window=initlog")
|
||||
var/datum/browser/browser = new(user, "initlog", "Initialize Log", 500, 500)
|
||||
browser.set_content(replacetext(SSatoms.InitLog(), "\n", "<br>"))
|
||||
browser.open()
|
||||
|
||||
ADMIN_VERB(debug_color_test, R_DEBUG, "Colorblind Testing", "Change your view to a budget version of colorblindness to test for usability.", ADMIN_CATEGORY_DEBUG)
|
||||
user.holder.color_test.ui_interact(user.mob)
|
||||
@@ -724,13 +728,15 @@ ADMIN_VERB(check_timer_sources, R_DEBUG, "Check Timer Sources", "Checks the sour
|
||||
var/bucket_list_output = generate_timer_source_output(SStimer.bucket_list)
|
||||
var/second_queue = generate_timer_source_output(SStimer.second_queue)
|
||||
|
||||
user << browse({"
|
||||
var/datum/browser/browser = new(user, "check_timer_sources", "Timer Sources", 700, 700)
|
||||
browser.set_content({"
|
||||
<h3>bucket_list</h3>
|
||||
[bucket_list_output]
|
||||
|
||||
<h3>second_queue</h3>
|
||||
[second_queue]
|
||||
"}, "window=check_timer_sources;size=700x700")
|
||||
"})
|
||||
browser.open()
|
||||
|
||||
ADMIN_VERB(reestablish_tts_connection, R_DEBUG, "Re-establish Connection To TTS", "Re-establishes connection to the TTS server if possible", ADMIN_CATEGORY_DEBUG)
|
||||
message_admins("[key_name_admin(user)] attempted to re-establish connection to the TTS HTTP server.")
|
||||
|
||||
Reference in New Issue
Block a user