I have a customized GUI texture for a 4x4 crafting table. I know I can move the GUI background itself but I can't move the foreground (the items you see in your inventory when you open it and the highlighted boxes). I guess my question would be this: Is it possible to move the foreground at all?
This is what I am talking about. The highlighted box on the crafting side does not move at all whenever I try to edit the coordinates. I can move the GUI itself, however, if I move it too low the picture of the gui will cut off.
look at the gui for the workbench and use the code from it first....then manipulate it to your 4x4.....basically i mean to compare the two, and see how yours maybe wrong...thats how I did mine...
no, for the most part that will always be the same, as it is the size of the image on the screen. The code you want to look at is in the container....where the addslot code is. The container has all the code relevant to where your slots are and the inventory and all. have a look there and if you still cant get it, send me your files for this and I will take a look....
Ah, okay. I got to fixing everything from the container class and everything is working well! There is a slight issue though whereas whenever I would shift from windowed mode to fullscreen windowed mode/fullscreen mode the icons are shifted upwards. Once you reopen the bench again it goes back to normal. Is there something that could be fixed with that?
I dont know, never encountered that issue myself, as I always play in windowed mode. I have a 32 inch HDTV serving as my monitor so I really have never had a need to go full screen
Ah, okay then. I guess it shouldn't be an issue since I was testing it in a small window. Changing that small window into a fullscreen windows creates the minor bug, but I assume that most players won't always have it in a small window and constantly change it to fullscreen now and again. Thanks a lot for the help!
did you make a new sorter and call it in that line? If not, then that is the problem you are having, if so, then I will need to see your class files...
you should only need one guihandler, this will be used for all your guis. Just add each one to it in the same way the fisrt one is, if you post your handler code here I can help with that....
Yo I do every thing right and modify all that jazz and when I click on the block I get this error
Error Report: http://pastebin.com/Ev2wg5EA
It keeps saying that my container cannot be cast to net.minecraft.client.gui.GuiScreen which does not make sense since I do not cast it My code and what not can be found here: https://github.com/MHPage12/MechCraftSRC
Yo I do every thing right and modify all that jazz and when I click on the block I get this error
Error Report: http://pastebin.com/Ev2wg5EA
It keeps saying that my container cannot be cast to net.minecraft.client.gui.GuiScreen which does not make sense since I do not cast it My code and what not can be found here: https://github.com/M...12/MechCraftSRC
I had that issue once or twice, and I just commented out all that had to do with the block I made and then added it all back one piece at a time. I will take a look at your code when I get home from work and see if I can find an answer for you....
@0012saab....there were a few changes in the code for 1.6.2 and I have not yet updated the tutorial I know, but the changes were few and slightly easy to fix. However I know it threw even me for a minute, not that I am any good or anything. But I will try to update tonight while at work if I remember to bring my files with me. It sounds like you have an issue with your container class. If you could post that Id be glad to help and if I dont respond to the post in a day or two PM me about the issue and I will try my best to solve it....Just post the container and the GUI class files here so I can see them and then I will go from there okay....
This is what I am talking about. The highlighted box on the crafting side does not move at all whenever I try to edit the coordinates. I can move the GUI itself, however, if I move it too low the picture of the gui will cut off.
Find out how I generate....coolAlias...world structure generation and rotation tool...
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.renderEngine.bindTexture("/mods/MTJT/textures/gui/Smiths.png");
int var5 = (this.width - this.xSize) / 2;
int var6 = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);
}
}
Find out how I generate....coolAlias...world structure generation and rotation tool...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Planet Minecraft: GLStudios
Find out how I generate....coolAlias...world structure generation and rotation tool...
other than that, i also have errors with "Collections.sort" in the CraftingManager class.
are you using the MC version 1.5.2, if you did everything I did you should not have those errors...could you post the class
Find out how I generate....coolAlias...world structure generation and rotation tool...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Not very much has changes but I do plan to try an update the changes today sometime...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Error Report: http://pastebin.com/Ev2wg5EA
It keeps saying that my container cannot be cast to net.minecraft.client.gui.GuiScreen which does not make sense since I do not cast it
My code and what not can be found here: https://github.com/MHPage12/MechCraftSRC
I had that issue once or twice, and I just commented out all that had to do with the block I made and then added it all back one piece at a time. I will take a look at your code when I get home from work and see if I can find an answer for you....
Find out how I generate....coolAlias...world structure generation and rotation tool...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Find out how I generate....coolAlias...world structure generation and rotation tool...
For you I will need your specific problem, is it crashing on run, open gui, whats going on, I may need more than just your container class
Look in the container and find the canInteractWith Method for Block.workbench.blockID and change that to your block...
Find out how I generate....coolAlias...world structure generation and rotation tool...