-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslashcommands.lua
More file actions
41 lines (34 loc) · 1.07 KB
/
slashcommands.lua
File metadata and controls
41 lines (34 loc) · 1.07 KB
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
local function resetCurrentForm()
TrueFormVariables.currentForm = 2
TrueForm_HandleButtons(2)
print("form tracker reset")
end
local function printCurrentForm()
print(TrueFormVariables.currentForm)
end
local function toggleTrueForm()
if InCombatLockdown() then
local colorRed = CreateColor(0.51, 0.05, 0.03)
print(colorRed:WrapTextInColorCode("TrueForm:")," Can't open visual menu in combat, try again after combat ends.")
return
end
if TrueForm:IsShown() then
TrueForm:Hide()
else
TrueForm:Show()
end
end
SLASH_TRUFORMRES1 = "/tfres"
SLASH_TRUFORMTOG1 = "/trueform"
SLASH_TRUFORMTOG2 = "/tftf"
SLASH_TRUFORMPR1 = "/tfpr"
SlashCmdList["TRUFORMRES"] = resetCurrentForm
SlashCmdList["TRUFORMTOG"] = toggleTrueForm
SlashCmdList["TRUFORMPR"] = printCurrentForm
local function resetFirstInstall()
TrueFormVariables.firstInstallDone = false
end
SLASH_TRUFORMREINSTALL1 = "/tfreins"
SlashCmdList["TRUFORMREINSTALL"] = resetFirstInstall
SLASH_TRUFORMGEN1 = "/tfgen"
SlashCmdList["TRUFORMGEN"] = TrueForm_GenerateMacros