Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-21-17, 04:28 AM   #1
Ereki
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 25
Help with ipairs

Hi I'm playing around with ipairs and DK runes trying to set the alpha of the individual runes using it but I can't figure out how to use it properly

Code:
local runeID = {1,2,3,4,5,6}
for index,value in ipairs(runeID) do
	local start, duration, runeReady = GetRuneCooldown(value)
	if runeReady == false then
		RuneFrame.Rune..value:SetAlpha(RHNoCombatAlpha)
	end
end
Is sort of what I want but it obviously doesn't work, how do I use the value in a frame name without breaking the entire thing?

(RHNoCombatAlpha is a variable set in another part of the lua file)
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Help with ipairs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off