mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Support for scalable font and gui elements
Fix positioning of tabheader in order to be usable for scaling GUIs WARNING: this changes position of current tabheaders, mods have to adjust!
This commit is contained in:
@@ -89,5 +89,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
// Maximum hit points of a player
|
||||
#define PLAYER_MAX_HP 20
|
||||
|
||||
/*
|
||||
* GUI related things
|
||||
*/
|
||||
#define LEGACY_SCALING (2./3.)
|
||||
#define DEFAULT_FONT_SIZE (13.0 / LEGACY_SCALING)
|
||||
#define DEFAULT_IMGSIZE (48.0)
|
||||
#define DEFAULT_XSPACING ((15.0 + (1.0 / 3.0)))
|
||||
#define DEFAULT_YSPACING (9.0)
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user