mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
refactor
This commit is contained in:
parent
d74b6ca91c
commit
3d0e31b102
11 changed files with 194 additions and 153 deletions
20
res/layouts/pages/bars.xml.lua
Normal file
20
res/layouts/pages/bars.xml.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
function on_open()
|
||||
document.st_blue.text = "70"
|
||||
document.st_red.text = "35"
|
||||
document.st_green.text = "90"
|
||||
document.bg_none.text = "70"
|
||||
document.bg_white.text = "35"
|
||||
document.bg_blue.text = "90"
|
||||
|
||||
local t = 0.0
|
||||
document.root:setInterval(16, function()
|
||||
t = t + time.delta()
|
||||
local v = (math.sin(t * 2.0) + 1.0) / 2.0 * 100.0
|
||||
document.dyn_off.value = v
|
||||
document.dyn_slow.value = v
|
||||
document.dyn_fast.value = v
|
||||
document.dyn_off.text = string.format("%.0f", v)
|
||||
document.dyn_slow.text = string.format("%.0f", v)
|
||||
document.dyn_fast.text = string.format("%.0f", v)
|
||||
end)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue