Adds radio silencing admin preference to admin preferences (#40827)

This commit is contained in:
ShizCalev
2018-10-12 04:25:02 -04:00
committed by Emmett Gaines
parent fcbb231923
commit e852aad5de
+8 -2
View File
@@ -585,6 +585,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "<b>Announce Login:</b> <a href='?_src_=prefs;preference=announce_login'>[(toggles & ANNOUNCE_LOGIN)?"Enabled":"Disabled"]</a><br>"
dat += "<br>"
dat += "<b>Combo HUD Lighting:</b> <a href = '?_src_=prefs;preference=combohud_lighting'>[(toggles & COMBOHUD_LIGHTING)?"Full-bright":"No Change"]</a><br>"
dat += "<br>"
dat += "<b>Silence Radio Messages:</b> <a href = '?_src_=prefs;preference=toggle_radio_chatter'>[(chat_toggles & CHAT_RADIO)?"Disabled":"Enabled"]</a><br>"
dat += "</td>"
dat += "</tr></table>"
@@ -1376,12 +1378,16 @@ GLOBAL_LIST_EMPTY(preferences_datums)
tgui_lock = !tgui_lock
if("winflash")
windowflashing = !windowflashing
//here lies the badmins
if("hear_adminhelps")
toggles ^= SOUND_ADMINHELP
user.client.toggleadminhelpsound()
if("announce_login")
toggles ^= ANNOUNCE_LOGIN
user.client.toggleannouncelogin()
if("combohud_lighting")
toggles ^= COMBOHUD_LIGHTING
if("toggle_radio_chatter")
user.client.toggle_hear_radio()
if("be_special")
var/be_special_type = href_list["be_special_type"]