Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools


lua

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lua [2017/08/08 14:26] – [WatchMaker Lua API] alex_curranlua [2020/07/24 09:32] (current) alexcurran1
Line 216: Line 216:
     wm_action('color_switch_prev'     -- Color Switch: Previous Color     wm_action('color_switch_prev'     -- Color Switch: Previous Color
     wm_action('color_switch_select'   -- Color Switch: Select Color     wm_action('color_switch_select'   -- Color Switch: Select Color
 +    wm_action('tap_launcher'          -- Launch Tap Launcher 
 +    wm_action('widget_weather'        -- Launch Weather Widget 
 +    wm_action('widget_health'         -- Launch Health Widget 
 +    wm_action('widget_calendar'       -- Launch Calendar Widget 
 +            
     wm_schedule('...'    -- schedule an animation or event (see Scheduling Animations / Functions)     wm_schedule('...'    -- schedule an animation or event (see Scheduling Animations / Functions)
     wm_unschedule_all()    -- unschedule all animations or events     wm_unschedule_all()    -- unschedule all animations or events
Line 222: Line 226:
     wm_sfx('sfx_file'    -- play MP3 file with name sfx_file.mp3 (needs to be in /BeautifulWatches/sfx) - supported watches with speaker only     wm_sfx('sfx_file'    -- play MP3 file with name sfx_file.mp3 (needs to be in /BeautifulWatches/sfx) - supported watches with speaker only
     wm_transition('...'  -- run a transition (see Transitions)     wm_transition('...'  -- run a transition (see Transitions)
 +    wm_anim_set('layerName', 'anim_in', 'Typewriter"    -- set animation in for 'layerName' to Typewriter
 +    wm_anim_set('layerName', 'dur_in', 1.0)     -- set duration in for 'layerName' to 1.0 (or use -1 for default)
 +    wm_anim_start('layerName'   -- start animation on 'layerName'
     wm_tag('...'         -- ONLY use for dynamic variables otherwise will break     wm_tag('...'         -- ONLY use for dynamic variables otherwise will break
                                 return a value of a WatchMaker tag, e.g. wm_tag("{c"..var_myvar.."bp}")                                 return a value of a WatchMaker tag, e.g. wm_tag("{c"..var_myvar.."bp}")
lua.1502202384.txt.gz · Last modified: 2017/08/08 14:26 by alex_curran