lua
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lua [2017/08/08 14:26] – [WatchMaker Lua API] alex_curran | lua [2025/04/12 07:47] (current) – old revision restored (2024/10/20 20:29) splitbrain | ||
|---|---|---|---|
| Line 207: | Line 207: | ||
| ===== WatchMaker Lua API ===== | ===== WatchMaker Lua API ===== | ||
| - | WatchMaker extends the Lua commandset. Just use the wm_action() or other functions anywhere in your script or tap actions : | + | WatchMaker extends the Lua commandset. Just use the wm_action() or other functions anywhere in your script or tap actions: |
| wm_action(' | wm_action(' | ||
| wm_action(' | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| wm_action(' | wm_action(' | ||
| wm_action(' | wm_action(' | ||
| Line 216: | Line 223: | ||
| wm_action(' | wm_action(' | ||
| wm_action(' | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | wm_action(' | ||
| + | | ||
| wm_schedule(' | wm_schedule(' | ||
| wm_unschedule_all() | wm_unschedule_all() | ||
| wm_vibrate(d, | wm_vibrate(d, | ||
| - | wm_sfx(' | + | wm_sfx(' |
| wm_transition(' | wm_transition(' | ||
| + | wm_anim_set(' | ||
| + | wm_anim_set(' | ||
| + | wm_anim_start(' | ||
| wm_tag(' | wm_tag(' | ||
| return a value of a WatchMaker tag, e.g. wm_tag(" | return a value of a WatchMaker tag, e.g. wm_tag(" | ||
| is_bright | is_bright | ||
| + | |||
| + | *About wm_action w_app | ||
| + | |||
| + | The delimiter for the app link is a backtick '' | ||
| + | |||
| + | * App name (may be empty) | ||
| + | * Package name | ||
| + | * Activity name (optional) | ||
| + | |||
| + | The app name is optional. If it is empty, the app main activity is launched. Example: '' | ||
| + | |||
| + | The easiest way to find the package name (example '' | ||
| + | |||
| + | Available activities of apps can be obtained by downloading the APK file and uploading it to https:// | ||
| ===== Tweening Functions ===== | ===== Tweening Functions ===== | ||
lua.1502202367.txt.gz · Last modified: by alex_curran
