-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.lua
85 lines (72 loc) · 2.04 KB
/
plugin.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
-- Basic Framework Plugin
-- by QSC
-- October 2020
-- Information block for the plugin
--[[ #include "info.lua" ]]
-- Define the color of the plugin object in the design
function GetColor(props)
return { 0, 50, 200 }
end
-- The name that will initially display when dragged into a design
function GetPrettyName(props)
return "Allen&Heath~QU Mixer, version " .. PluginInfo.Version
end
-- Optional function used if plugin has multiple pages
PageNames = { "Setup", "Control" } --List the pages within the plugin
function GetPages(props)
local pages = {}
--[[ #include "pages.lua" ]]
return pages
end
-- Optional function to define model if plugin supports more than one model
function GetModel(props)
local model = {}
--[[ #include "model.lua" ]]
return model
end
-- Define User configurable Properties of the plugin
function GetProperties()
local props = {}
--[[ #include "properties.lua" ]]
return props
end
-- Optional function to define pins on the plugin that are not connected to a Control
function GetPins(props)
local pins = {}
--[[ #include "pins.lua" ]]
return pins
end
-- Optional function to update available properties when properties are altered by the user
function RectifyProperties(props)
--[[ #include "rectify_properties.lua" ]]
return props
end
-- Optional function to define components used within the plugin
function GetComponents(props)
local components = {}
--[[ #include "components.lua" ]]
return components
end
-- Optional function to define wiring of components used within the plugin
function GetWiring(props)
local wiring = {}
--[[ #include "wiring.lua" ]]
return wiring
end
-- Defines the Controls used within the plugin
function GetControls(props)
local ctrls = {}
--[[ #include "controls.lua" ]]
return ctrls
end
--Layout of controls and graphics for the plugin UI to display
function GetControlLayout(props)
local layout = {}
local graphics = {}
--[[ #include "layout.lua" ]]
return layout, graphics
end
--Start event based logic
if Controls then
--[[ #include "runtime.lua" ]]
end