Mercurial > wow > kbf
comparison KBF.lua @ 25:69f46450ef82
just some comment/formatting cleanup
author | Chris Mellon <arkanes@gmail.com> |
---|---|
date | Tue, 26 Oct 2010 08:18:02 -0500 |
parents | 1954ee573a37 |
children | 547b70e235fe |
comparison
equal
deleted
inserted
replaced
24:1954ee573a37 | 25:69f46450ef82 |
---|---|
24 self:RegisterChatCommand("kbf", "ToggleAnchor") | 24 self:RegisterChatCommand("kbf", "ToggleAnchor") |
25 end | 25 end |
26 -- naming convention | 26 -- naming convention |
27 -- a "frame" is the top-level button (secure button from the header, or one I make myself) | 27 -- a "frame" is the top-level button (secure button from the header, or one I make myself) |
28 -- that will contain the UI information about the buff | 28 -- that will contain the UI information about the buff |
29 | |
30 -- a "bar" is a frame that has the icon, status bar, ect associated with it | 29 -- a "bar" is a frame that has the icon, status bar, ect associated with it |
31 | 30 |
32 -- Secure aura header doesn't self-bind to vehicle, | 31 -- Secure aura header doesn't self-bind to vehicle, |
33 -- so this probably only works out of combat. But thats better than nothing... | 32 -- so this probably only works out of combat. But thats better than nothing... |
34 function kbf:UNIT_ENTERING_VEHICLE(event, unit) | 33 function kbf:UNIT_ENTERING_VEHICLE(event, unit) |
384 frame:SetAttribute("consolidateTo", nil) | 383 frame:SetAttribute("consolidateTo", nil) |
385 frame:SetAttribute("xOffset", 0) | 384 frame:SetAttribute("xOffset", 0) |
386 frame:SetAttribute("yOffset", -16) | 385 frame:SetAttribute("yOffset", -16) |
387 frame:SetAttribute("minWidth", 216) | 386 frame:SetAttribute("minWidth", 216) |
388 frame:SetAttribute("minHeight", 16) | 387 frame:SetAttribute("minHeight", 16) |
389 frame:SetAttribute("unit", "player") -- TODO: figure out the vehicle swapping stuff | 388 frame:SetAttribute("unit", "player") |
390 frame:SetAttribute("sortMethod", "NAME") | 389 frame:SetAttribute("sortMethod", "NAME") |
391 frame:SetAttribute("sortOrder", "-") | 390 frame:SetAttribute("sortOrder", "-") |
392 -- TODO: SecureAuraHeader doesn't correcltly implement the temp enchants | 391 -- TODO: SecureAuraHeader doesn't correcltly implement the temp enchants |
393 frame:SetAttribute("weaponTemplate", "KBFSecureUnitAuraTemplate") | 392 frame:SetAttribute("weaponTemplate", "KBFSecureUnitAuraTemplate") |
394 frame:SetAttribute("includeWeapons", 1) | 393 frame:SetAttribute("includeWeapons", 1) |