Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
36
Task/Animation/Suneido/animation.suneido
Normal file
36
Task/Animation/Suneido/animation.suneido
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
Window(Controller
|
||||
{
|
||||
Xmin: 50
|
||||
Ymin: 50
|
||||
New()
|
||||
{
|
||||
super(.layout())
|
||||
.txt = .FindControl('text')
|
||||
.moveTimer = SetTimer(NULL, 0, 600, .moveTimerFunc)
|
||||
}
|
||||
direction: -1
|
||||
moveTimer: false
|
||||
layout()
|
||||
{
|
||||
return #(Vert (Static 'Hello World! ', size: 12, weight: 600,
|
||||
notify:, name: 'text'))
|
||||
}
|
||||
moveTimerFunc(@unused)
|
||||
{
|
||||
str = .txt.Get()
|
||||
.txt.Set(str.Substr(1 * .direction) $ str.Substr(0, (1 * .direction)))
|
||||
}
|
||||
Static_Click()
|
||||
{
|
||||
.direction = .direction * -1
|
||||
}
|
||||
Destroy()
|
||||
{
|
||||
if .moveTimer isnt false
|
||||
{
|
||||
KillTimer(NULL, .moveTimer)
|
||||
ClearCallback(.moveTimerFunc)
|
||||
}
|
||||
super.Destroy()
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue