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:
nikothedude
2023-11-12 18:11:08 -05:00
committed by GitHub
parent 56835f4148
commit 49414f7821
20 changed files with 296 additions and 47 deletions

View File

@@ -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))