Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Settings overhaul #123

Merged
merged 14 commits into from
Sep 30, 2022
Merged

Settings overhaul #123

merged 14 commits into from
Sep 30, 2022

Conversation

oliversalzburg
Copy link
Owner

Reorganizes the layout of the settings data

Part 1 of a series of refactorings to create a more useful, decoupled
settings landscape.
We no longer want to rely on object hashes and a global settings object.
Step 2 moves most accesses to settings into the managers. The global options object has been removed.
Step 3 moves all settings from `addition` blocks into their parrent settings container. This will make the next steps a lot less painful.
Step 4 provides `load()` interfaces on the manager to load new values into their settings.
Remove remaining reliance on `Options` when not interacting with the the (currently only existing) legacy settings storage.
This is still not surfaced in the UI, but the feature was always partially implemented and will be fully restored.
"Managers" should clearly relate to specific tabs in the game. Classes which serve other use cases should be in their own space.
Make all managers reference each other and use the single true settings object for each manager.
This enables setting the cap for resources to craft.
Ultimately, we want to have no more `css : ...` arguments for jQuery and control all styling through a common set of rules.
While the two UIs share similar functionality, it has been in distinct methods all along. It should be refactored into common parts later.
Stock indicators have already been added in a more visible way. If stock indicators should be extended or improved, it should happen on the established code path.
@oliversalzburg
Copy link
Owner Author

At this point, it's likely stable enough that further work can happen on the main branch. The changes are too extensive to integrate fixes we need right now.

@oliversalzburg oliversalzburg merged commit 94de71d into main Sep 30, 2022
@oliversalzburg oliversalzburg deleted the feat/fettings-overhaul branch September 30, 2022 17:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant