Formspec Discussion

User avatar
LMD
Member
 
Posts: 152
Joined: Sat Apr 08, 2017 08:16
Location: Bonn, Germany
GitHub: appgurueu
In-game: Limo

Formspec Discussion

by LMD » Sat Mar 10, 2018 19:47

In my opinion, it's getting clear that we are in need for a formspec replacement, or should at least consider adding various styling and alignment features.
First question : Should we have an image-based GUI ? Things look much better then, but we need (a) SVG-Renderer or (b) the GUI is non-scalable. Here's an example(mine, java, unfortunately :/ ) :
Image
Or rather a nice-scalable, hardcoded, GUI...
And how many parametres should the user be able to control ?
At least :
text size, color, font, decoration, bg color, fg color.
Furthermore, please remove this : _ cursor in text field, maybe replace by this | one ?
 

v-rob
Member
 
Posts: 438
Joined: Thu Mar 24, 2016 03:19

Re: Formspec Discussion

by v-rob » Mon Mar 12, 2018 04:55

Pros and cons of each type of GUI type for formspecs:

Hard Coded GUI:


Pros:
  1. This is probably easier to code than image-based GUIs.
  2. Pressure about scaling images properly is much lower.
Cons:
  1. This will ultimately end up with an ugly grey GUI or something similar with little to no customization similar to what we have now.
  2. Images will not stay consistent between screen resolutions. Images that match up in 1920 by 1080 might not in 1600 by 900.
  3. This is totally not ideal for texture packs because hard-coded grey boxes cannot be customized through texture packs.

Image Based Scaleable GUI:


Pros:
  1. Highly customization in themes.
  2. All elements have default images that can be changed with texture packs.
Cons:
  1. Images will not stay consistent between screen resolutions. Images that match up in 1920 by 1080 might not in 1600 by 900.
  2. Scaling images properly will be hard without losing image quality.

Image Based Non-Scaleable GUI:


Pros:
  1. Highly customization in themes.
  2. All elements have default images that can be changed with texture packs.
  3. Image quality is not lost between resolutions because the number of pixels in the formspec are always the same.
  4. Elements always match up because the number of pixels between them is always the same.
Cons:
  1. Formspecs may be very small in large screen resolutions or cut off in small screen resolutions.
Last edited by v-rob on Mon Mar 12, 2018 23:31, edited 1 time in total.
 

User avatar
Linuxdirk
Member
 
Posts: 1324
Joined: Wed Sep 17, 2014 11:21
Location: Germany
GitHub: 4w
In-game: Linuxdirk

Re: Formspec Discussion

by Linuxdirk » Mon Mar 12, 2018 06:19

v-rob wrote:Hard Coded GUI

No. Just no. This will end up in a lame compromise like we have right now and in addition to that it won't look good outside the responsible dev's system.

v-rob wrote:Non-Scaleable GUI

It has to work from tiny 4.5" 1280x800 smartphones up to 30" 4K high-end displays. A non-scalable GUI is simply not an option.
 

v-rob
Member
 
Posts: 438
Joined: Thu Mar 24, 2016 03:19

Re: Formspec Discussion

by v-rob » Mon Mar 12, 2018 23:31

Linuxdirk wrote:
v-rob wrote:Hard Coded GUI

No. Just no. This will end up in a lame compromise like we have right now and in addition to that it won't look good outside the responsible dev's system.


I didn't say that I was advocating a hard coded GUI. In fact, that's my least favorite option.

Linuxdirk wrote:
v-rob wrote:Non-Scaleable GUI

It has to work from tiny 4.5" 1280x800 smartphones up to 30" 4K high-end displays. A non-scalable GUI is simply not an option.


That leaves an image based GUI as the only option left, unless someone can think of some other option.
 


Return to Feature Discussion



Who is online

Users browsing this forum: No registered users and 1 guest