mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-08-22 20:26:15 +01:00
Does this work? NO IDEA
This commit is contained in:
@@ -279,7 +279,7 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
|
||||
continue
|
||||
|
||||
if(C.prefs)//supposedly fixes a runtime with the following lines. Ripped from OldPollo. I miss you, Lads. :(
|
||||
if(C.prefs.toggles & CHAT_OOC)
|
||||
if(C.prefs.toggles & ANNOUNCE_LOGINP)
|
||||
to_chat(world, "<span class='notice'><b>[src.key] has connected to the server.</b></span>")
|
||||
|
||||
if(C.prefs.toggles)
|
||||
|
||||
@@ -981,6 +981,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
dat += "<b>Play Lobby Music:</b> <a href='?_src_=prefs;preference=lobby_music'>[(toggles & SOUND_LOBBY) ? "Enabled":"Disabled"]</a><br>"
|
||||
dat += "<b>See Pull Requests:</b> <a href='?_src_=prefs;preference=pull_requests'>[(chat_toggles & CHAT_PULLR) ? "Enabled":"Disabled"]</a><br>"
|
||||
dat += "<br>"
|
||||
dat += "<b>Announce Login:</b> <a href='?_src_=prefs;preference=announce_loginp'>[(toggles & ANNOUNCE_LOGINP)?"Enabled":"Disabled"]</a><br>"
|
||||
dat += "<br>"
|
||||
if(user.client)
|
||||
if(unlock_content)
|
||||
dat += "<b>BYOND Membership Publicity:</b> <a href='?_src_=prefs;preference=publicity'>[(toggles & MEMBER_PUBLIC) ? "Public" : "Hidden"]</a><br>"
|
||||
@@ -2635,6 +2637,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
else
|
||||
be_special += list(be_special_type)
|
||||
|
||||
if("announce_loginp")
|
||||
toggles ^= ANNOUNCE_LOGINP
|
||||
|
||||
if("name")
|
||||
be_random_name = !be_random_name
|
||||
|
||||
|
||||
@@ -365,6 +365,17 @@ GLOBAL_LIST_INIT(ghost_orbits, list(GHOST_ORBIT_CIRCLE,GHOST_ORBIT_TRIANGLE,GHOS
|
||||
to_chat(src, "<span class='notice'>You will no longer examine things you click on.</span>")
|
||||
SSblackbox.record_feedback("nested tally", "preferences_verb", 1, list("Toggle Ghost Inquisitiveness", "[prefs.inquisitive_ghost ? "Enabled" : "Disabled"]"))
|
||||
|
||||
/client/proc/toggleannounceloginplayer()
|
||||
set name = "Do/Don't Announce Player Login"
|
||||
set category = "Preferences"
|
||||
set desc = "Toggle if you want an announcement to the server when you login during a round"
|
||||
if(!holder)
|
||||
return
|
||||
prefs.toggles ^= ANNOUNCE_LOGINP
|
||||
prefs.save_preferences()
|
||||
to_chat(usr, "You will [(prefs.toggles & ANNOUNCE_LOGINP) ? "now" : "no longer"] have an announcement to other players when you login.")
|
||||
SSblackbox.record_feedback("nested tally", "preferences_verb", 1, list("Toggle Player Login Announcement", "[prefs.toggles & ANNOUNCE_LOGINP ? "Enabled" : "Disabled"]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
//Admin Preferences
|
||||
/client/proc/toggleadminhelpsound()
|
||||
set name = "Hear/Silence Adminhelps"
|
||||
|
||||
Reference in New Issue
Block a user