I am having a problem with creating a GUI that's larger than the standard inventory size.
I have this GUI, that's 256x256 (px) in size, however the standard inventory is something like 176x166 (px) in size.
My GUI also has slots, and for some reason when I click 'outside of the regular inventory bounds' (So still inside my larger GUI's bounds) it will drop the item I actually want to take out of the slot.
How do I change this size, so that I can click inside my GUI without throwing items around?
I have this GUI, that's 256x256 (px) in size, however the standard inventory is something like 176x166 (px) in size.
My GUI also has slots, and for some reason when I click 'outside of the regular inventory bounds' (So still inside my larger GUI's bounds) it will drop the item I actually want to take out of the slot.
How do I change this size, so that I can click inside my GUI without throwing items around?
Note, these adjustments go in your gui's constructor.
If want to have your slots to be aligned, you need to fix your slot placing code. (You know, 'addSlotToContainer'.)
I've got this:
But that doesn't seem to do the trick
I apparantly never tried to put the im the constructor, now that I've done that, it's all working.
Thanks!