Thread Tools Display Modes
12-27-09, 07:09 PM   #1
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
Thumbs up trying to make panels

Code:
	
if IsAddOnLoaded("Recount") then
local recountmw = CreateFrame("Frame", recountbg, UIParent)

	recountmw:SetFrameLevel(0)
	recountmw:SetFrameStrata("background")
	recountmw:SetHeight(121)
	recountmw:SetWidth(321)
	recountmw:SetPoint("BOTTOMRIGHT", -10, 10)
	recountmw:SetScale(1)
	
	recountmw:SetBackdrop(backdrop)
	recountmw:SetBackdropColor(0.2,0.2,0.2,1)
	recountmw:SetBackdropBorderColor(bdc.r,bdc.g,bdc.b,bdc.a)
end
Any one got any clues why this isn't showing even tho Recount is loaded?
  Reply With Quote
12-27-09, 09:09 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
When is this code run? If it's in the main block of your code, run when your addon loads, chances are your addon code is running before Recount is loaded. Try defining Recount as a dependent in the ToC file. Up to you whether you want it to be optional or required.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » trying to make panels


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