Lowercase enums

This commit is contained in:
Anuken
2020-06-21 12:38:59 -04:00
parent 6f1a64db78
commit 4a8be42258
13 changed files with 23 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ public class PhysicsProcess implements AsyncProcess{
public PhysicsProcess(){
def = new BodyDef();
def.type = BodyType.DynamicBody;
def.type = BodyType.dynamicBody;
//currently only enabled for units
group = Groups.unit;

View File

@@ -339,7 +339,7 @@ public class Renderer implements ApplicationListener{
lines[i + 3] = (byte)255;
}
buffer.end();
Pixmap fullPixmap = new Pixmap(w, h, Pixmap.Format.RGBA8888);
Pixmap fullPixmap = new Pixmap(w, h, Pixmap.Format.rgba8888);
Buffers.copy(lines, 0, fullPixmap.getPixels(), lines.length);
Fi file = screenshotDirectory.child("screenshot-" + Time.millis() + ".png");
PixmapIO.writePNG(file, fullPixmap);

View File

@@ -1,15 +1,14 @@
package mindustry.editor;
import arc.*;
import arc.struct.*;
import arc.func.*;
import arc.graphics.*;
import arc.graphics.Pixmap.*;
import arc.math.*;
import arc.math.geom.*;
import arc.scene.ui.*;
import arc.scene.ui.ImageButton.*;
import arc.scene.ui.layout.*;
import arc.struct.*;
import arc.util.*;
import arc.util.async.*;
import mindustry.game.*;
@@ -158,7 +157,7 @@ public class MapGenerateDialog extends BaseDialog{
texture = null;
}
pixmap = new Pixmap(editor.width() / scaling, editor.height() / scaling, Format.RGBA8888);
pixmap = new Pixmap(editor.width() / scaling, editor.height() / scaling);
texture = new Texture(pixmap);
cont.clear();

View File

@@ -35,7 +35,7 @@ public class LoadRenderer implements Disposable{
private Mesh mesh = MeshBuilder.buildHex(colorRed, 2, true, 1f);
private Camera3D cam = new Camera3D();
private int lastLength = -1;
private FxProcessor fx = new FxProcessor(Format.RGBA8888, 2, 2, false, true);
private FxProcessor fx = new FxProcessor(Format.rgba8888, 2, 2, false, true);
private WindowedMean renderTimes = new WindowedMean(20);
private long lastFrameTime;

View File

@@ -66,7 +66,7 @@ public class MinimapRenderer implements Disposable{
texture.dispose();
}
setZoom(4f);
pixmap = new Pixmap(world.width(), world.height(), Format.RGBA8888);
pixmap = new Pixmap(world.width(), world.height(), Format.rgba8888);
texture = new Texture(pixmap);
region = new TextureRegion(texture);
}

View File

@@ -12,7 +12,7 @@ public class MultiPacker implements Disposable{
public MultiPacker(){
for(int i = 0; i < packers.length; i++){
int pageSize = 2048;
packers[i] = new PixmapPacker(pageSize, pageSize, Format.RGBA8888, 2, true);
packers[i] = new PixmapPacker(pageSize, pageSize, Format.rgba8888, 2, true);
}
}

View File

@@ -72,8 +72,8 @@ public class MapIO{
SaveVersion ver = SaveIO.getSaveWriter(version);
ver.region("meta", stream, counter, ver::readStringMap);
Pixmap floors = new Pixmap(map.width, map.height, Format.RGBA8888);
Pixmap walls = new Pixmap(map.width, map.height, Format.RGBA8888);
Pixmap floors = new Pixmap(map.width, map.height);
Pixmap walls = new Pixmap(map.width, map.height);
int black = 255;
int shade = Color.rgba8888(0f, 0f, 0f, 0.5f);
CachedTile tile = new CachedTile(){
@@ -137,7 +137,7 @@ public class MapIO{
}
public static Pixmap generatePreview(Tiles tiles){
Pixmap pixmap = new Pixmap(tiles.width, tiles.height, Format.RGBA8888);
Pixmap pixmap = new Pixmap(tiles.width, tiles.height, Format.rgba8888);
for(int x = 0; x < pixmap.getWidth(); x++){
for(int y = 0; y < pixmap.getHeight(); y++){
Tile tile = tiles.getn(x, y);

View File

@@ -110,7 +110,7 @@ public class Fonts{
/** Called from a static context for use in the loading screen.*/
public static void loadDefaultFont(){
UI.packer = new PixmapPacker(2048, 2048, Format.RGBA8888, 2, true);
UI.packer = new PixmapPacker(2048, 2048, Format.rgba8888, 2, true);
FileHandleResolver resolver = new InternalFileHandleResolver();
Core.assets.setLoader(FreeTypeFontGenerator.class, new FreeTypeFontGeneratorLoader(resolver));
Core.assets.setLoader(BitmapFont.class, null, new FreetypeFontLoader(resolver){