[MIRROR] Moves hair gradients to the preferences menu [MDB IGNORE] (#8847)

* Moves hair gradients to the preferences menu (#62102)

* Hmm yes.

* let's not make everyone have rainbow hair

* Update basic.dm

* Undoes the dyekit removal!

* Update tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/species_features.tsx

* Update tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/species_features.tsx

* Update basic.dm

* Moves hair gradients to the preferences menu

Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-10-16 01:28:26 +01:00
committed by GitHub
co-authored by Gandalf
parent 2acb56b5fa
commit 3fce7a4cb4
2 changed files with 35 additions and 0 deletions
@@ -99,3 +99,27 @@
data[SUPPLEMENTAL_FEATURE_KEY] = "hair_color"
return data
/datum/preference/choiced/hair_gradient
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
savefile_identifier = PREFERENCE_CHARACTER
savefile_key = "hair_gradient"
/datum/preference/choiced/hair_gradient/init_possible_values()
return assoc_to_keys(GLOB.hair_gradients_list)
/datum/preference/choiced/hair_gradient/apply_to_human(mob/living/carbon/human/target, value)
target.grad_style = value
target.update_hair()
/datum/preference/choiced/hair_gradient/create_default_value()
return "None"
/datum/preference/color/hair_gradient
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
savefile_identifier = PREFERENCE_CHARACTER
savefile_key = "hair_gradient_color"
/datum/preference/color/hair_gradient/apply_to_human(mob/living/carbon/human/target, value)
target.grad_color = value
target.update_hair()