fixed issue with ranges not showing

This commit is contained in:
davidmolgard
2025-03-24 12:26:53 -06:00
parent 883464a074
commit bc324e939a
3 changed files with 6 additions and 29 deletions

View File

@@ -148,7 +148,7 @@ function G.FUNCS.dv_pre_score_UI_set(e)
local new_preview_text = ""
local should_juice = false
if DV.PRE.data then
if G.SETTINGS.DV.show_min_max and (DV.PRE.data.score.min ~= DV.PRE.data.score.max) then
if true and (DV.PRE.data.score.min ~= DV.PRE.data.score.max) then
-- Format as 'X - Y' :
if e.config.id == "dv_pre_l" then
new_preview_text = DV.PRE.format_number(DV.PRE.data.score.min) .. " - "
@@ -160,7 +160,7 @@ function G.FUNCS.dv_pre_score_UI_set(e)
else
-- Format as single number:
if e.config.id == "dv_pre_l" then
if G.SETTINGS.DV.show_min_max then
if true then
-- Spaces around number necessary to distinguish Min/Max text from Exact text,
-- which is itself necessary to force a HUD update when switching between Min/Max and Exact.
new_preview_text = " " .. DV.PRE.format_number(DV.PRE.data.score.min) .. " "
@@ -176,7 +176,7 @@ function G.FUNCS.dv_pre_score_UI_set(e)
else
-- Spaces around number necessary to distinguish Min/Max text from Exact text, same as above ^
if e.config.id == "dv_pre_l" then
if G.SETTINGS.DV.show_min_max then new_preview_text = " ?????? "
if true then new_preview_text = " ?????? "
else new_preview_text = "??????"
end
else
@@ -205,7 +205,7 @@ function G.FUNCS.dv_pre_dollars_UI_set(e)
local new_preview_text = ""
local new_colour = nil
if DV.PRE.data then
if G.SETTINGS.DV.show_min_max and (DV.PRE.data.dollars.min ~= DV.PRE.data.dollars.max) then
if true and (DV.PRE.data.dollars.min ~= DV.PRE.data.dollars.max) then
if e.config.id == "dv_pre_dollars_top" then
new_preview_text = " " .. DV.PRE.get_sign_str(DV.PRE.data.dollars.max) .. DV.PRE.data.dollars.max
new_colour = DV.PRE.get_dollar_colour(DV.PRE.data.dollars.max)