Square pixels formspec

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

Square pixels formspec

by Kenney » Wed Jan 07, 2015 03:50

I'm trying to create a pixel perfect GUI using formspec but for some reason or another, even if I make my images perfectly square and the formspec square as well it seems to stretch the image to a wrong ratio.

Since I'm using pixelart it's very noticeable, any way to disable this or allow me to use my own position/sizing?

Image
Games:
Voxus | UFO Race
 

User avatar
Casimir
Member
 
Posts: 1163
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

Re: Square pixels formspec

by Casimir » Wed Jan 07, 2015 07:04

I would guess it is the same bug that makes the hearts look distorted. I was surprised to see 0.4.11 released without fixing that.
Have you also tried it in version 0.4.10? If it is the same bug it should work there.
 

User avatar
rubenwardy
Moderator
 
Posts: 5835
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

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

Re: Square pixels formspec

by Kenney » Wed Jan 07, 2015 10:31

Casimir wrote:Have you also tried it in version 0.4.10? If it is the same bug it should work there.

Just tried in 0.4.10 but has the same result as 11.

rubenwardy wrote:That's a hot GUI.

It will be once it's pixel perfect ;)
Games:
Voxus | UFO Race
 

twoelk
Member
 
Posts: 1324
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk

Re: Square pixels formspec

by twoelk » Wed Jan 07, 2015 11:59

You might want to study some of the recent IRC logs at http://irc.minetest.ru/minetest-dev/2015-01-07. There has been a lot of discussion of fixing some UI and formspec issues especially with mobile devices in mind starting with celeron55's efforts here http://irc.minetest.ru/minetest-dev/2015-01-05 to compile an acceptical android version.
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 1 guest