Results: 3Comments by: Krysstof |
File: ggFrames09/04/14 |
movable unitframe in raid
Posted By: Krysstof
Hi
I was bothered with the impossibility to reorganise raid unit frame during trials, so here is my modification to your addon.
before the code snippets, I tried to respect your coding philosophy and not to modify core functions
I had to create a new array for ordering numbers
I had too much problem trying to get the unitFrame...
|
File: AI Research Grid04/25/14 |
Re: Re: refreshing tooltip with remaining time
Posted By: Krysstof
Cool, thanks for taking the time and effort to contribute! :)
I'd already got that bit figured actually and didn't want an event handler set-up for every texture on the grid, so I'm using a slightly different method. ;)
this add the handler only on the currently researching item, not on each item of the grid
the beauty of it i...
|
File: AI Research Grid04/25/14 |
refreshing tooltip with remaining time
Posted By: Krysstof
@line 290 (before the "Not Known" block
-- Add a tooltip with remaining second
AIRG.UI.gridButtons:SetMouseEnabled(true)
AIRG.UI.gridButtons.tooltipText = 1
AIRG.UI.gridButtons:SetHandler("OnMouseEnter", function (self)
local tDuration, tRemaining
-- first init,else it displays a "0s"...
|