Merge pull request #36558 from ShizCalev/player-pref-panel-revamp

Cleans up player/game preferences panel, adds admin combohud lighting preference
This commit is contained in:
vuonojenmustaturska
2018-03-28 15:52:42 +03:00
committed by GitHub
3 changed files with 196 additions and 102 deletions
+5 -4
View File
@@ -1036,10 +1036,11 @@ GLOBAL_LIST_EMPTY(custom_outfits) //Admin created outfits
for(var/datum/atom_hud/antag/H in GLOB.huds) // add antag huds
(adding_hud) ? H.add_hud_to(usr) : H.remove_hud_from(usr)
if (adding_hud)
mob.lighting_alpha = LIGHTING_PLANE_ALPHA_INVISIBLE
else
mob.lighting_alpha = initial(mob.lighting_alpha)
if(prefs.toggles & COMBOHUD_LIGHTING)
if(adding_hud)
mob.lighting_alpha = LIGHTING_PLANE_ALPHA_INVISIBLE
else
mob.lighting_alpha = initial(mob.lighting_alpha)
mob.update_sight()