mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +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:
parent
a0097c6bfa
commit
d4245e6cac
9 changed files with 143 additions and 57 deletions
|
@ -78,8 +78,8 @@ function modstore.init(size, unsortedmods, searchmods)
|
|||
|
||||
modstore.current_list = nil
|
||||
|
||||
modstore.tv_store = tabview_create("modstore",size,{x=-0.3,y=-0.99})
|
||||
|
||||
modstore.tv_store = tabview_create("modstore",size,{x=0,y=0})
|
||||
|
||||
modstore.tv_store:set_global_event_handler(modstore.handle_events)
|
||||
|
||||
modstore.tv_store:add(
|
||||
|
@ -307,7 +307,7 @@ function modstore.handle_buttons(parent, fields, name, data)
|
|||
return true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue