Created
December 20, 2023 08:13
-
-
Save Capital-EX/4bf59ab2e61bb2f6ab2606a87384971e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{deck} | |
version:1 | |
card:0 | |
size:[512,342] | |
name:"prototypes.deck" | |
{card:home} | |
{widgets} | |
prototype11:{"type":"contraption","size":[100,100],"pos":[151,118],"def":"prototype1","widgets":{"slider1":{"value":56},"slider2":{"value":3136}}} | |
inc:{"type":"button","size":[78,27],"pos":[266,153],"script":"home.0","text":"Incerment"} | |
{script:home.0} | |
on click do | |
s: prototype11.slider | |
s.value: s.value + 1 | |
s.event["change" slider.value + 1] | |
end | |
{end} | |
{contraption:prototype1} | |
size:[100,100] | |
margin:[0,0,0,0] | |
script:"prototype1.0" | |
{widgets} | |
slider1:{"type":"slider","size":[90,25],"pos":[5,71],"script":"prototype1.1","interval":[0,100],"style":"bar"} | |
slider2:{"type":"slider","size":[90,25],"pos":[5,3],"interval":[0,10000],"style":"bar"} | |
{script:prototype1.0} | |
on get_slider do | |
slider1 | |
end | |
{end} | |
{script:prototype1.1} | |
on change val do | |
slider2.value: val * val | |
end | |
{end} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment