mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-05 14:17:12 +01:00
b2f4cc70e9
## About The Pull Request This adds a few more regular glasses options to the nearsighted pref menu: - Random - Jamjar - Binoclard It also displays the icons for the TGUI dropdown menu. ## Why It's Good For The Game More variety and better visualization. (nearsighted... get it?) ## Changelog 🆑 qol: Add more glasses to the nearsighted pref menu with icons /🆑 --------- Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
25 lines
792 B
Plaintext
25 lines
792 B
Plaintext
/datum/preference/choiced/glasses
|
|
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
|
|
savefile_key = "glasses"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
should_generate_icons = TRUE
|
|
|
|
/datum/preference/choiced/glasses/init_possible_values()
|
|
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))
|
|
return FALSE
|
|
|
|
return "Nearsighted" in preferences.all_quirks
|
|
|
|
/datum/preference/choiced/glasses/apply_to_human(mob/living/carbon/human/target, value)
|
|
return
|