vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 DAB_VERSION = "3.16";
2 DAB_DL_VERSION = 1.46;
3  
4 BINDING_HEADER_DAB = "|cFFFFFF00DISCORD ACTION BARS v"..DAB_VERSION;
5 BiNDING_HEADER_DAB1 = "";
6 BiNDING_HEADER_DAB2 = "";
7 BINDING_NAME_DAB_SPACE = "";
8 BINDING_NAME_DAB_OPTIONS = "Toggle Options Window";
9 BINDING_NAME_DAB_DRAGGING = "Toggle Dragging";
10 BINDING_NAME_DAB_BUTTONIDS = "Toggle Button IDs";
11 BINDING_NAME_DAB_BUTTONLOCK = "Toggle Button Lock On All Objects";
12  
13 DAB_DISPELMAGIC = "Dispel Magic";
14  
15 DAB_TEXT = {
16 Action = "Action",
17 ActionID = "Action ID: ",
18 ActionUnusable = "Action Unusable",
19 AddCondition = "Add Condition",
20 AddEvent = "Add Event",
21 AddNew = "Add New Event",
22 AdvConfig = "Advanced Config",
23 Alpha = "Alpha",
24 Amount = "Amount",
25 AnchorFrame = "Anchor Frame",
26 AnchorPoint = "Anchor Point",
27 AnchorTo = "Anchor To",
28 AutoAttack = "Auto-Attack",
29 AutoConfigure = "Auto-Configure",
30 AutoConfigureKB = "Auto-configure Keybindings When Changing Bar Layouts",
31 BackgroundAlpha = "Background Alpha",
32 BackgroundColor = "Background Color",
33 BackgroundMouseoverColor = "Background Mouseover Color",
34 BackgroundMouseoverAlpha = "Background Mouseover Alpha",
35 BackgroundTexture = "Background Texture",
36 BagBar = "Bag Bar",
37 Bar = "Bar",
38 Bars = "ACTION BARS",
39 BarAppearance = "Bar Config";
40 BarControl = "Bar Control",
41 BarOptions = "BAR $n OPTIONS",
42 BarPageDown = "Bar $b Page Down",
43 BarPageUp = "Bar $b Page Up",
44 BindMe = "BIND ME",
45 Border = "Border",
46 BorderAlpha = "Border Alpha",
47 BorderColor = "Border Color",
48 BorderMouseoverColor = "Border Mouseover Color",
49 BorderMouseoverAlpha = "Border Mouseover Alpha",
50 BorderTexture = "Border Texture",
51 Bottom = "Bottom",
52 BuffName = "Buff/Debuff Name",
53 Button = "Button",
54 ButtonAlpha = "Button Alpha",
55 ButtonAppearance = "Adv. Bar Config",
56 ButtonBackground = "Button Background",
57 ButtonBorderAlpha = "Button Border Alpha",
58 ButtonBorderPadding = "Button Border Padding:",
59 ButtonConditionalColor = "Button Conditional Color",
60 ButtonControl = "Button Control",
61 ButtonID = "Button ID: ",
62 ButtonLayout = "Buttons Per Bar",
63 Buttons = "Buttons:",
64 ButtonSize = "Button Size",
65 ButtonText = "Bttn Text (hide|color|size|font)",
66 ButtonTextures = "Button Textures",
67 CDFormat = "Cooldown Count Format:",
68 ChangeActions = "Change Actions",
69 Checked = "Checked",
70 ChooseAction = "CHOOSE ACTION",
71 ChooseCondition = "Choose Condition",
72 ChooseEvent = "Choose Event:",
73 ChooseResponse = "Choose Response",
74 ChooseScript = "Choose Script",
75 CollapseHidden = "Collapse Hidden Buttons",
76 Color = "Color",
77 Comparison = "Comparison",
78 Conditions = "ACTIVE CONDITIONS",
79 Config = "Config",
80 Control = "Control",
81 ControlBarPage = "Change A Bar's Page On Click",
82 ControlBox = "Control Box",
83 ControlBoxes = "CONTROL BOXES",
84 ControlBoxGroup = "Control Box Group",
85 ControlBoxOptions = "CONTROL BOX $n OPTIONS",
86 ControlledGroup = "Group This Box Controls",
87 CooldownCount = "Cooldown Count",
88 CopyAll = "COPY ALL",
89 Count = "Count",
90 CtrlBox = "Ctrl Box",
91 CurrentProfile = "Current Profile:",
92 Desc = "Desc:",
93 Default = "Default",
94 DefaultTarget = "Default Target",
95 Delete = "Delete",
96 DisableMouseOnBar = "Disable Mouse Input On Bar Background",
97 DisableMousewheel = "Disable Mousewheel Paging",
98 DisableTooltip = "Disable Tooltip",
99 DisplayBarPage = "Display Bar's Page Number",
100 DynamicKeybinding = "Dynamic Keybinding",
101 EdgeSize = "Edge Size",
102 Edit = "Edit",
103 ElementScripts = "Element Scripts",
104 Equipped = "Equipped",
105 EventScripts = "OnEvent Scripts",
106 ExpandHidden = "Show Hidden Buttons When Dragging an Action",
107 Filters = "Filters:",
108 FloaterOptions = "FLOATER $n OPTIONS: $a",
109 Floater = "Floater",
110 Floaters = "FLOATERS",
111 Font = "Font",
112 FontSize = "Font Size",
113 Force = "Force",
114 ForceSelfCast = "Force Self-cast:",
115 Form = "Stance/Animal Form/Stealth",
116 FrameStrata = "Frame Strata",
117 FreeButtons = "Buttons Available:",
118 Event = "Event:",
119 Group = "Group",
120 Height = "Height",
121 Hide = "Hide",
122 HideActionIDs = "Hide Action IDs",
123 HideAllLabels = "Hide All Labels",
124 HideBackdrop = "Hide Backdrop",
125 HideButtonIDs = "Hide Button IDs",
126 HideEmpty = "Hide Empty Buttons",
127 HideEverything = "Hide Main Menu Bar Art",
128 HideGlobalCooldownCount = "Hide Global",
129 HideGroups = "Hide Groups On Click",
130 HideOnClick = "Hide On Click",
131 Highlight = "Highlight",
132 IgnoreGlobal = "Ignore Global Cooldown",
133 Insets = "Insets:",
134 JustifyH = "Horiz. Justification",
135 JustifyV = "Vert. Justification",
136 KBWarning = "Use the Discord Action Bars keybindings. Scroll down.",
137 Key1 = "Key 1",
138 Key2 = "Key 2",
139 Keybinding = "Keybinding",
140 Keybindings = "Keybindings",
141 KeyringControl = "Let DAB control the keyring button",
142 KeyringScale = "Keyring Button Scale",
143 Label = "Label",
144 LatencyScale = "Latency Scale",
145 Layout = "Layout",
146 Left = "Left",
147 LoadProfile = "Load Profile:",
148 LockButton = "Lock Button",
149 LockButtons = "Lock Buttons",
150 LockDragging = "Lock Dragging",
151 MacroName = "Macro Name",
152 MainBarOptions = "Main Menu Bar",
153 MenuBar = "Micro Menu Bar",
154 MiddleClickBar = "Middle-click Bar",
155 MiddleClickButton = "Middle-click Action",
156 MiscOptions = "Misc Options",
157 ModifyTooltip = "Show Action and Button ID's in a button's tooltip",
158 MouseoutDelay = "Delay On Mouseout",
159 Name = "Name:",
160 NewProfile = "New Profile: ",
161 NotEnoughMana = "Not Enough Mana",
162 Number = "Number",
163 NumButtonsPerBar = "Button Layout",
164 ObjectOptions = "OBJECT OPTIONS",
165 OnEventScripts = "ON EVENT SCRIPTS",
166 Options = "Options",
167 OptionsScale = "Options Window Scale",
168 OtherBars = "OTHER BARS",
169 OutOfRange = "Out of Range",
170 OverrideButtonLock = "Override Button Lock:",
171 OverrideDragLock = "Override Dragging Lock:",
172 Overrides = "Overridden By:",
173 Padding = "Padding:",
174 Page = "Page",
175 Page2 = "Page It Replaces",
176 Pages = "Pages:",
177 Parameters = "PARAMETERS:",
178 PetAutoAttack = "Pet Auto-Attack",
179 PetBar = "Pet Action Bar",
180 PresetBackdrops = "Preset Backdrops",
181 Recolor = "Recolor",
182 Response = "Response:",
183 Right = "Right",
184 RightClickBar = "Right-click Bar",
185 RightClickButton = "Right-click Action",
186 Rows = "Rows",
187 RunOn = "Run On Key:",
188 RunOnDown = "Down",
189 RunOnUp = "Up",
190 SafeLoad = "SAFE LOAD",
191 Scale = "Button Scale",
192 Scripts = "Scripts",
193 SetActionIDs = "Set Action IDs",
194 SetBarPage = "Set Bar $b to Page $p",
195 SetKBGroup = "Set Group $g to Bar $b",
196 ShapeshiftBar = "Shapeshift Bar",
197 ShowActionIDs = "Show Action IDs",
198 ShowButtonIDs = "Show Button IDs",
199 ShowCooldownCount = "Show Cooldown Count",
200 ShowLatency = "Let DAB Control Latency Bar",
201 ShowOnMouseover = "Show On Mouseover",
202 ShowXP = "Let DAB Control XP Bar",
203 SkipPages = "Skip Pages",
204 SpacingH = "Horizontal Spacing",
205 SpacingV = "Vertical Spacing",
206 Text = "Text",
207 TextAlpha = "Text Alpha",
208 TextColor = "Text Color",
209 TextMouseoverAlpha = "Text Mouseover Alpha",
210 TextMouseoverColor = "Text Mouseover Color",
211 Texture = "Texture",
212 Tile = "Tile",
213 TileSize = "Tile Size",
214 ToggleGroupOnClick = "Toggle Group On Click",
215 ToggleGroupOnRightClick = "Toggle Group On Right-click",
216 ToggleGroupOnMiddleClick = "Toggle Group On Middle-click",
217 ToggleGroupOnMouseover = "Toggle Group On Mouseover",
218 Top = "Top",
219 TotalUsed = "Total Used:",
220 TrimEdges = "Trim Button Edges",
221 Type = "Type",
222 Undefined = "Undefined",
223 Unit = "Unit",
224 UnlockDragging = "Unlock Dragging",
225 UpdateSpeed = "Updates Per Second",
226 VariableKeybinding = "Variable Keybinding $n",
227 Warning = "Not enough buttons available.\nFree up |cFFAAAAFF$n|cFFFFFF00 buttons.",
228 Width = "Width",
229 XPAlpha = "XP Bar Alpha",
230 XPBorderColor = "XP Border Color",
231 XPColor = "XP Bar Color",
232 XPHideBorder = "Hide XP Bar Border",
233 XPScale = "XP Bar Scale",
234 }
235  
236 DAB_HELP_TEXT = {
237 "Discord Action Bars Slash Commands",
238 "------------------------------------------------------",
239 "/dab - toggle the options window",
240 "/dab barshow # - show bar #",
241 "/dab barhide # - hide bar #",
242 "/dab bartoggle # - show bar # if it's hidden else hide it",
243 "/dab floatershow # - show floater #",
244 "/dab floaterhide # - hide floater #",
245 "/dab floatertoggle # - show floater # if it's hidden else hide it",
246 "/dab clearbar # - removes the actions from all buttons on bar #",
247 "/dab hideallbars - hide all bars",
248 "/dab showallbars - show all bars",
249 "/dab setkeygroup group# bar# - sets a keybinding group to the bar",
250 "/dab groupshow # - shows all objects set to control box group #",
251 "/dab grouphide # - hides all objects set to control box group #",
252 "/dab grouptoggle # - toggles all objects set to control box group #",
253 "/dab drag - toggles the dragging lock",
254 "/dab ids - toggles showing action IDs inside the buttons",
255 "/dab load profilename - loads the specified profile"
256 };
257  
258 DAB_RECOLOR = {
259 { text = "Icon", value = 1 },
260 { text = "Border", value = 2 },
261 { text = "Keybinding Text", value = 3 }
262 }
263  
264 DAB_BAR_RESPONSES = {
265 { text="No Response", value=0, desc="Doesn't do anything. Useful for condtions which are only overrides." },
266 { text="Change Page", value=1, desc="Changes the page of this bar to the page you choose." },
267 { text="Remap Page", value=32, desc="Causes the page of your choice to replace another page." },
268 { text="Hide", value=2, desc="Hides this bar." },
269 { text="Show", value=3, desc="Shows this bar." },
270 { text="Set Alpha", value=4, desc="Sets the transparency of the entire bar." },
271 { text="Set Background Alpha", value=5, desc="Sets the transparency of the bar's background." },
272 { text="Set Background Color", value=6, desc="Sets the color of the bar's background." },
273 { text="Set Border Alpha", value=7, desc="Sets the transparency of the bar's border." },
274 { text="Set Border Color", value=8, desc="Sets the color of the bar's border." },
275 { text="Set Button Alpha", value=9, desc="Sets the transparency of all the bar's buttons." },
276 { text="Set Button Size", value=19, desc="Sets the size of all the bar's buttons." },
277 { text="Set Button Border Color", value=20, desc="Sets the border color of all the bar's buttons." },
278 { text="Apply Keybinding Group", value=10, desc="Applies a group of keybindings to this bar. Keybinding groups are created in the Keybindings window brought up with the button to the left." },
279 { text="Move To Location", value=35, desc="Lets you specify X and Y offsets to move the bar to. It will remain relative to its anchor frame and points." },
280 { text="Move Up", value=11, desc="Moves the bar up by the specified amount." },
281 { text="Move Down", value=12, desc="Moves the bar down by the specified amount." },
282 { text="Move Left", value=13, desc="Moves the bar left by the specified amount." },
283 { text="Move Right", value=14, desc="Moves the bar right by the specified amount." },
284 { text="Move Under Mouse Cursor", value=21, desc="Moves the center of the bar to a point directly beneath the mouse cursor." },
285 { text="Return to Previous Page", value=22, desc="Returns the bar to the page it was on before the last time its page was changed." },
286 { text="Set Top BG Padding", value=15, desc="Sets the amount of space between the top border and the bar's buttons." },
287 { text="Set Bottom BG Padding", value=16, desc="Sets the amount of space between the bottom border and the bar's buttons." },
288 { text="Set Left BG Padding", value=17, desc="Sets the amount of space between the left border and the bar's buttons." },
289 { text="Set Right BG Padding", value=18, desc="Sets the amount of space between the right border and the bar's buttons." },
290 { text="Set Bar Target", value=33, desc="Lets you specify a unit ID all buttons on the bar will automatically target. The unit will always be targetted by the bar until the target is removed by the response below." },
291 { text="Remove Bar Target", value=34, desc="Removes a target override set by the Set Bar Target response." },
292 { text="Hide Bar", value=102, desc="Hides a bar of your choice." },
293 { text="Show Bar", value=103, desc="Shows a bar of your choice." },
294 { text="Hide Control Box", value=104, desc="Hides a control box of your choice." },
295 { text="Show Control Box", value=105, desc="Shows a control box of your choice." },
296 { text="Hide Floater", value=106, desc="Hides a floater of your choice." },
297 { text="Show Floater", value=107, desc="Shows a floater of your choice." },
298 { text="Chat Frame Message", value=100, desc="Sends a message to your default chat frame that only you see." },
299 { text="Floating Message", value=101, desc="Places a message at the top of the screen that slowly fades away. It's similar to when you loot a quest item." },
300 { text="Set Variable to True", value=108, desc="Sets a variable's value to true. Type in the name of any variable. Doesn't have to be an existing variable." },
301 { text="Set Variable to False", value=109, desc="Sets a variable's value to false. Type in the name of any variable. Doesn't have to be an existing variable." },
302 { text="Set Timer", value=113, desc="Set a timer that counts down invisibly for use in condition checking. Give the timer an id with the Text editbox and enter the seconds in the Number editbox."},
303 { text="Play Sound", value=114, desc="Type in the path and filename of the sound to play."},
304 { text="Run Script", value=115, desc="Type in lua code for the Text parameter and it will be executed."},
305 }
306  
307 DAB_FLOATER_RESPONSES = {
308 { text="No Response", value=0, desc="Doesn't do anything. Useful for condtions which are only overrides." },
309 { text="Hide", value=2, desc="Hides this floater." },
310 { text="Show", value=3, desc="Shows this floater." },
311 { text="Remove Color", value=28, desc="Returns the floater to normal recoloring based on mana, range, etc. after a Set Color response." },
312 { text="Set Alpha", value=4, desc="Sets the transparency of the floater." },
313 { text="Set Color", value=22, desc="Sets the color of the floater." },
314 { text="Set Size", value=19, desc="Sets the size of the floater." },
315 { text="Set Border Alpha", value=7, desc="Sets the transparency of the floater's border." },
316 { text="Set Border Color", value=8, desc="Sets the color of the floater's border." },
317 { text="Set Keybinding", value=23, desc="Sets a particular keybinding to apply to this floater. Type in the number of the keybinding. A keybinding's number is the little yellow number that is shown to the left of a keybinding in DAB's Keybindings window." },
318 { text="Move To Location", value=35, desc="Lets you specify X and Y offsets to move the floater to. It will remain relative to its anchor frame and points." },
319 { text="Move Up", value=11, desc="Moves the floater up on the screen." },
320 { text="Move Down", value=12, desc="Moves the floater down on the screen." },
321 { text="Move Left", value=13, desc="Moves the floater left on the screen." },
322 { text="Move Right", value=14, desc="Moves the floater right on the screen." },
323 { text="Move Under Mouse Cursor", value=21, desc="Moves the center of the floater to a point directly beneath the mouse cursor." },
324 { text="Set Action", value=29, desc="Let's you change this button's action to any action." },
325 { text="Start Blinking", value=24, desc="Starts the floater fading in and out repeatedly." },
326 { text="Stop Blinking", value=25, desc="Stops the floater from fading in and out repeatedly." },
327 { text="Start Flashing", value=26, desc="Starts the red flashing you see when you have an auto-attack action enabled." },
328 { text="Stop Flashing", value=27, desc="Stops the floater from flashing." },
329 { text="Enable Button", value=30, desc="Re-enables mouse clicks and keybindings for the button." },
330 { text="Disable Button", value=31, desc="Disables mouse clicks and keybindings on the button." },
331 { text="Set Button Target", value=33, desc="Lets you specify a unit ID the button will automatically target. The unit will always be targetted by the button until the target is removed by the response below." },
332 { text="Remove Button Target", value=34, desc="Removes a target override set by the Set Button Target response." },
333 { text="Hide Bar", value=102, desc="Hides a bar of your choice." },
334 { text="Show Bar", value=103, desc="Shows a bar of your choice." },
335 { text="Hide Control Box", value=104, desc="Hides a control box of your choice." },
336 { text="Show Control Box", value=105, desc="Shows a control box of your choice." },
337 { text="Hide Floater", value=106, desc="Hides a floater of your choice." },
338 { text="Show Floater", value=107, desc="Shows a floater of your choice." },
339 { text="Chat Frame Message", value=100, desc="Sends a message to your default chat frame that only you see." },
340 { text="Floating Message", value=101, desc="Places a message at the top of the screen that slowly fades away. It's similar to when you loot a quest item." },
341 { text="Set Variable to True", value=108, desc="Sets a variable's value to true. Type in the name of any variable. Doesn't have to be an existing variable." },
342 { text="Set Variable to False", value=109, desc="Sets a variable's value to false. Type in the name of any variable. Doesn't have to be an existing variable." },
343 { text="Set Timer", value=113, desc="Set a timer that counts down invisibly for use in condition checking. Give the timer an id with the Text editbox and enter the seconds in the Number editbox."},
344 { text="Play Sound", value=114, desc="Type in the path and filename of the sound to play."},
345 { text="Run Script", value=115, desc="Type in lua code for the Text parameter and it will be executed."},
346 }
347  
348 DAB_BUTTONBAR_RESPONSES = {
349 { text="No Response", value=0, desc="Doesn't do anything. Useful for condtions which are only overrides." },
350 { text="Hide", value=2, desc="Hides this button." },
351 { text="Show", value=3, desc="Shows this button." },
352 { text="Remove Color", value=28, desc="Returns this button to normal recoloring based on mana, range, etc. after a Set Color response." },
353 { text="Set Action", value=29, desc="Let's you change this button's action to any action." },
354 { text="Set Alpha", value=4, desc="Sets the transparency of this button." },
355 { text="Set Color", value=22, desc="Sets the color of this button." },
356 { text="Start Blinking", value=24, desc="Starts the button fading in and out repeatedly." },
357 { text="Stop Blinking", value=25, desc="Stops the button from fading in and out repeatedly." },
358 { text="Start Flashing", value=26, desc="Starts the red flashing you see when you have an auto-attack action enabled." },
359 { text="Stop Flashing", value=27, desc="Stops the button from flashing." },
360 { text="Enable Button", value=30, desc="Re-enables mouse clicks and keybindings for the button." },
361 { text="Disable Button", value=31, desc="Disables mouse clicks and keybindings on the button." },
362 { text="Set Button Target", value=33, desc="Lets you specify a unit ID the button will automatically target. The unit will always be targetted by the button until the target is removed by the response below." },
363 { text="Remove Button Target", value=34, desc="Removes a target override set by the Set Button Target response." },
364 { text="Hide Bar", value=102, desc="Hides a bar of your choice." },
365 { text="Show Bar", value=103, desc="Shows a bar of your choice." },
366 { text="Hide Control Box", value=104, desc="Hides a control box of your choice." },
367 { text="Show Control Box", value=105, desc="Shows a control box of your choice." },
368 { text="Hide Floater", value=106, desc="Hides a floater of your choice." },
369 { text="Show Floater", value=107, desc="Shows a floater of your choice." },
370 { text="Chat Frame Message", value=100, desc="Sends a message to your default chat frame that only you see." },
371 { text="Floating Message", value=101, desc="Places a message at the top of the screen that slowly fades away. It's similar to when you loot a quest item." },
372 { text="Set Variable to True", value=108, desc="Sets a variable's value to true. Type in the name of any variable. Doesn't have to be an existing variable." },
373 { text="Set Variable to False", value=109, desc="Sets a variable's value to false. Type in the name of any variable. Doesn't have to be an existing variable." },
374 { text="Set Timer", value=113, desc="Set a timer that counts down invisibly for use in condition checking. Give the timer an id with the Text editbox and enter the seconds in the Number editbox."},
375 { text="Play Sound", value=114, desc="Type in the path and filename of the sound to play."},
376 { text="Run Script", value=115, desc="Type in lua code for the Text parameter and it will be executed."},
377 }
378  
379 DAB_EVENTS = {
380 { text="Party Members Changed", value="PARTY_MEMBERS_CHANGED", desc="Thrown when players leave or join your party." },
381 { text="Pet Attack Start", value="PET_ATTACK_START", desc="Thrown when your pet starts attacking." },
382 { text="Pet Attack Stop", value="PET_ATTACK_STOP", desc="Thrown when your pet stops attacking." },
383 { text="Player Auto-Attack Start", value="PLAYER_ENTER_COMBAT", desc="Thrown when you start auto-attacking with a melee weapon." },
384 { text="Player Auto-Attack Stop", value="PLAYER_LEAVE_COMBAT", desc="Thrown when you stop auto-attacking with a melee weapon." },
385 { text="Player Combo Points", value="PLAYER_COMBO_POINTS", desc="Thrown when you gain or lose combo points." },
386 { text="Player Gained Threat", value="PLAYER_REGEN_DISABLED", desc="Thrown when you do anything to gain threat: damage a mob, heal someone attacking the mob, etc." },
387 { text="Player Lost Threat", value="PLAYER_REGEN_ENABLED", desc="Thrown when you've lost all threat." },
388 { text="Player Target Changed", value="PLAYER_TARGET_CHANGED", desc="Thrown when you change targets." },
389 { text="Raid Members Changed", value="RAID_ROSTER_UPDATE", desc="Thrown when players leave or join your raid." },
390 { text="Unit Buffs/Debuffs Changed", value="UNIT_AURA", desc="Thrown when you, any party member, and any raid member gains a new buff/debuff or loses a buff/debuff.\narg1 = unit ID of the unit who's buffs changed" },
391 { text="Unit's Energy Changed", value="UNIT_ENERGY", desc="Thrown when you, any party member, and any raid member gain or lose energy.\narg1 = unit ID of the unit who's energy changed" },
392 { text="Unit's Focus Changed", value="UNIT_FOCUS", desc="Thrown when your pet or any party member's pet gains or loses focus.\narg1 = unit ID of the unit who's focus changed" },
393 { text="Unit's Health Changed", value="UNIT_HEALTH", desc="Thrown when you, any party member, and any raid member gain or lose health.\narg1 = unit ID of the unit who's health changed" },
394 { text="Unit's Mana Changed", value="UNIT_MANA", desc="Thrown when you, any party member, and any raid member gain or lose mana.\narg1 = unit ID of the unit who's mana changed" },
395 { text="Unit's Pet Changed", value="UNIT_PET", desc="Thrown when you or any party members summon or unsummon a pet.\narg1 = unit ID of the pet that was summoned or unsummoned" },
396 { text="Unit's Rage Changed", value="UNIT_RAGE", desc="Thrown when you, any party member, and any raid member gain or lose rage.\narg1 = unit ID of the unit who's rage changed" },
397 { text="Variable Keybinding Pressed", value="VariableKeybinding", desc="Thrown when you press a Variable Keybinding.\narg1 = the number of the keybinding, arg2 = 1 for down, 2 for up"},
398 { text="Variables Loaded", value="VARIABLES_LOADED", desc="Thrown when the mod first loads and whenever you change the script for this event." },
399 { text="You Shapeshift", value="UPDATE_BONUS_ACTIONBAR", desc="Thrown when you stealth, change animal forms, or change stances." },
400 { text="OnUpdate", value="OnUpdate", desc="Thrown a number of times per second equal to the Updates Per Second you set.\narg1 = time elapsed in seconds since the last time this event was thrown" }
401 }
402  
403 DAB_SCRIPTS = {
404 {text="OnClick - After", value=2, desc="Runs when you click the object.\nRuns after DAB's regular click processing.\nparam = the button clicked: LeftButton, RightButton, MiddleButton,\nButton4, Button5"},
405 {text="OnClick - Before", value=12, desc="Runs when you click the object.\nRuns before DAB's regular click processing.\nparam = the button clicked: LeftButton, RightButton, MiddleButton,\nButton4, Button5"},
406 {text="OnEnter", value=3, desc="Runs repeatedly as you move the mouse over the object.\nObject must be shown."},
407 {text="OnEvent", value=8, desc="Runs whenever an event is thrown the\nobject is registered to monitor."},
408 {text="OnHide", value=6, desc="Runs once each time the object is hidden."},
409 {text="OnKeybindingDown - After", value=10, desc="Runs once when the keybinding for this object\nis pressed down.\nparam = the button ID of the button's who's binding was pressed"},
410 {text="OnKeybindingDown - Before", value=13, desc="Runs once when the keybinding for this object\nis pressed down.\nparam = the button ID of the button's who's binding was pressed"},
411 {text="OnKeybindingUp - After", value=11, desc="Runs once when the keybinding for this object\nis released.\nparam = the button ID of the button's who's binding was pressed"},
412 {text="OnKeybindingUp - Before", value=14, desc="Runs once when the keybinding for this object\nis released.\nparam = the button ID of the button's who's binding was pressed"},
413 {text="OnLeave", value=4, desc="Runs once when the mouse is moved off the object.\nObject must be shown."},
414 {text="OnLoad", value=1, desc="Runs once when the mod loads or when you\nchange this script."},
415 {text="OnMouseWheel", value=9, desc="Runs when the mousewheel is scrolled while\nthe cursor is over the object."},
416 {text="OnShow", value=5, desc="Runs once each time the object is shown."},
417 {text="OnUpdate", value=7, desc="Runs a number of times per second while object's shown.\nparam = time elapsed since last run"}
418 }
419  
420 DAB_KEYBINDING_OPTIONS = {
421 {text="", value=0, desc="Set the keybinding to do nothing."},
422 {text="Bar", value=1, desc="Set this keybinding to press a specific button on a specific bar. The middle drop-down menu is where you select the bar. The right drop-down menu is where you select the button. These keybindings are shared across all of the bar's pages."},
423 {text="Group", value=2, desc="Set this keybinding to be part of a group of keybindings. Keybinding groups can be applied to different bars on the fly."},
424 {text="Floater", value=3, desc="Set this keybinding to press a specific floater."},
425 {text="Control Box", value=4, desc="Set this keybinding to press a specific control box. If the control box is set to toggle objects on mouseover then holding the keybinding down acts as a mouseover and releasing the keybinding acts as a mouseout."},
426 {text="Apply Group To Bar", value=5, desc="Set this keybinding to apply a specific keybinding group to a specific bar."},
427 {text="Set Bar Page", value=6, desc="Set this keybinding to change a bar to the page you specify."},
428 {text="Bar Page Up", value = 7, desc="Set this keybinding to change a bar to its next page."},
429 {text="Bar Page Down", value = 8, desc="Set this keybinding to change a bar to its previous page."},
430 {text="Variable Keybinding", value=9, desc="This is a special keybinding mostly used in an object's conditions when you want to check if a certain key is up or down. The number you choose in the middle drop-down menu is the number you type for the Variable Keybinding Up/Down conditions."},
431 {text="Self-cast Bar", value=10, desc="Set this keybinding to automatically self-cast the action in a specific button on a specific bar."},
432 {text="Self-cast Floater", value=11, desc="Set this keybinding to automatically self-cast the action in a specific floater."},
433 {text="Button on Bar Page", value=12, desc="Set this keybinding to use the action in a specific button on any page of a bar."},
434 {text="Use Action", value=13, desc="This will let you bind a key directly to an action. That action doesn't have to be in any action button."},
435 {text="Self-cast Action", value=14, desc="This will let you bind a key directly to an action. That action doesn't have to be in any action button. The action will automatically target you."},
436 }
437  
438 DAB_LAYOUTS = {
439 {text="1 Row", value=1},
440 {text="2 Rows", value=2},
441 {text="1 Column", value=3},
442 {text="2 Columns", value=4}
443 }
444  
445 DAB_PAGE_CONTROLS = {
446 {text="Page Up", value=1},
447 {text="Page Down", value=2},
448 {text="Set Page", value=3}
449 }
450  
451 DAB_ACTIONID_FILTERS = {
452 {text="ALL", value=1},
453 {text="Floaters", value=2}
454 }
455 for b=1,10 do
456 DAB_ACTIONID_FILTERS[b + 2] = {text="Bar "..b, value=b+2};
457 end
458  
459 DAB_MODIFIER_KEYS = {
460 {text="None", value=0},
461 {text="Alt", value=1},
462 {text="Ctrl", value=2},
463 {text="Shift", value=3}
464 }
465  
466 DAB_TIME_FORMAT = {
467 {text=1, value=1, desc="If cooldown is less than 60 seconds, it displays the seconds remaining. Otherwise it displays the minutes remaining."},
468 {text=2, value=2, desc="Always displays the cooldown as seconds remaining."},
469 {text=3, value=3, desc="Displays the cooldown in a mm:ss format."}
470 }
471  
472 -- GERMAN LOCALIZATION
473 if (GetLocale() == "deDE") then
474 DAB_DISPELMAGIC = "Magiebannung";
475 end
476  
477 -- FRENCH LOCALIZATION
478 if (GetLocale() == "frFR") then
479 DAB_DISPELMAGIC = "Dissiper la magie"
480 end
481  
482  
483  
484 -- GLOBALS, DO NOT CHANGE --
485  
486 DAB_BAR_LIST = {};
487 DAB_OBJECT_INDEX = 2;
488 DAB_OBJECT_TYPE = "Bar";
489 DAB_OBJECT_SUBINDEX = 1;
490 DAB_CONDITION_BUFFER = {};
491 DAB_SELECTED_KEYBINDING = {};
492 DAB_VARIABLE_KEYBINDINGS = {};
493 DAB_AUTOCAST_QUEUE = {};
494 DAB_ACTIONIDS_FILTER1 = 1;
495 DAB_ACTIONIDS_FILTER2 = 1;
496 DAB_NUM_BARS = 10;
497 DAB_NUM_BUTTONS = 120;
498  
499 DAB_OTHER_BAR = {};
500 for i=11, 14 do
501 DAB_OTHER_BAR[i] = {};
502 end
503 DAB_OTHER_BAR[11][0] = { tag="_Pet", numButtons=10, offset=0, height=30, width=30 };
504 DAB_OTHER_BAR[12][0] = { tag="_Form", numButtons=10, offset=0, height=30, width=30 };
505 DAB_OTHER_BAR[13][0] = { tag="_Bag", numButtons=5, offset=0, height=37, width=37 };
506 DAB_OTHER_BAR[14][0] = { tag="_Menu", numButtons=8, offset=20, height=38, width=29 };
507 for i=1,10 do
508 DAB_OTHER_BAR[11][i] = "PetActionButton"..i;
509 DAB_OTHER_BAR[12][i] = "ShapeshiftButton"..i;
510 end
511 DAB_OTHER_BAR[13][5] = "MainMenuBarBackpackButton";
512 for i=0,3 do
513 DAB_OTHER_BAR[13][4 - i] = "CharacterBag"..i.."Slot"
514 end
515 DAB_OTHER_BAR[14][1] = "CharacterMicroButton";
516 DAB_OTHER_BAR[14][2] = "SpellbookMicroButton";
517 DAB_OTHER_BAR[14][3] = "TalentMicroButton";
518 DAB_OTHER_BAR[14][4] = "QuestLogMicroButton";
519 DAB_OTHER_BAR[14][5] = "SocialsMicroButton";
520 DAB_OTHER_BAR[14][6] = "WorldMapMicroButton";
521 DAB_OTHER_BAR[14][7] = "MainMenuMicroButton";
522 DAB_OTHER_BAR[14][8] = "HelpMicroButton";
523  
524 DAB_NUMBERS = {};
525 for i=1, 10 do
526 DAB_NUMBERS[i] = {text=i, value=i};
527 end
528  
529 DAB_KB_COLOR = {
530 [0] = "777777",
531 [1] = {
532 "DDDDDD",
533 "DDDD00",
534 "00FF00",
535 "FF3333",
536 "4444FF",
537 "FF00FF",
538 "FF8800",
539 "00FFFF",
540 "FFAAAA",
541 "AAFFAA"
542 },
543 [2] = "00FFFF",
544 [3] = "FFFF00",
545 [4] = "FF0000",
546 [5] = "00FFFF",
547 [6] = "CCCCCC",
548 [7] = "CCCCCC",
549 [8] = "CCCCCC",
550 [9] = "00FF00",
551 [10] = {
552 "DDDDDD",
553 "DDDD00",
554 "00FF00",
555 "FF3333",
556 "4444FF",
557 "FF00FF",
558 "FF8800",
559 "00FFFF",
560 "FFAAAA",
561 "AAFFAA"
562 },
563 [11] = "FFFF00",
564 [12] = {
565 "DDDDDD",
566 "DDDD00",
567 "00FF00",
568 "FF3333",
569 "4444FF",
570 "FF00FF",
571 "FF8800",
572 "00FFFF",
573 "FFAAAA",
574 "AAFFAA"
575 },
576 [13] = "FFFF00",
577 [14] = "FFFF00"
578 }