mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
Fractional GUI scale (0.5 step), fit menu to window, fix settings pages
- display.gui-scale is now a number: 0 (auto) or 0.5..4 in 0.5 steps - explicit scale is no longer limited by window size (tiled windows); only an open menu page is shrunk to fit the window - snap Batch2D vertices to pixels on fractional scale (fixes dots above text) - pass app to settings_common via options (not visible inside modules) - gui.get_scale() returns a number
This commit is contained in:
parent
33e132a231
commit
48d5d54b77
13 changed files with 76 additions and 41 deletions
|
|
@ -1,4 +1,4 @@
|
|||
local settings = require "core:settings_common".new(document, {})
|
||||
local settings = require "core:settings_common".new(document, {app=app})
|
||||
-- templates call these functions by name, so they must be global
|
||||
create_trackbar_setting = settings.create_trackbar_setting
|
||||
update_trackbar_label = settings.update_trackbar_label
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue