| Updated: | 01-14-10 05:31 PM |
| Created: | 01-14-10 05:31 PM |
| Downloads: | 4,135 |
| Favorites: | 45 |
| MD5: |
![]() |
Comment Options |
|
|
|
|
Simple yet perfect.
__________________
Traap |
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 6
Uploads: 0
|
I absolutely love this addon for raiding. A toggle from inside the game would be great. Keep up the good work on it.
|
|
|
|
|
|
|
patch update?
after patch(s), it only displays the star for a few seconds each uireload, and vanishes never to be seen again till the next /reload.
Last edited by zoktar : 11-21-10 at 10:38 AM.
|
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 1
File comments: 2
Uploads: 0
|
Here's a tweak I made to make in enable on combat.
Code:
local frame = CreateFrame("Frame", nil, UIParent);
frame:SetFrameStrata("TOOLTIP");
local texture = frame:CreateTexture();
texture:SetTexture([[Interface\Cooldown\star4]]);
texture:SetBlendMode("ADD");
texture:SetAlpha(0.5);
local x = 0;
local y = 0;
local speed = 0;
local function OnUpdate(_, elapsed)
local dX = x;
local dY = y;
x, y = GetCursorPosition();
dX = x - dX;
dY = y - dY;
local weight = 2048 ^ -elapsed;
speed = math.min(weight * speed + (1 - weight) * math.sqrt(dX * dX + dY * dY) / elapsed, 1024);
local size = speed / 6 - 16;
if (UnitAffectingCombat("player")) then
if (size > 0) then
local scale = UIParent:GetEffectiveScale();
texture:SetHeight(size);
texture:SetWidth(size);
texture:SetPoint("CENTER", UIParent, "BOTTOMLEFT", (x + 0.5 * dX) / scale, (y + 0.5 * dY) / scale);
texture:Show();
end
else
texture:Hide();
end
end
frame:SetScript("OnUpdate", OnUpdate);
Last edited by InriHSM : 01-16-10 at 12:29 PM.
|
|
|
|
|
|
|
I'm glad folks like the addon.
I had thought about enabling/disabling functionality based upon entering/leaving combat. I may make a config-file-based option to do that. Yes, if you want to adjust the size, you could change the divisor in the size assignment (currently 6). The constant subtracted (currently 16) represents the minimum cursor speed before the graphic will be shown. |
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 1
File comments: 2
Uploads: 0
|
Thanks a ton for making this, I've been looking for this type of addon for a while. If I may make a suggestion, though, I'd love to see the option to auto enable upon entering combat, or a way to manually enable and disable it.
/edit - Also, what would be the value to change to adjust the max size? Would it be the 6 in this line? Code:
local size = speed / 6 - 16;
Last edited by InriHSM : 01-16-10 at 11:06 AM.
|
|
|
|
|
|
|
A Murloc Raider
Forum posts: 4
File comments: 24
Uploads: 0
|
Switch instantly from cursor to this, small lightweight and exactly whats needed to find the cursor. Awsome!!
__________________
Im not scary, im just a little bit wierd
|
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Hi Davn just wanted to let you know i LOVE this addon thank you so much you dont know how many times i have lost my cursor when in battle now i dont have to worry bout it
thank you so much |
|
|
![]() |