some more 516 compat fixes (#89766)

Ports the helpers from
https://github.com/BeeStation/BeeStation-Hornet/pull/12240

This should fix some more of the 516 issues that I've seen while giving
a quick check through the code

The remaining browse should work now.

Also fixing another sass warning while being on it.

## About The Pull Request
## Why It's Good For The Game
## Changelog
🆑
fix: tgui say 516 will no longer change channels when the button is used
to drag it
fix: tgui say 516 will no longer leak radio messages into the wrong
channel
fix: runechat flickering when faded up messages fade out
/🆑
This commit is contained in:
Kashargul
2025-03-03 15:15:07 +01:00
committed by GitHub
parent 782397ad81
commit dfa7f2bb62
14 changed files with 57 additions and 33 deletions
+6 -6
View File
@@ -20,7 +20,7 @@ GLOBAL_PROTECT(poll_options)
continue
output += "<tr bgcolor='#e2e2e2'><td><a href='byond://?src=[rs];viewpoll=[REF(poll)]'><b>[poll.question]</b></a></td></tr>"
output += "</table>"
src << browse(jointext(output, ""),"window=playerpolllist;size=500x300")
src << browse(HTML_SKELETON(jointext(output, "")),"window=playerpolllist;size=500x300")
/**
* Redirects a player to the correct poll window based on poll type.
@@ -86,7 +86,7 @@ GLOBAL_PROTECT(poll_options)
if(!voted_option_id || poll.allow_revoting)
output += "<p><input type='submit' value='Vote'></form>"
output += "</div>"
src << browse(jointext(output, ""),"window=playerpoll;size=500x250")
src << browse(HTML_SKELETON(jointext(output, "")),"window=playerpoll;size=500x250")
/**
* Shows voting window for a text response type poll, listing its relevant details.
@@ -123,7 +123,7 @@ GLOBAL_PROTECT(poll_options)
else
output += "[reply_text]"
output += "</div>"
src << browse(jointext(output, ""),"window=playerpoll;size=500x500")
src << browse(HTML_SKELETON(jointext(output, "")),"window=playerpoll;size=500x500")
/**
* Shows voting window for a rating type poll, listing its options and relevant details.
@@ -178,7 +178,7 @@ GLOBAL_PROTECT(poll_options)
if(!length(voted_ratings) || poll.allow_revoting)
output += "<p><input type='submit' value='Submit'></form>"
output += "</div>"
src << browse(jointext(output, ""),"window=playerpoll;size=500x500")
src << browse(HTML_SKELETON(jointext(output, "")),"window=playerpoll;size=500x500")
/**
* Shows voting window for a multiple choice type poll, listing its options and relevant details.
@@ -222,7 +222,7 @@ GLOBAL_PROTECT(poll_options)
if(!length(voted_for) || poll.allow_revoting)
output += "<p><input type='submit' value='Vote'></form>"
output += "</div>"
src << browse(jointext(output, ""),"window=playerpoll;size=500x300")
src << browse(HTML_SKELETON(jointext(output, "")),"window=playerpoll;size=500x300")
/**
* Shows voting window for an IRV type poll, listing its options and relevant details.
@@ -307,7 +307,7 @@ GLOBAL_PROTECT(poll_options)
output += "</ol><b><center>Least Preferred</center></b><br>"
if(!length(voted_for) || poll.allow_revoting)
output += "<p><input type='submit' value='Vote'></form>"
output += "</div>"
output += "</div></html>"
src << browse(jointext(output, ""),"window=playerpoll;size=500x500")
/**