From 81efaea6a9d7aa49820a287b8e4aa5e03d3ef43d Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 10 Oct 2021 11:43:56 +0200 Subject: [PATCH] custom: add template module --- mods/custom.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 mods/custom.lua diff --git a/mods/custom.lua b/mods/custom.lua new file mode 100644 index 0000000..91b65e1 --- /dev/null +++ b/mods/custom.lua @@ -0,0 +1,20 @@ +-- This is a sample module skeleton. +-- It does not serve any purpose, other than showing how to write a module. +-- Don't forget to add your module to the *.toc file once you're done. + +local _G = _G or getfenv(0) +local GetExpansion = ShaguTweaks.GetExpansion + +-- Remove this line, if you want the code for both expansions +if GetExpansion() == "tbc" then return end + +-- This table holds the meta-data of the module: +local module = ShaguTweaks:register({ + title = "Custom Options", + description = "A template module, showcasing custom changes", + enabled = nil, +}) + +module.enable = function(self) + -- this code is running, if the mod gets enabled in the settings +end