Gets rid of the config portion of this UI

This commit is contained in:
nullbear
2016-04-19 09:10:25 -07:00
parent ec1f1db557
commit b8a5871f84
5 changed files with 36 additions and 15 deletions
+5
View File
@@ -39,6 +39,7 @@ var/list/preferences_datums = list()
var/ghost_hud = 1
var/inquisitive_ghost = 1
var/allow_midround_antag = 1
var/hide_recipes = 0
var/preferred_map = null
//character preferences
@@ -343,6 +344,7 @@ var/list/preferences_datums = list()
dat += "<b>Ghost pda:</b> <a href='?_src=prefs;preference=ghost_pda'>[(chat_toggles & CHAT_GHOSTPDA) ? "All Messages" : "Nearest Creatures"]</a><br>"
dat += "<b>Pull requests:</b> <a href='?_src_=prefs;preference=pull_requests'>[(chat_toggles & CHAT_PULLR) ? "Yes" : "No"]</a><br>"
dat += "<b>Midround Antagonist:</b> <a href='?_src_=prefs;preference=allow_midround_antag'>[(toggles & MIDROUND_ANTAG) ? "Yes" : "No"]</a><br>"
dat += "<b>Hide uncraftable recipes:</b> <a href='?_src_=prefs;preference=hide_recipes'>[(toggles & HIDE_RECIPES) ? "Yes" : "No"]</a><br>"
if(config.allow_Metadata)
dat += "<b>OOC Notes:</b> <a href='?_src_=prefs;preference=metadata;task=input'>Edit </a><br>"
@@ -1123,6 +1125,9 @@ var/list/preferences_datums = list()
if("allow_midround_antag")
toggles ^= MIDROUND_ANTAG
if("hide_recipes")
toggles ^= HIDE_RECIPES
if("save")
save_preferences()
save_character()
@@ -115,6 +115,15 @@
src << "You will [(prefs.toggles & MIDROUND_ANTAG) ? "now" : "no longer"] be considered for midround antagonist positions."
feedback_add_details("admin_verb","TMidroundA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/togglehiderecipes()
set name = "Toggle Hidden Recipes"
set category = "Preferences"
set desc = "Toggles whether or not recipes you have no components for will be hidden from the tablecrafting menu."
prefs.toggles ^= HIDE_RECIPES
prefs.save_preferences()
src << "Recipes will [(prefs.toggles & HIDE_RECIPES) ? "now" : "no longer"] be hidden if you have no matching components."
feedback_add_details("admin_verb", "HiddenRecipes")
/client/verb/toggletitlemusic()
set name = "Hear/Silence LobbyMusic"
set category = "Preferences"