Skip to content

Commit

Permalink
fix: hud was fading out too quickly
Browse files Browse the repository at this point in the history
We were clamping the fadeout setting to something really
short on read, which made all longer fade settings not
meaningful. Now we just use whatever. If the player
wants to edit the ini to get 10 seconds, that's what
they want!
  • Loading branch information
ceejbot committed Feb 17, 2024
1 parent bcdd482 commit 207ffdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controller/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl UserSettings {
}

self.autofade = read_from_ini(self.autofade, "bAutoFade", options);
self.fade_time = u32::clamp(read_from_ini(self.fade_time, "uFadeTime", options), 0, 2500);
self.fade_time = read_from_ini(self.fade_time, "uFadeTime", options);
self.max_alpha = read_from_ini(self.max_alpha, "fMaxAlpha", options);
self.min_alpha = read_from_ini(self.min_alpha, "fMinAlpha", options);

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/ui_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace ui
auto gMinAlpha = 0.0f; // the most transparent
auto doFadeIn = true;
auto gFullFadeDuration = 3.0f; // seconds
auto gFadeDurRemaining = 2.0f; // seconds
auto gFadeDurRemaining = 3.0f; // seconds
auto gIsFading = false;
auto delayBeforeFadeout = 0.33f; // seconds
bool gDoingBriefPeek = false;
Expand Down

0 comments on commit 207ffdd

Please sign in to comment.