Jump to content

Recommended Posts

Posted

When im opening my GuiScreen my buttons wont showup but the background does.

but i can still click the buttons if i click with the mouse where the buttons should be.

I did registered my IGui Handler so there shouldn't be a problem there.

 

anyway here is my code:

 

CommonProxy Class

 

  Reveal hidden contents

 

 

Gui Class

 

  Reveal hidden contents

 

 

Block Class

 

  Reveal hidden contents

 

 

BaseMod Class

 

  Reveal hidden contents

 

 

my container gui's work but this one doesn't.

i tried to figure it out by mself but i can't figgure out what's wrong.

no errors in eclipse to.

Posted

I think you need to call the drawScreen from the Gui's superclass. So just add this in the drawScreen method of the GuiLegendzCraftingTable class:

super.drawScreen(int par1, int par2, float f)

Posted

Try putting the call at the end of the method, sounds like you are displaying the background over the button. Not sure because I draw the backround by overriding the drawDefaultBackground() in stead of the drawScreen().

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.