Bag Lua Problem
ive written an addon to try and open/close my bags when i go to the AH or mail or vendor, so far it works 50%, the bags open perfectly, but they dont close when i leave the vendor/AH, can anyone see where ive gone wrong?
Code:
-------------- |
Code:
local closesackframe = CreateFrame("FRAME2", "closemysack"); |
ah thanks a bunch :) knew i'd done something silly
|
hopefully my next mistake is just as obvious :)
im trying to hide the backgrounds of the default backpacks, running the commands individually ingame as /script works fine, i thought i might be missing an event, but after 2 hrs browsing API documentation i cant see any events im missing. [EDIT]hmm it seems the BAG_OPEN isnt fireing it works on BAG_UPDATE. Code:
------------ |
ah i was making it harder than needed, didnt realise BAG_OPEN was deprecated, all i needed was
Code:
local function hideBG() |
last problem i promise, im trying to anchor frames to open bags as i create them.
if i set it explicitly to ContainerFrame1 then it works, but then all the frames are anchored to the same bag i want to anchor each frame to its respective bag, anyone see where ive gone wrong? Code:
for i = 1, NUM_CONTAINER_FRAMES do |
Change this:
Code:
-- Change this |
You may want to reconsider how you are hiding the container components too. No need to keep hiding them over and over when you could just do it once. Also, there is more than one BackgroundMiddle texture to hide.
Code:
------------ |
that works great thx torhal, didnt realise you couldnt use a string.
@vrul, yeah that does work much better, i just dont understand how it works :o i tried hiding things once at first by just having Code:
for i = 1, NUM_CONTAINER_FRAMES do /learning |
Quote:
|
All times are GMT -6. The time now is 01:46 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI