This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I do not understand why GUI is rendered twice. Code here.
Where did I go wrong?
Use xSize and ySize instead of width and height. Have a look at one of my GUIs as an example:
https://github.com/thebrightspark/BitsAndBobs/blob/master/src/main/java/com/brightspark/bitsandbobs/gui/GuiBlockHealing.java
Quote from Bright_Spark» Use xSize and ySize instead of width and height. Have a look at one of my GUIs as an example: https://github.com/thebrightspark/BitsAndBobs/blob/master/src/main/java/com/brightspark/bitsandbobs/gui/GuiBlockHealing.java
Ah I see, but why doesn't width and height work in place of xSize and ySize? Thanks
I can't remember exactly, but I believe the width and height are set in on of the super classes so it's best not to touch them. Just look at the variable usages and see what they're for. I'm not at a computer so I can't check
I do not understand why GUI is rendered twice. Code here.
Where did I go wrong?
Use xSize and ySize instead of width and height. Have a look at one of my GUIs as an example:
https://github.com/thebrightspark/BitsAndBobs/blob/master/src/main/java/com/brightspark/bitsandbobs/gui/GuiBlockHealing.java
Ah I see, but why doesn't width and height work in place of xSize and ySize? Thanks
I can't remember exactly, but I believe the width and height are set in on of the super classes so it's best not to touch them. Just look at the variable usages and see what they're for. I'm not at a computer so I can't check