1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00: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:
sapier 2014-06-14 11:22:09 +02:00
parent a0097c6bfa
commit d4245e6cac
9 changed files with 143 additions and 57 deletions

View file

@ -83,11 +83,11 @@ local function init_globals()
menudata.worldlist:add_sort_mechanism("alphabetic",sort_worlds_alphabetic)
menudata.worldlist:set_sortmode("alphabetic")
mm_texture.init()
--create main tabview
local tv_main = tabview_create("maintab",{x=12,y=5.2},{x=-0.3,y=-0.99})
local tv_main = tabview_create("maintab",{x=12,y=5.2},{x=0,y=0})
tv_main:set_autosave_tab(true)
tv_main:add(tab_singleplayer)
tv_main:add(tab_multiplayer)
@ -96,9 +96,9 @@ local function init_globals()
tv_main:add(tab_texturepacks)
tv_main:add(tab_mods)
tv_main:add(tab_credits)
tv_main:set_global_event_handler(main_event_handler)
tv_main:set_tab(core.setting_get("maintab_LAST"))
ui.set_default("maintab")
tv_main:show()
@ -107,7 +107,7 @@ local function init_globals()
modstore.init({x=12,y=8},4,3)
ui.update()
core.sound_play("main_menu", true)
end