Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.
1{
2 {type='rows', width=500, default={font={size=21}, line_height=35},
3 {type='text', font={size=28}, line_height=50,
4 {'Car@{Lua Carousel} > ハンドラー',
5 attrs={
6 Car={target='--carousel'},
7 }},
8 },
9 {type='filler', height=15},
10 {type='rows',
11 {type='text', 'これらの関数を定義すると、毎秒何度も呼び出されます:'},
12 {type='filler', height=45},
13 {type='rows', default={font={size=24}},
14 {type='text', 'function car.draw()'},
15 {type='text', 'function car.update(dt)', target='--car-update'},
16 },
17 {type='filler', height=10},
18 {type='text', color='red:7', "love.draw()やlove.update()のような関数は定義しないでください。そうするとCarouselを再起動する必要があります。"},
19 },
20 {type='filler', height=10},
21 {type='rows',
22 {type='text', '入力イベントについて:'},
23 {type='text', border='grey', 'マウス/タッチハンドラー', target='--car-touch'},
24 {type='text', border='grey', 'キーボードハンドラー', target='--car-kbd'},
25 {type='text', border='grey', 'メニューハンドラー', target='--car-menu'},
26 },
27 }
28}