-
-
Notifications
You must be signed in to change notification settings - Fork 75
Creating Addon Packs
Timothy Minahan edited this page Jun 20, 2017
·
11 revisions
THIS PAGE IS OUT OF DATE AND IN THE PROCESS OF BEING UPDATED
Gnome Sequencer now supports addon packs. GS-Core will work as it always has but you can create optional addon packs as long as they start with GS- in the name and are set to Load on Demand.
Create a folder called GS-NewMacros Inside that folder make two files with a text editor:
- GS-NewMacros.toc
- NewSequences.lua
Inside GS-NewMacros.toc:
## Interface: 70100
## Title: GS New Macros
## Notes: A sample random collection of new macros
## Author: Draik
## Version: r1
## RequiredDeps: GS-Core
## LoadOnDemand: 1
NewSequences.lua
loaded.lua
Start the first line of the NewSequences.lua with the following line then continue as before:
local GNOME, Sequences = ...
in the loaded.lua file
local GNOME, Sequences = ...
local modversion = GetAddOnMetadata(GNOME, "Version")
local KnownSequences = {}
for k,_ in pairs(Sequences) do
KnownSequences[k] = true
Sequences[k].source = GNOME -- do this if you don't have a source in your macros
Sequences[k].authorversion = modversion -- do this if you don't have an author version in your macros
end
GSImportLegacyMacroCollections(Sequences) -- This loads the sequences into GS-E
Using the GS API, you can do more things post load. For examples
- https://github.com/TimothyLuke/GnomeSequenced-Enhanced/blob/master/GS-DraikMacros/loaded.lua
- https://github.com/TimothyLuke/GS-HighPerformanceMacros/blob/master/loaded.lua
To do this add this line into your lua file AFTER the sequence. eg:
GSDisableSequence("SequenceName")