Fixed #3133 (probably) / Logic icon draw command

This commit is contained in:
Anuken
2020-10-26 13:31:32 -04:00
parent a2181fec48
commit 8770bb2422
19 changed files with 6314 additions and 4076 deletions

View File

@@ -640,6 +640,8 @@ public class HudFragment extends Fragment{
public void draw(){
float next = amount.get();
if(Float.isNaN(next) || Float.isInfinite(next)) next = 1f;
if(next < last && flash.get()){
blink = 1f;
}
@@ -648,6 +650,8 @@ public class HudFragment extends Fragment{
value = Mathf.lerpDelta(value, next, 0.15f);
last = next;
if(Float.isNaN(value) || Float.isInfinite(value)) value = 1f;
drawInner(Pal.darkishGray);
Draw.beginStencil();