mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
trackbar track-width semantic update + gamma setting trackbar
This commit is contained in:
parent
b1a79e3a6e
commit
8be0d157c2
11 changed files with 30 additions and 26 deletions
|
|
@ -1,4 +1,4 @@
|
|||
function create_setting(id, name, step, track_width, postfix)
|
||||
function create_setting(id, name, step, postfix)
|
||||
local info = core.get_setting_info(id)
|
||||
if postfix == nil then
|
||||
postfix = ""
|
||||
|
|
@ -10,7 +10,7 @@ function create_setting(id, name, step, track_width, postfix)
|
|||
min=info.min,
|
||||
max=info.max,
|
||||
step=step,
|
||||
track_width=track_width,
|
||||
track_width=12,
|
||||
postfix=postfix
|
||||
}))
|
||||
end
|
||||
|
|
@ -31,10 +31,11 @@ function create_checkbox(id, name)
|
|||
end
|
||||
|
||||
function on_open()
|
||||
create_setting("chunks.load-distance", "Load Distance", 1, 3)
|
||||
create_setting("chunks.load-speed", "Load Speed", 1, 1)
|
||||
create_setting("graphics.fog-curve", "Fog Curve", 0.1, 2)
|
||||
create_setting("camera.fov", "FOV", 1, 4, "°")
|
||||
create_setting("chunks.load-distance", "Load Distance", 1)
|
||||
create_setting("chunks.load-speed", "Load Speed", 1)
|
||||
create_setting("graphics.fog-curve", "Fog Curve", 0.1)
|
||||
create_setting("graphics.gamma", "Gamma", 0.05)
|
||||
create_setting("camera.fov", "FOV", 1, "°")
|
||||
create_checkbox("display.vsync", "V-Sync")
|
||||
create_checkbox("graphics.backlight", "Backlight")
|
||||
create_checkbox("camera.shaking", "Camera Shaking")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue