Jump to content

Recommended Posts

Posted (edited)

[SOVLED]
 

  Quote

SOLVED:
I figured out why it wasn't working.

Turns out you HAVE to initialize your widgets in init(); I had already done this, but because of the way I was doing things I thought I could get away with putting it in my infoReceived method, turns out I couldn't.

Expand  

 

Hello, for my system, I need to display a number for each item in a list, I have found an object just for this. It is called ExtendedList.
However, it is implemented not to be used as a widget in the same way, for instance, I had to disable the dirt background and manually set left and right values.
The problem is when I resize my Minecraft window, the scrolling becomes completely unresponsive, and the bounds of the widget go completely off.
I found a solution for problem 2, as I can reset the left and right values during render, however scrolling functionality still breaks.

Here is my code:

  Reveal hidden contents

Most of this code was influenced by LoadingErrorScreen as suggested by others in the forums, as some of the method arguments are labeled.

Here are some screenshots to demonstrate this (note that the code that fixes the resolution resize issue have been commented out):
 

Screenshot mod 1.png

Screenshot mod 2.png

Edited by Majd123mc
Solved
Posted

SOLVED:
I figured out why it wasn't working.

Turns out you HAVE to initialize your widgets in init(); I had already done this, but because of the way I was doing things I thought I could get away with putting it in my infoReceived method, turns out I couldn't.

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.