瀏覽代碼

GuiTextures should not be invisible by default

Frans Bergman 4 年之前
父節點
當前提交
00565f9581
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/eu/tankernn/gameEngine/renderEngine/gui/GuiTexture.java

+ 1 - 1
src/main/java/eu/tankernn/gameEngine/renderEngine/gui/GuiTexture.java

@@ -9,7 +9,7 @@ public class GuiTexture {
 	private Texture texture;
 	private Texture texture;
 	protected Vector2f position;
 	protected Vector2f position;
 	protected float scale;
 	protected float scale;
-	private float opacity;
+	private float opacity = 1.0f;
 	
 	
 	public GuiTexture(Texture texture, Vector2f position, float scale) {
 	public GuiTexture(Texture texture, Vector2f position, float scale) {
 		this.texture = texture;
 		this.texture = texture;