View Single Post
05-07-12, 11:58 AM   #2
venoabyss
A Deviate Faerie Dragon
Join Date: Apr 2011
Posts: 13
Changed the button to LUA and it works great!

Code:
	local rosterButton = CreateFrame("Button", nil, frame, "UIPanelButtonTemplate")
		rosterButton:SetPoint("BOTTOMLEFT", 10, 10)
		rosterButton:SetHeight(25)
		rosterButton:SetWidth(60)
		rosterButton:SetNormalFontObject("GameFontNormal")
		rosterButton:SetNormalTexture("Interface\DialogFrame\UI-DialogBox-Background-Dark")
		rosterButton:SetText("Roster")
		rosterButton:SetScript("OnClick", GRShowRoster)
		rosterButton:Enable()
	frame.rosterButton = rosterButton;
Thanks to an example regarding a close button last month. (as the xml hates me I think Lua programming the buttons will be better lol)

But if anyone sees a way to make this work better by all means let me know!

V
  Reply With Quote