Blood Legion Cooldown

5 - Add display of names for available CD

-Possiblity to display names of ppl who have cds ready to use in green, and those who have spell on cd in red - next to spell icons.

User When Change
andfalcon Jul 18, 2013 at 00:55 UTC
andfalcon Mar 24, 2013 at 18:03 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of iispyderii iispyderii May 17, 2013 at 22:21 UTC - 0 likes

    I found a bug when I hovered over the CD's, sometimes the text would not count the correct amount of available CD's. Anyways it has to do something with the line: allCD[i] = nil Here's the code I used to fix it.

    	for i,v in pairs(onCD) do
    		allCD[i] = 0
    	end
    	if next(allCD) ~= nil then
    		GameTooltip:AddLine(' ')
    		for i,v in pairs(allCD) do
    			if allCD[i] ~= 0 then
    				GameTooltip:AddLine(v .. ' Ready!', 0, 1, 0)
    			end
    		end
    	end
    
    Last edited May 17, 2013 by iispyderii
  • Avatar of andfalcon andfalcon Mar 29, 2013 at 01:05 UTC - 0 likes

    Thanks to iispyderii player names with available CD are now listed in tooltip.

    If this covers what you wanted then please verify it works and comment. If not then elaborate so I can work on it for the next release.

  • Avatar of iispyderii iispyderii Mar 25, 2013 at 21:38 UTC - 0 likes

    I added this into mine a while ago when I worked with Methylene (Im InKahootz) I just never uploaded it to gethub. This goes into the functions.lua and relplaces OnEnter. It tells you who has CD's ready by mouseover.

    function BLCD:OnEnter(self, cooldown)
       local parent = self:GetParent()
    	GameTooltip:Hide()
    	GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT",3, 14)
    	GameTooltip:ClearLines()
    	local name = GetSpellInfo(cooldown['spellID'])
    	local allCD,onCD =  BLCD.cooldownRoster[cooldown['spellID']], BLCD.curr[cooldown['spellID']]
    	for i,v in pairs(onCD) do
    		allCD[i] = nil
    	end
    	--GameTooltip:AddLine('-'..name..'-')
    	if next(allCD) ~= nil then
    		for i,v in pairs(allCD) do
    				GameTooltip:AddLine(v .. ' Ready!')
    		end
    	end
    	--GameTooltip:AddSpellByID(cooldown['spellID'])
    	GameTooltip:Show()
    	
    end
    
    Last edited Mar 25, 2013 by iispyderii
  • 3 comments

Facts

Last updated
Jul 18, 2013
Reported
Mar 24, 2013
Status
Fixed - Developer made requested changes. QA should verify.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees