--oqueue fix
--from 24329
local i, p ;
for i,p in pairs( frame._ilevels ) do
if (is_on == 1) then
frame:Show() ;
else
frame:Hide() ;
end
end
--from 24450
for k=1,5,1 do
if (p) then
if (p.gem) and (p.gem[k]) then
if (#p.gem <= k) then
p.gem[k].texture:SetTexture(nil) ;
p.gem[k]:Hide() ;
end
end
end
end
--from 24384
if (#p.gem <= n) then
p.gem[n]._ilink = enchant_text or "" ;
if (e_id == 0) then
p.gem[n].texture:SetTexture( OQ.ENCHANT_SLOT[1] ) ;
p.gem[n].texture:SetAlpha( 0.4 ) ;
else
p.gem[n].texture:SetTexture( OQ.ENCHANT_SLOT[1] ) ;
p.gem[n].texture:SetAlpha( 1.0 ) ;
end
p.gem[n].texture:Show() ;
p.gem[n]:Show() ;
return 1 ;
else
return 0
end
--24360
if (#p.gem <= n) then
p.gem[n]._ilink = ilink ;
if (p.gem[n]._ilink == nil) then
if (color) then
p.gem[n].texture:SetTexture( OQ.EMPTY_GEMSLOTS[ color ] ) ;
else
p.gem[n].texture:SetTexture( OQ.EMPTY_GEMSLOTS[ "unk" ] ) ;
end
else
p.gem[n].texture:SetTexture( select( 10, GetItemInfo(p.gem[n]._ilink)) ) ;
end
p.gem[n].texture:SetAlpha( 1.0 ) ;
p.gem[n].texture:Show() ;
p.gem[n]:Show() ;
end
--from 24329
local i, p ;
for i,p in pairs( frame._ilevels ) do
if (is_on == 1) then
frame:Show() ;
else
frame:Hide() ;
end
end
--from 24450
for k=1,5,1 do
if (p) then
if (p.gem) and (p.gem[k]) then
if (#p.gem <= k) then
p.gem[k].texture:SetTexture(nil) ;
p.gem[k]:Hide() ;
end
end
end
end
--from 24384
if (#p.gem <= n) then
p.gem[n]._ilink = enchant_text or "" ;
if (e_id == 0) then
p.gem[n].texture:SetTexture( OQ.ENCHANT_SLOT[1] ) ;
p.gem[n].texture:SetAlpha( 0.4 ) ;
else
p.gem[n].texture:SetTexture( OQ.ENCHANT_SLOT[1] ) ;
p.gem[n].texture:SetAlpha( 1.0 ) ;
end
p.gem[n].texture:Show() ;
p.gem[n]:Show() ;
return 1 ;
else
return 0
end
--24360
if (#p.gem <= n) then
p.gem[n]._ilink = ilink ;
if (p.gem[n]._ilink == nil) then
if (color) then
p.gem[n].texture:SetTexture( OQ.EMPTY_GEMSLOTS[ color ] ) ;
else
p.gem[n].texture:SetTexture( OQ.EMPTY_GEMSLOTS[ "unk" ] ) ;
end
else
p.gem[n].texture:SetTexture( select( 10, GetItemInfo(p.gem[n]._ilink)) ) ;
end
p.gem[n].texture:SetAlpha( 1.0 ) ;
p.gem[n].texture:Show() ;
p.gem[n]:Show() ;
end