Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preferences & Config editors #139

Merged
merged 15 commits into from
Jul 12, 2024
Merged

Conversation

melody-rs
Copy link
Member

Connections
#43
#45

Description
#43 and #45 changed how configuring Luminol worked, but left the configuration editors in an unfinished state. This PR fixes that!
As well as fixing up the config editors, this PR adds support for loading other data formats (but not converting projects, that requires either another out-of-project manager, or changes to the path cache to recognize file extensions when present)

Testing

  • (From an old commit where conversion was possible) Load a project, change the format, and reopen it
  • Open the preferences editor and add the path to the Standard RTP, then open a project that requires it
  • Edit Game.ini, save, and see the changes
  • Edit Luminol project settings, save, and see changes

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown -Z build-std=std,panic_abort
  • Run cargo build --release
  • If applicable, run trunk build --release

@melody-rs melody-rs requested a review from a team as a code owner July 11, 2024 17:57
Produces a toast when failing to load scripts, and when modified marks scripts as modified
@melody-rs melody-rs requested a review from white-axe July 12, 2024 21:05
@melody-rs melody-rs merged commit 612af49 into Astrabit-ST:dev Jul 12, 2024
4 checks passed
@melody-rs melody-rs deleted the preferences branch July 12, 2024 22:45
@white-axe white-axe mentioned this pull request Jul 14, 2024
5 tasks
@melody-rs melody-rs mentioned this pull request Jul 15, 2024
5 tasks
MolassesLover pushed a commit to MolassesLover/luminol-molasses that referenced this pull request Jul 23, 2024
* Kinda port over preferences editor from old branch

* Fix catppuccin visuals

* Change theme handling

* Fix theme saving

* Make use_ron option a combobox

* Add format-agnostic handler

* Don't pass extension to handler

* kinda implement format conversion

* Actually get data conversion to work

* Change warning message

* Use indexmap for rtp paths

* Fix some wasm things

* Make config window set modified flag

* Change how scripts_path functions
Produces a toast when failing to load scripts, and when modified marks scripts as modified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants