mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
Adds a little button to quirks that allows for relatively easy customization (#79251)
## About The Pull Request Title. Adds a little cog button that expands a popper with a preference list of relevant preferences. https://github.com/tgstation/tgstation/assets/59709059/5718ad5d-fadb-489f-9a31-9e7173c6f35a ## Why It's Good For The Game Customizable quirks are cool. Having a proper framework for customizable quirks is even cooler. Good UX is even COOLER. ## Changelog 🆑 code: Quirks are now customizable on the quirks page instead of on the character prefs page /🆑 --------- Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -314,13 +314,13 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
if (!preference.is_accessible(src))
|
||||
continue
|
||||
|
||||
LAZYINITLIST(preferences[preference.category])
|
||||
|
||||
var/value = read_preference(preference.type)
|
||||
var/data = preference.compile_ui_data(user, value)
|
||||
|
||||
LAZYINITLIST(preferences[preference.category])
|
||||
preferences[preference.category][preference.savefile_key] = data
|
||||
|
||||
|
||||
for (var/datum/preference_middleware/preference_middleware as anything in middleware)
|
||||
var/list/append_character_preferences = preference_middleware.get_character_preferences(user)
|
||||
if (isnull(append_character_preferences))
|
||||
|
||||
Reference in New Issue
Block a user