Skip to content

Commit

Permalink
Increase build progress hide threshold to 0.999 (beyond-all-reason#3348)
Browse files Browse the repository at this point in the history
  • Loading branch information
Beherith authored Jul 8, 2024
1 parent 11731ca commit aec2aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions luaui/Widgets/Shaders/HealthbarsGL4.geom.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ void main(){
#ifndef DEBUGSHOW
if (health < 0.00001) return;
if ((BARTYPE & BITPERCENTAGE) > 0u) { // for percentage bars
if (health > 0.995) return;
if (health > 0.999) return;
}else{
if ((BARTYPE & BITGETPROGRESS) > 0u) { // reload bar?
if (health > 0.995) return;
if (health > 0.999) return;
}
if ((BARTYPE & BITUSEOVERLAY) > 0u){ // for textured percentage bars bars
// if (health > 0.995) return;
Expand Down
2 changes: 1 addition & 1 deletion luaui/Widgets/gui_healthbars_gl4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ local barTypeMap = { -- WHERE SHOULD WE STORE THE FUCKING COLORS?
maxcolor = {1.0, 1.0, 1.0, 1.0},
--bartype = 3,
bartype = bitShowGlyph + bitUseOverlay + bitPercentage,
hidethreshold = 0.99,
hidethreshold = 0.999,
uniformindex = 0, -- if its >20, then its health/maxhealth
uvoffset = 0.9375, -- the X offset of the icon for this bar
},
Expand Down

0 comments on commit aec2aac

Please sign in to comment.