Repository navigation
Expand file tree
/
Copy pathData.lua
More file actions
140 lines (136 loc) · 10.1 KB
/
Copy pathData.lua
File metadata and controls
140 lines (136 loc) · 10.1 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
local MM = _G.MacroMaker
local function T(text) return MM:Text(text) end
MM.commandCategories = {
{
name = T("Display"),
entries = {
{ token = "#showtooltip", label = T("Spell tooltip"), hint = T("Select this command, then click a spell."), spellPicker = true },
{ token = "#show", label = T("Spell icon"), hint = T("Select this command, then click a spell."), spellPicker = true },
},
},
{
name = T("Spells & Items"),
entries = {
{ token = "/cast", label = T("Cast spell"), conditions = true, spellPicker = true, hint = T("Select this command, then click a spell.") },
{ token = "/castsequence", label = T("Cast sequence"), placeholder = T("reset=target/10 Spell 1, Spell 2"), conditions = true },
{ token = "/castrandom", label = T("Random spell"), placeholder = T("Spell 1, Spell 2"), conditions = true },
{ token = "/use", label = T("Use item"), placeholder = T("Item name or slot"), conditions = true },
{ token = "/userandom", label = T("Random item"), placeholder = T("Item 1, Item 2"), conditions = true },
{ token = "/equip", label = T("Equip item"), placeholder = T("Item name"), conditions = true },
{ token = "/equipslot", label = T("Equip in slot"), placeholder = T("Slot Item name"), conditions = true },
{ token = "/equipset", label = T("Equipment set"), placeholder = T("Set name"), conditions = true },
},
},
{
name = T("Combat & Status"),
entries = {
{ token = "/cast", label = T("Check and switch stance"), builder = "stance", spellPicker = true, hint = T("Detects the stance number from the spell selected next.") },
{ token = "/startattack", label = T("Start auto attack"), conditions = true },
{ token = "/stopattack", label = T("Stop auto attack"), conditions = true },
{ token = "/stopcasting", label = T("Stop casting"), conditions = true },
{ token = "/stopmacro", label = T("Stop macro here"), conditions = true },
{ token = "/cancelaura", label = T("Cancel aura"), conditions = true, spellPicker = true, hint = T("Select this command, then click the aura spell.") },
{ token = "/cancelform", label = T("Cancel form"), conditions = true },
{ token = "/dismount", label = T("Dismount"), conditions = true },
},
},
{
name = T("Target & Focus"),
entries = {
{ token = "/assist", label = T("Assist target"), placeholder = T("Unit name"), conditions = true },
{ token = "/target", label = T("Select target"), placeholder = T("Name"), conditions = true },
{ token = "/targetexact", label = T("Target exact name"), placeholder = T("Exact name"), conditions = true },
{ token = "/targetenemy", label = T("Next enemy"), conditions = true },
{ token = "/targetfriend", label = T("Next friendly unit"), conditions = true },
{ token = "/targetenemyplayer", label = T("Next enemy player"), conditions = true },
{ token = "/targetfriendplayer", label = T("Next friendly player"), conditions = true },
{ token = "/targetlasttarget", label = T("Last target"), conditions = true },
{ token = "/targetlastenemy", label = T("Last enemy"), conditions = true },
{ token = "/targetlastfriend", label = T("Last friendly unit"), conditions = true },
{ token = "/targetparty", label = T("Next party target"), conditions = true },
{ token = "/targetraid", label = T("Next raid target"), conditions = true },
{ token = "/focus", label = T("Set focus"), conditions = true },
{ token = "/clearfocus", label = T("Clear focus"), conditions = true },
{ token = "/cleartarget", label = T("Clear target"), conditions = true },
},
},
{
name = T("Pet"),
entries = {
{ token = "/petattack", label = T("Pet attack"), conditions = true },
{ token = "/petfollow", label = T("Pet follow"), conditions = true },
{ token = "/petstay", label = T("Pet stay"), conditions = true },
{ token = "/petpassive", label = T("Pet passive"), conditions = true },
{ token = "/petdefensive", label = T("Pet defensive"), conditions = true },
{ token = "/petaggressive", label = T("Pet aggressive"), conditions = true },
{ token = "/petautocaston", label = T("Enable autocast"), placeholder = T("Pet ability"), conditions = true },
{ token = "/petautocastoff", label = T("Disable autocast"), placeholder = T("Pet ability"), conditions = true },
},
},
{
name = T("Action Bars & UI"),
entries = {
{ token = "/click", label = T("Click button"), placeholder = "FrameName", conditions = true },
{ token = "/changeactionbar", label = T("Change action bar"), placeholder = "1-6", conditions = true },
{ token = "/swapactionbar", label = T("Swap action bars"), placeholder = "1 2", conditions = true },
{ token = "/usetalents", label = T("Talent specialization"), placeholder = T("1 or 2"), conditions = true },
},
},
{
name = T("Chat & Advanced"),
entries = {
{ token = "/s", label = T("Say"), placeholder = T("Message") },
{ token = "/y", label = T("Yell"), placeholder = T("Message") },
{ token = "/w", label = T("Whisper"), placeholder = T("Name Message") },
{ token = "/p", label = T("Party"), placeholder = T("Message") },
{ token = "/raid", label = T("Raid"), placeholder = T("Message") },
{ token = "/rw", label = T("Raid warning"), placeholder = T("Message") },
{ token = "/g", label = T("Guild"), placeholder = T("Message") },
{ token = "/emote", label = T("Emote"), placeholder = T("Text") },
{ token = "/run", label = T("Run Lua"), placeholder = T("Lua code (does not bypass restrictions)") },
{ token = "/console", label = T("Console command"), placeholder = T("CVar Value") },
{ token = "/custom", label = T("Custom slash command"), placeholder = T("/command arguments"), raw = true },
},
},
}
MM.targets = {
{ token = "@mouseover", label = T("Mouseover") },
{ token = "@target", label = T("Target") },
{ token = "@focus", label = T("Focus") },
{ token = "@player", label = T("Player") },
{ token = "@pet", label = T("Pet") },
{ token = "@targettarget", label = T("Target of target") },
{ token = "@party1", label = T("Party member 1") },
{ token = "@raid1", label = T("Raid member 1") },
{ token = "@arena1", label = T("Arena opponent 1") },
{ token = "@cursor", label = T("Cursor position (Ascension)") },
}
MM.conditions = {
{ token = "help", label = T("friendly") }, { token = "harm", label = T("hostile") },
{ token = "exists", label = T("exists") }, { token = "dead", label = T("dead") },
{ token = "nodead", label = T("alive") }, { token = "combat", label = T("in combat") },
{ token = "nocombat", label = T("out of combat") }, { token = "mod:shift", label = "Shift" },
{ token = "mod:ctrl", label = "Ctrl" }, { token = "mod:alt", label = "Alt" },
{ token = "nomod", label = T("no modifier") }, { token = "stealth", label = T("stealthed") },
{ token = "mounted", label = T("mounted") }, { token = "flying", label = T("flying") },
{ token = "flyable", label = T("flyable") }, { token = "swimming", label = T("swimming") },
{ token = "indoors", label = T("indoors") }, { token = "outdoors", label = T("outdoors") },
{ token = "group", label = T("in group") }, { token = "nogroup", label = T("not grouped") },
{ token = "party", label = T("party") }, { token = "raid", label = T("raid") },
{ token = "pet", label = T("pet active") }, { token = "stance:1", label = T("in form/stance 1") },
{ token = "nostance:1", label = T("not in form/stance 1") },
{ token = "spec:1", label = T("specialization 1") }, { token = "spec:2", label = T("specialization 2") },
{ token = "channeling", label = T("channeling") }, { token = "vehicleui", label = T("vehicle UI") },
}
MM.templates = {
{ name = T("Switch stance + ability"), body = MM.activeLocale == "deDE" and "#showtooltip\n/cast [stance:1] FÄHIGKEIT; HALTUNG" or "#showtooltip\n/cast [stance:1] ABILITY; STANCE" },
{ name = T("Show current stance ID"), body = MM.activeLocale == "deDE" and "/run print(\"Makro-Haltung:\", GetShapeshiftForm(true) or 0)" or "/run print(\"Macro stance:\", GetShapeshiftForm(true) or 0)" },
{ name = T("Mouseover heal"), body = MM.activeLocale == "deDE" and "#showtooltip\n/cast [@mouseover,help,nodead][help,nodead][@player] FÄHIGKEIT" or "#showtooltip\n/cast [@mouseover,help,nodead][help,nodead][@player] SPELL" },
{ name = T("Focus interrupt"), body = MM.activeLocale == "deDE" and "#showtooltip\n/cast [@focus,harm,nodead][] FÄHIGKEIT" or "#showtooltip\n/cast [@focus,harm,nodead][] SPELL" },
{ name = T("Modifier: Focus / Target"), body = MM.activeLocale == "deDE" and "#showtooltip\n/cast [mod:shift,@focus,harm,nodead][] FÄHIGKEIT" or "#showtooltip\n/cast [mod:shift,@focus,harm,nodead][] SPELL" },
{ name = T("Ground spell at cursor"), body = MM.activeLocale == "deDE" and "#showtooltip\n/cast [@cursor] FÄHIGKEIT" or "#showtooltip\n/cast [@cursor] SPELL" },
{ name = T("Cast sequence"), body = MM.activeLocale == "deDE" and "#showtooltip\n/castsequence reset=target/10 FÄHIGKEIT 1, FÄHIGKEIT 2" or "#showtooltip\n/castsequence reset=target/10 SPELL 1, SPELL 2" },
{ name = T("Attack + ability"), body = MM.activeLocale == "deDE" and "#showtooltip\n/startattack\n/cast FÄHIGKEIT" or "#showtooltip\n/startattack\n/cast ABILITY" },
{ name = T("Trinkets + Cooldown"), body = MM.activeLocale == "deDE" and "#showtooltip\n/use 13\n/use 14\n/cast COOLDOWN" or "#showtooltip\n/use 13\n/use 14\n/cast COOLDOWN" },
{ name = T("Heal/Damage"), body = MM.activeLocale == "deDE" and "#showtooltip\n/cast [help,nodead] HEILUNG; [harm,nodead] SCHADEN" or "#showtooltip\n/cast [help,nodead] HEAL; [harm,nodead] DAMAGE" },
}