Properties ignored for 'inventory' HUD element

User avatar
Kenney
Member
 
Posts: 131
Joined: Fri Jan 02, 2015 12:12
In-game: Kenney

Properties ignored for 'inventory' HUD element

by Kenney » Wed Jan 07, 2015 11:42

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
Games:
Voxus | UFO Race
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Properties ignored for 'inventory' HUD element

by rubenwardy » Wed Jan 07, 2015 14:47

The HUD system will probably be redesigned soon, for 0.4.12. It's not a very good API.
Last edited by rubenwardy on Wed Jan 07, 2015 18:54, edited 1 time in total.
 

User avatar
Kenney
Member
 
Posts: 131
Joined: Fri Jan 02, 2015 12:12
In-game: Kenney

Re: Properties ignored for 'inventory' HUD element

by Kenney » Wed Jan 07, 2015 18:40

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!
Games:
Voxus | UFO Race
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Properties ignored for 'inventory' HUD element

by rubenwardy » Wed Jan 07, 2015 18:55

I have fixed this. That code should now work (although your alignment and position is incorrect - check on multiple screensizes)

2504d
 

User avatar
indriApollo
Member
 
Posts: 144
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

Re: Properties ignored for 'inventory' HUD element

by indriApollo » Wed Jan 07, 2015 21:02

Wow that was quick
 

User avatar
Kenney
Member
 
Posts: 131
Joined: Fri Jan 02, 2015 12:12
In-game: Kenney

Re: Properties ignored for 'inventory' HUD element

by Kenney » Wed Jan 07, 2015 21:20

*applause* Thanks rubenwardy, big thumbs up :)
Games:
Voxus | UFO Race
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Properties ignored for 'inventory' HUD element

by rubenwardy » Wed Jan 07, 2015 22:53

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.
 

User avatar
Kenney
Member
 
Posts: 131
Joined: Fri Jan 02, 2015 12:12
In-game: Kenney

Re: Properties ignored for 'inventory' HUD element

by Kenney » Wed Jan 07, 2015 23:25

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 :)
Games:
Voxus | UFO Race
 

User avatar
indriApollo
Member
 
Posts: 144
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

Re: Properties ignored for 'inventory' HUD element

by indriApollo » Thu Jan 08, 2015 10:33

^that
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 28 guests

cron