Go to Page... |
|
Thread Tools | Display Modes |
03-12-12, 10:16 AM | #1 |
!beautycase and item / tooltip borders
at the moment i create my own ui.
now i playing with !beautycase. i need to "border" all tooltips and item borders that they fit with my ui. but i cant find a code for the borders of the tooltips and with item border im only get the bagnon "bag and bank,no guildbank" to work. the bagnon problem is as u can see the borders of the icons at my bags are bordered, but the "rarety" borders dont fit with mine and the guildbank icons dosnt work. my code: Code:
-- Bagnon Border -- if IsAddOnLoaded('Bagnon') then if BagnonFrame then local id = 0 hooksecurefunc(Bagnon, 'Create', function() local framename = "BagnonFrameinventory" id = id + 1 local f = getglobal(framename) if not f then return end CreateBorderLight(f, 14) ColorBorder(f, .10, .10, .10) end) else local id = 1 hooksecurefunc(Bagnon.Frame, 'New', function(self, name) local f = getglobal('BagnonFrameinventory') if not f then return end CreateBorderLight(f, 14) ColorBorder(f, .10, .10, .10) id = id + 1 end) end end if IsAddOnLoaded('Bagnon') then if BagnonFrame then local id = 0 hooksecurefunc(Bagnon, 'Create', function() local framename = "BagnonFramebank" id = id + 1 local f = getglobal(framename) if not f then return end CreateBorderLight(f, 14) ColorBorder(f, .10, .10, .10) end) else local id = 1 hooksecurefunc(Bagnon.Frame, 'New', function(self, name) local f = getglobal('BagnonFramebank') if not f then return end CreateBorderLight(f, 14) ColorBorder(f, .10, .10, .10) id = id + 1 end) end end if IsAddOnLoaded('Bagnon') then if BagnonFrame then local id = 0 hooksecurefunc(Bagnon, 'Create', function() local framename = "BagnonFrameguildbank" id = id + 1 local f = getglobal(framename) if not f then return end CreateBorderLight(f, 14) ColorBorder(f, .10, .10, .10) end) else local id = 1 hooksecurefunc(Bagnon.Frame, 'New', function(self, name) local f = getglobal('BagnonFrameguildbank') if not f then return end CreateBorderLight(f, 14) ColorBorder(f, .10, .10, .10) id = id + 1 end) end end -- Item Borders -- for i = 1, 12 do for k = 1, MAX_CONTAINER_ITEMS do CreateBorderLight(_G["ContainerFrame"..i.."Item"..k], 12, .10, .10, .10) _G["ContainerFrame"..i.."Item"..k]:SetNormalTexture("") _G["ContainerFrame"..i.."Item"..k]:SetFrameStrata("HIGH") _G["ContainerFrame"..i.."Item"..k]:SetFrameLevel(4) _G["ContainerFrame"..i.."Item"..k.."IconQuestTexture"]:SetAlpha(0) _G["ContainerFrame"..i.."Item"..k.."IconTexture"]:SetTexCoord(.08, .92, .08, .92) end end -- Bagnon Border end -- the guildbank icons have a name like: BagnonGuildItemSlot1-xxx and the tabs like: BagnonGuildTab1-xxx i tryed to edit the code like Code:
for k = 1, MAX_CONTAINER_ITEMS do CreateBorderLight(_G["BagnonGuildItemSlot"..k], 12, .10, .10, .10) _G["BagnonGuildItemSlot"..k]:SetNormalTexture("") _G["BagnonGuildItemSlot"..k]:SetFrameStrata("HIGH") _G["BagnonGuildItemSlot"..k]:SetFrameLevel(4) _G["BagnonGuildItemSlot"..k.."IconQuestTexture"]:SetAlpha(0) _G["BagnonGuildItemSlot"..k.."IconTexture"]:SetTexCoord(.08, .92, .08, .92) end Code:
Message: Interface\AddOns\!Beautycase\!Beautycase.lua:12: attempt to index local 'self' (a nil value) Time: 03/12/12 17:14:30 Count: 1 Stack: Interface\AddOns\!Beautycase\!Beautycase.lua:12: in function `CreateBorderLight' Interface\AddOns\zLatiwaUI\zLatiwaUI.lua:90: in main chunk Locals: self = nil borderSize = 12 R = 0.1 G = 0.1 B = 0.1 uL1 = nil uL2 = nil uR1 = nil uR2 = nil bL1 = nil bL2 = nil bR1 = nil bR2 = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = nil (*temporary) = "attempt to index local 'self' (a nil value)" textureNormalLight = "Interface\AddOns\!Beautycase\media\textureNormalLight.tga" textureShadow = "Interface\AddOns\!Beautycase\media\textureShadow.tga" but how i can border the item slots in the charakter frame? and how to add borders to all the tooltips in game? |
|
WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » !beautycase and item / tooltip borders |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Switch to Hybrid Mode |
Threaded Mode |
|
|