Code Snippets
A snippet template .snippet
is a special Lua file that describes how to generate plain-text code or other objects from the results of one or more "snippet pickers". Generated objects can be saved into XUI configuration, and text results can be inserted quickly in the code editor.
"Snippet pickers" are a set of predefined pickers used to produce inputs for a snippet. Supported picker types:
-
Single App Picker
app
-
Multiple Apps Picker
apps
-
Location Picker
loc
-
Virtual Key Picker
key
-
Single Image Position Picker
pos
-
Single Image Color Picker
color
-
Single Image Position & Color Picker
poscolor
-
Multiple Image Positions & Colors Picker
poscolors
-
Image Rect Picker
rect