mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
@@ -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()
|
||||
|
||||
+11
@@ -15,6 +15,17 @@ export const hair_color: Feature<string> = {
|
||||
component: FeatureColorInput,
|
||||
};
|
||||
|
||||
export const hair_gradient: FeatureChoiced = {
|
||||
name: "Hair gradient",
|
||||
component: FeatureDropdownInput,
|
||||
};
|
||||
|
||||
export const hair_gradient_color: Feature<string> = {
|
||||
name: "Hair gradient color",
|
||||
component: FeatureColorInput,
|
||||
};
|
||||
|
||||
|
||||
export const feature_human_ears: FeatureChoiced = {
|
||||
name: "Ears",
|
||||
component: FeatureDropdownInput,
|
||||
|
||||
Reference in New Issue
Block a user