Page 1 of 1

Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 11:42
by Kenney
The 'inventory' HUD elements ignores some pretty important properties, both 'direction' and 'offset' do nothing. Direction according to Wiki:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
direction: The direction in which something is drawn. 0 is left to right, 1 is right to left, 2 is top to bottom, 3 is bottom to top.


Image

Re: Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 14:47
by rubenwardy
The HUD system will probably be redesigned soon, for 0.4.12. It's not a very good API.

Re: Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 18:40
by Kenney
rubenwardy wrote:The HUD system will probably be redesigned soon, in 0.4.11. It's not a very good API.

Great! :) Any ETA on that, weeks or months? Eager to create a unique GUI!

Re: Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 18:55
by rubenwardy
I have fixed this. That code should now work (although your alignment and position is incorrect - check on multiple screensizes)

2504d

Re: Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 21:02
by indriApollo
Wow that was quick

Re: Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 21:20
by Kenney
*applause* Thanks rubenwardy, big thumbs up :)

Re: Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 22:53
by rubenwardy
You're welcome. I'm happy to help.

I look forward to seeing where your project goes. Even if you decide to release it as a commercial fork, it's still a valuable asset to the community.

Edit: I fixed the direction problem, I missed the offset part. I'll check that tomorrow.

Re: Properties ignored for 'inventory' HUD element

PostPosted: Wed Jan 07, 2015 23:25
by Kenney
rubenwardy wrote:I look forward to seeing where your project goes. Even if you decide to release it as a commercial fork, it's still a valuable asset to the community.

My game will be free, but donations and/or a crowdfunding campaign will fund it. Anything that benefits the core engine will be added to that :)

Re: Properties ignored for 'inventory' HUD element

PostPosted: Thu Jan 08, 2015 10:33
by indriApollo
^that