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 WoWScrnShot_031212_170258.jpg 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? |
|
03-12-12, 05:59 PM | #2 |
I don't have the answer to your specific question at the moment, but I noticed several lines like this in your code:
Code:
local f = getglobal(framename) Code:
local f = _G[framename] |
|
03-13-12, 04:56 AM | #3 |
thank you for your answer,
i have changed all local f = getglobal to local f = _G but now i got an error. Code:
Message: Interface\AddOns\zLatiwaUI\zLatiwaUI.lua:22: attempt to call global '_G' (a table value) Time: 03/13/12 11:52:47 Count: 1 Stack: Interface\AddOns\zLatiwaUI\zLatiwaUI.lua:22: in function <Interface\AddOns\zLatiwaUI\zLatiwaUI.lua:21> [C]: ? [C]: ? [C]: in function `New' Interface\AddOns\Bagnon\main.lua:78: in function `CreateFrame' Interface\AddOns\Bagnon\main.lua:110: in function `ToggleFrame' Interface\AddOns\Bagnon\main.lua:185: in function `ToggleAllBags' [string "OPENALLBAGS"]:1: in function <[string "OPENALLBAGS"]:1> Locals: self = <unnamed> { 0 = <userdata> HasPlayerSelector = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:743 FRAME_MOVE_START = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:84 FRAME_LAYER_UPDATE = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:127 Bind = <function> defined @Interface\AddOns\Bagnon\utility\classy.lua:18 CloseBankFrame = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:183 PlaceItemFrame = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:711 OPTIONS_TOGGLE_ENABLE_UPDATE = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:134 PlaceBagFrame = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:611 OnShow = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:161 FRAME_SCALE_UPDATE = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:103 GetCloseButton = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:525 FadeInFrame = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:257 SavePosition = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:277 GetFramePosition = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:315 UpdatePosition = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:310 GetFrameID = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:865 GetBrokerDisplay = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:784 CreateBrokerDisplay = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:788 PlaceSearchFrame = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:551 GetRelativePosition = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:285 FRAME_OPACITY_UPDATE = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:109 UpdateScale = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:222 RegisterMessage = <function> defined @Interface\AddOns\Bagnon\utility\classy.lua:22 UnregisterMessage = <function> defined @Interface\AddOns\Bagnon\utility\classy.lua:30 UpdateBackdrop = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:325 Rescale = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:240 GetSettings = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:869 GetFrameScale = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:235 PlaceCloseButton = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:529 UpdateEvents = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:46 Layout = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:403 GetSearchFrame = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:547 GetFrameBackdropBorderColor = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:338 GetBagToggle = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:650 HasBagToggle = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:655 BAG_FRAME_UPDATE_SHOWN = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:134 SetFrameLayer = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:372 GetFrameBackdropColor = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:329 UpdateLook = <function> defined @Interface\AddOns\Bagnon\components\frame.lua:201 CreateMoneyFram |
|
03-13-12, 12:51 PM | #4 |
You need to replace the parentheses with square brackets, as Phanx showed you.
|
|
WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » !beautycase and item / tooltip borders |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|