mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 13:08:20 +07:00
Added UnitBuild transition class
This commit is contained in:
parent
092d152bdc
commit
07a27e913c
@ -25,8 +25,13 @@ public class MultiEffect extends Effect{
|
||||
|
||||
@Override
|
||||
public void render(EffectContainer e){
|
||||
int index = 0;
|
||||
for(Effect f : effects){
|
||||
e.scaled(f.lifetime, f::render);
|
||||
int i = ++index;
|
||||
e.scaled(f.lifetime, cont -> {
|
||||
cont.id = e.id + i;
|
||||
f.render(cont);
|
||||
});
|
||||
clip = Math.max(clip, f.clip);
|
||||
}
|
||||
}
|
||||
|
@ -142,6 +142,10 @@ public class Shaders{
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated transition class for mods; use UnitBuildShader instead. */
|
||||
@Deprecated
|
||||
public static class UnitBuild extends UnitBuildShader{}
|
||||
|
||||
public static class UnitBuildShader extends LoadShader{
|
||||
public float progress, time;
|
||||
public Color color = new Color();
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=72dd3ba5d27fddfbf52719c10738d790e129e5db
|
||||
archash=f49f7c824adc556cba6b94579c6b0d4e24574b3e
|
||||
|
Loading…
Reference in New Issue
Block a user