Jump to content
Eternal Lands Official Forums
bluap

Rounded widget buttons have dead space on right hand side

Recommended Posts

The manufacture window button patch uses relatively small buttons. I noticed that the right hand side was not active, i.e. the mouse over did not pop up and clicking did not work. I checked the widget drawing code and found what I think the problem is. There was a mismatch between the stored size and the size allowed for by the button drawing function. In effect, the button was being drawn 10*size too big, the extra space was not active.

 

I've submitted a small patch to fix the bug.

 

As the new manufacture window button code specifies the button width, fixing this bug caused the button to become too small so I've increased their size to compensate. This change is included in the patch. I checked other rounded buttons and they all use the default width, i.e. derived from the text. These will also be 10*size smaller now but that's probably how things should be anyway

Edited by bluap

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×