mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Bugfixes
This commit is contained in:
parent
0bd122c570
commit
0b407c7c1f
@ -193,7 +193,7 @@ public class UnitTypes implements ContentList{
|
||||
|
||||
bullet = new LightningBulletType(){{
|
||||
lightningColor = hitColor = Pal.heal;
|
||||
damage = 11f;
|
||||
damage = 12f;
|
||||
lightningLength = 7;
|
||||
lightningLengthRand = 7;
|
||||
shootEffect = Fx.shootHeal;
|
||||
|
@ -331,7 +331,9 @@ public class Logic implements ApplicationListener{
|
||||
}
|
||||
|
||||
if(!state.isPaused()){
|
||||
state.secinfo.update();
|
||||
if(state.isCampaign()){
|
||||
state.secinfo.update();
|
||||
}
|
||||
|
||||
if(state.isCampaign()){
|
||||
universe.update();
|
||||
|
@ -286,6 +286,7 @@ public class UI implements ApplicationListener, Loadable{
|
||||
|
||||
public void showInfoFade(String info){
|
||||
Table table = new Table();
|
||||
table.touchable = Touchable.disabled;
|
||||
table.setFillParent(true);
|
||||
table.actions(Actions.fadeOut(7f, Interp.fade), Actions.remove());
|
||||
table.top().add(info).style(Styles.outlineLabel).padTop(10);
|
||||
@ -481,10 +482,11 @@ public class UI implements ApplicationListener, Loadable{
|
||||
|
||||
public void announce(String text){
|
||||
Table t = new Table();
|
||||
t.touchable = Touchable.disabled;
|
||||
t.background(Styles.black3).margin(8f)
|
||||
.add(text).style(Styles.outlineLabel);
|
||||
t.update(() -> t.setPosition(Core.graphics.getWidth()/2f, Core.graphics.getHeight()/2f, Align.center));
|
||||
t.actions(Actions.fadeOut(3, Interp.pow4In));
|
||||
t.actions(Actions.fadeOut(3, Interp.pow4In), Actions.remove());
|
||||
Core.scene.add(t);
|
||||
}
|
||||
|
||||
|
@ -794,6 +794,8 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
Rect rect = Tmp.r3;
|
||||
|
||||
UnitType type = unit.type();
|
||||
if(type == null) return;
|
||||
|
||||
boolean flying = type.flying;
|
||||
boolean omni = !(unit instanceof WaterMovec);
|
||||
boolean legs = unit.isGrounded();
|
||||
|
Loading…
Reference in New Issue
Block a user