vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 local DYMenuArray = { "On", "Yellow", "Faction", "Debuff", "Safe", "Assist" };
2 local DYMenuTipArray = { "Toggle DefendYourself! On/Off", "Ignore yellow creatures", "Ignore opposing faction members", "Ignore debuffed creatures", "Bloodlust: Will attack regardless of if you're in combat", "Smart Assist: Target what your party is working on" };
3 local DYMenuTextArray = {"Toggle", "Yellow", "Faction", "Debuff", "Bloodlust", "Assist" };
4 function DYMenu_Show()
5 if not DYKey then this:GetParent():Hide(); return; end
6 local dyms = DYKey[DYMenuArray[this:GetID()]]
7 if dyms then
8 this:SetChecked(1);
9 else
10 this:SetChecked(0);
11 end
12 dyms = nil;
13 getglobal(this:GetName().."Text"):SetText(DYMenuTextArray[this:GetID()]);
14 end
15 function DYMenu_Click()
16 if not DYKey then this:GetParent():Hide(); return; end
17 if this:GetChecked() then
18 DYKey[DYMenuArray[this:GetID()]] = true;
19 else
20 DYKey[DYMenuArray[this:GetID()]] = nil;
21 end
22 end
23 function DYMenu_Enter()
24 if not DYKey then this:GetParent():Hide(); return; end
25 local msg = DYMenuTipArray[this:GetID()];
26 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
27 GameTooltip:SetBackdropColor(0.0, 0.0, 0.0);
28 if msg ~= nil then GameTooltip:SetText(msg, 1.0, 1.0, 1.0); end
29 end