Attempt to fix lighting issues in advanced gui slots.
Fixed mod info files.
This commit is contained in:
parent
e1de3ecd1a
commit
f64c1aef5c
9 changed files with 29 additions and 23 deletions
|
@ -42,18 +42,24 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
|
|||
}
|
||||
|
||||
public void drawSprite(int cornerX, int cornerY) {
|
||||
if (isDefined())
|
||||
if (getItemStack() != null)
|
||||
drawStack(getItemStack());
|
||||
else if (getTexture() != null && !getTexture().equals("")) {
|
||||
int texture = mc.renderEngine.getTexture(getTexture());
|
||||
mc.renderEngine.bindTexture(texture);
|
||||
if (!isDefined())
|
||||
return;
|
||||
|
||||
int textureI = getTextureIndex() >> 4;
|
||||
int textureJ = getTextureIndex() - textureI * 16;
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
|
||||
drawTexturedModalRect(cornerX + x, cornerY + y, 16 * textureJ, 16 * textureI, 16, 16);
|
||||
}
|
||||
if (getItemStack() != null)
|
||||
drawStack(getItemStack());
|
||||
else if (getTexture() != null && !getTexture().equals("")) {
|
||||
int texture = mc.renderEngine.getTexture(getTexture());
|
||||
mc.renderEngine.bindTexture(texture);
|
||||
|
||||
int textureI = getTextureIndex() >> 4;
|
||||
int textureJ = getTextureIndex() - textureI * 16;
|
||||
|
||||
drawTexturedModalRect(cornerX + x, cornerY + y, 16 * textureJ, 16 * textureI, 16, 16);
|
||||
}
|
||||
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
}
|
||||
|
||||
public void drawStack(ItemStack item) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent":"",
|
||||
|
@ -24,7 +24,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
@ -41,7 +41,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
@ -58,7 +58,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
@ -75,7 +75,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
@ -92,7 +92,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent":"",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"credits": "Created by SpaceToad",
|
||||
"logoFile": "/gfx/buildcraft/logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://http://www.mod-buildcraft.com//",
|
||||
"url": "http://http://www.mod-buildcraft.com/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "SpaceToad", "Krapht", "SirSengir", "Others" ],
|
||||
"parent": "mod_BuildCraftCore",
|
||||
|
|
Loading…
Reference in a new issue