Update

Richard Atterfalk [03-08-19 - 07:44]
Update

Removed the options for changing colour, since the saving-method is not
yet implemented. Further testing is required.
Filename
toxicIRC.lua
diff --git a/toxicIRC.lua b/toxicIRC.lua
index 0fb12c2..5cee706 100644
--- a/toxicIRC.lua
+++ b/toxicIRC.lua
@@ -16,8 +16,8 @@ local optionsData = {
             type = "colorpicker",
             name = "Text Color",
             getFunc = function() return toxicIRCAddon.savedVariables.colors.r, toxicIRCAddon.savedVariables.colors.g, toxicIRCAddon.savedVariables.colors.b end,
-            -- setFunc = function(r,g,b,a) print(r,g,b) end,
-            setFunc = function(r,g,b,a) toxicIRCAddon.savedVariables.colors.r=r, toxicIRCAddon.savedVariables.colors.g=g, toxicIRCAddon.savedVariables.colors.b=b end,
+            setFunc = function(r,g,b,a) print(r,g,b) end,
+            -- setFunc = function(r,g,b,a) toxicIRCAddon.savedVariables.colors.r=r, toxicIRCAddon.savedVariables.colors.g=g, toxicIRCAddon.savedVariables.colors.b=b end,
             tooltip = "Set the color of the text.",
             width = "full",
             requiresReload = false, -- boolean, if set to true, the warning text will contain a notice that changes are only applied after an UI reload and any change to the value will make the "Apply Settings" button appear on the panel which will reload the UI when pressed (optional)
@@ -86,8 +86,8 @@ function toxicIRCAddon:Initialize()
     }

     self.savedVariables = ZO_SavedVars:New("toxicIRCSavedVariables", 1, nil, defaults)
-    LAM:RegisterAddonPanel("MyAddonOptions", panelData)
-    LAM:RegisterOptionControls("MyAddonOptions", optionsData)
+    -- LAM:RegisterAddonPanel("MyAddonOptions", panelData)
+    -- LAM:RegisterOptionControls("MyAddonOptions", optionsData)
 end

 function toxicIRCAddon.OnAddOnLoaded(event, addonName)