KlazScipts/Core/Config.lua
2024-03-17 18:33:11 -04:00

40 lines
1.0 KiB
Lua

local addon, ns = ...
local L = ns.L
local T = ns.T
--------------------------------------------------------------------------------
-- # CORE > CONFIG
--------------------------------------------------------------------------------
-- ## RESET
--------------------------------------------------------------------------------
StaticPopupDialogs.KLAZSCRIPTS_RESET = {
text = L.CONFIG_POPUP_RESET,
button1 = ACCEPT,
button2 = CANCEL,
OnAccept = function()
end,
OnCancel = function() end,
showAlert = true,
timeout = 0,
whileDead = 1,
hideOnEscape = true,
preferredIndex = 5,
}
-- ## SLASH COMMAND
--------------------------------------------------------------------------------
SlashCmdList['KLAZSCRIPTS'] = function(msg)
if string.lower(msg) == 'reset' then
StaticPopup_Show('KLAZSCRIPTS_RESET')
else
print('------------------------------------------')
print('Klaz|cff1994ffScripts|r')
print('------------------------------------------')
end
end
SLASH_KLAZSCRIPTS1 = '/klazscripts'
SLASH_KLAZSCRIPTS2 = '/kscripts'