Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Fix LoadingTweak settings inversed
Browse files Browse the repository at this point in the history
  • Loading branch information
PieKing1215 committed Aug 19, 2024
1 parent fae073d commit 7dd39f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tweaks/loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl LoadingTweak {
}

fn set_fast_menu_fade(&mut self, enabled: bool) {
self.fast_menu_fade = !enabled;
self.fast_menu_fade = enabled;

if self.fast_menu_fade {
self.fast_menu_fade_injection.inject();
Expand All @@ -88,7 +88,7 @@ impl LoadingTweak {
}

fn set_skip_load_finish(&mut self, enabled: bool) {
self.skip_load_finish = !enabled;
self.skip_load_finish = enabled;

if self.skip_load_finish {
self.skip_load_finish_injection.inject();
Expand All @@ -105,14 +105,14 @@ impl Tweak for LoadingTweak {

fn render(&mut self, ui: &hudhook::imgui::Ui) {
if ui.checkbox("Fast Main Menu Fade", &mut self.fast_menu_fade) {
self.set_fast_menu_fade(!self.fast_menu_fade);
self.set_fast_menu_fade(self.fast_menu_fade);
}
if ui.is_item_hovered() {
ui.tooltip_text(format!("Speeds up the main menu loading fade\n(default: {DEFAULT_FAST_MENU_FADE}, vanilla: {VANILLA_FAST_MENU_FADE})"));
}

if ui.checkbox("Skip Loading Finish Animation", &mut self.skip_load_finish) {
self.set_skip_load_finish(!self.skip_load_finish);
self.set_skip_load_finish(self.skip_load_finish);
}
if ui.is_item_hovered() {
ui.tooltip_text(format!("Skips the animation of the progress bar going to 100%\n(default: {DEFAULT_SKIP_LOAD_FINISH}, vanilla: {VANILLA_SKIP_LOAD_FINISH})"));
Expand Down

0 comments on commit 7dd39f3

Please sign in to comment.