This commit is contained in:
Ezhulka 2026-08-02 22:21:26 +03:00
parent 3d0e31b102
commit bfc15a2a39
3 changed files with 0 additions and 48 deletions

View file

@ -1,27 +0,0 @@
<panel size='480' color='#00000030' context='menu' interval='4'>
<label align='center' margin='2'>@Progress-bars</label>
<label>Static</label>
<progressbar id='st_blue' size='300,14' value='70'/>
<progressbar id='st_red' size='300,14' value='35' color='#FF4040' bg-color='#00000060'/>
<progressbar id='st_green' size='300,14' value='90' color='#40FF40' bg-color='#00000060'/>
<label>Vertical</label>
<panel orientation='horizontal' size='180,110' interval='10' color='0'>
<progressbar id='v_red' orientation='vertical' size='18,110' value='60' color='#FF8040'/>
<progressbar id='v_green' orientation='vertical' size='18,110' value='80' color='#40FF40'/>
<progressbar id='v_blue' orientation='vertical' size='18,110' value='25' color='#4080FF'/>
</panel>
<label>Backgrounds</label>
<progressbar id='bg_none' size='300,14' value='70' color='#FFA040' bg-color='0'/>
<progressbar id='bg_white' size='300,14' value='35' color='#FF4040' bg-color='#FFFFFF40'/>
<progressbar id='bg_blue' size='300,14' value='90' color='#40FF40' bg-color='#2040A0C0'/>
<label>Dynamic</label>
<progressbar id='dyn_off' size='300,14' value='0' smooth='false' color='#FF4040' bg-color='#00000060'/>
<progressbar id='dyn_slow' size='300,14' value='0' smooth='true' smooth-speed='60' color='#FFA040' bg-color='#00000060'/>
<progressbar id='dyn_fast' size='300,14' value='0' smooth='true' smooth-speed='400' color='#40FF40' bg-color='#00000060'/>
<button onclick='menu:back()'>@Back</button>
</panel>

View file

@ -1,20 +0,0 @@
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

View file

@ -3,6 +3,5 @@
<button onclick='menu.page="scripts"'>@Scripts</button>
<button onclick='menu.page="settings"'>@Settings</button>
<button onclick='menu.page="content_menu"'>@Content</button>
<button onclick='menu.page="bars"'>@Progress-bars</button>
<button onclick='app.quit(true)'>@Quit</button>
</panel>