Jump to content

[1.7.10] Need help finding code responsible for updating screen.


Recommended Posts

Posted

Okay so we all know how ResourcePack GUI look like (yeah, this list).

Now: If you would try to resize MC window the list-boxes will stay aligned to center and top/bottom.

 

Since I am basing on code provided by Vanilla: GuiListExtended (extending it)

I would like to know wth GuiResourcePackList updates it's alignment without calling ANYTHING inside drawScreen().

 

For whole code:

 

  Reveal hidden contents

 

I am using exact same practice based on provided interfaces.

 

Exact parts:

 

  Reveal hidden contents

 

 

Note: To help me here you would actually have to look deeper in code (or know your shit better than me) :)

 

  Quote

1.7.10 is no longer supported by forge, you are on your own.

Posted

So anyone looked/will look into that? I was searching (also debugging) code with 2 other ppl alredy and we can't find anything inside those classes, there must be something working (influencing those values) from the outside or something VERY small that we missed it.

  Quote

1.7.10 is no longer supported by forge, you are on your own.

Posted
  On 12/24/2014 at 2:05 PM, diesieben07 said:

initGui is called whenever the screen is resized.

 

width=300 height=164http://img-9gag-lol.9cache.com/photo/a9MYVrj_460sa_v1.gif[/img]

 

This is me right now:

http://img-9gag-ftw.9cache.com/photo/a1ZNggP_460sv_v1.mp4

 

Checked everything, for about 2 years was SURE as hell that init is called only once (after constructor) or when you recall it on your own, but NO!

THANK YOU! (That also means that MC code is once again VERY (not) optimised... but what did I expect.

 

Oh and why it didn't work for me: (in initGui())

if (this.myList == null)
	//init list

So basically I did something MC doesn't.

  Quote

1.7.10 is no longer supported by forge, you are on your own.

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.