mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 09:35:30 +01:00
[MIRROR] Add glasses and icons to preference menu for nearsighted [MDB IGNORE] (#21563)
* Add glasses and icons to preference menu for nearsighted * fix * forgot modular edit --------- Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: ghost sheep <sheepwiththemask@gmail.com>
This commit is contained in:
@@ -2,9 +2,17 @@
|
||||
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
|
||||
savefile_key = "glasses"
|
||||
savefile_identifier = PREFERENCE_CHARACTER
|
||||
should_generate_icons = TRUE
|
||||
|
||||
/datum/preference/choiced/glasses/init_possible_values()
|
||||
return GLOB.nearsighted_glasses
|
||||
var/list/values = list()
|
||||
|
||||
values["Random"] = icon('icons/effects/random_spawners.dmi', "questionmark")
|
||||
|
||||
for(var/glass_design in GLOB.nearsighted_glasses - "Random")
|
||||
values[glass_design] = icon('icons/obj/clothing/glasses.dmi', "glasses_[lowertext(glass_design)]")
|
||||
|
||||
return values
|
||||
|
||||
/datum/preference/choiced/glasses/is_accessible(datum/preferences/preferences)
|
||||
if (!..(preferences))
|
||||
|
||||
Reference in New Issue
Block a user