mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-12 10:59:22 +07:00
Fixed #7719
This commit is contained in:
parent
bf6f933686
commit
83ed26a271
@ -28,6 +28,7 @@ public class EventType{
|
||||
newGame,
|
||||
tutorialComplete,
|
||||
flameAmmo,
|
||||
resupplyTurret,
|
||||
turretCool,
|
||||
enablePixelation,
|
||||
exclusionDeath,
|
||||
|
@ -37,8 +37,4 @@ public class PlanetParams{
|
||||
public transient int viewW = -1, viewH = -1;
|
||||
/** If true, atmosphere will be drawn regardless of player options. */
|
||||
public transient boolean alwaysDrawAtmosphere = false;
|
||||
|
||||
//TODO:
|
||||
//- blur
|
||||
//- darken
|
||||
}
|
||||
|
@ -138,6 +138,10 @@ public class ItemTurret extends Turret{
|
||||
Events.fire(Trigger.flameAmmo);
|
||||
}
|
||||
|
||||
if(totalAmmo == 0){
|
||||
Events.fire(Trigger.resupplyTurret);
|
||||
}
|
||||
|
||||
BulletType type = ammoTypes.get(item);
|
||||
if(type == null) return;
|
||||
totalAmmo += type.ammoMultiplier;
|
||||
|
@ -1,5 +1,6 @@
|
||||
package mindustry.world.blocks.logic;
|
||||
|
||||
import arc.*;
|
||||
import arc.graphics.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import arc.input.*;
|
||||
@ -142,6 +143,10 @@ public class CanvasBlock extends Block{
|
||||
int[] curColor = {palette[0]};
|
||||
boolean[] modified = {false};
|
||||
|
||||
dialog.resized(() -> {
|
||||
dialog.hide();
|
||||
});
|
||||
|
||||
dialog.cont.table(Tex.pane, body -> {
|
||||
body.stack(new Element(){
|
||||
int lastX, lastY;
|
||||
@ -191,7 +196,7 @@ public class CanvasBlock extends Block{
|
||||
}
|
||||
}, new GridImage(canvasSize, canvasSize){{
|
||||
touchable = Touchable.disabled;
|
||||
}}).size(500f);
|
||||
}}).size(mobile && !Core.graphics.isPortrait() ? 290f : 480f);
|
||||
});
|
||||
|
||||
dialog.cont.row();
|
||||
|
Loading…
Reference in New Issue
Block a user