View Single Post
06-22-10, 08:29 AM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Yeah, but fortunately the only thing that broke nUI was the ButtonFrame addition which is easy to fix.

Getting the chatframes more fitted to nUI is the thing thats messing me up.


Okay update. Don't use ADDON_UPDATE to create the new chatframe... or VARIABLES_LOADED. It just doesn't work rofl.

I'm not sure which one is best yet but these allow you to create a new window on the fly it seems.

"UPDATE_CHAT_WINDOWS"
"UPDATE_FLOATING_CHAT_WINDOWS"

Code:
	chatFrame = FCF_OpenNewWindow("XChatFrame")
	local chatFrameButtonFrame = _G[chatFrame:GetName().."ButtonFrame"]
	local chatFrameTabFrame = _G[chatFrame:GetName().."Tab"]
	CURRENT_CHAT_FRAME_ID = chatFrame:GetID()
	FCF_ToggleLock()
	chatFrame:SetParent(nil)
	chatFrameTabFrame:SetParent(nil)
	chatFrame:ClearAllPoints()
	chatFrameTabFrame:ClearAllPoints()
	chatFrame:SetParent(chatFrameContainer)
	chatFrameTabFrame:SetParent(chatFrameContainer)
	chatFrame:SetFrameLevel(chatFrameContainer:GetFrameLevel()+1)
	chatFrame:SetWidth(chatFrameContainer:GetWidth() - chatFrameButtonFrame:GetWidth())
	chatFrame:SetHeight(chatFrameContainer:GetHeight() - chatFrameTabFrame:GetHeight())
	chatFrame:SetPoint("BOTTOMLEFT",chatFrameContainer,"BOTTOMLEFT",5,5)
	chatFrame:SetPoint("TOPRIGHT",chatFrameContainer,"TOPRIGHT",-5,-5)
	chatFrameButtonFrame:SetPoint("BOTTOMRIGHT",chatFrameContainer,"BOTTOMRIGHT",-5,5)
	chatFrameTabFrame:SetPoint("BOTTOMLEFT",chatFrameContainer,"TOPLEFT",0,0)
Regardles of IM Style or Classic Style this results in the following screenshots. The first is IM Style and the second is Classic Style.

Unfortunately clicking on the Unlock option of the tab also unparents it from the frame I just parented it to so I may have to do a cheat and hide the tab and just have a text drop down menu for what I want people to have access to and go from there. But will see. Maybe just a warning to only unlock when you don't want it in the right hand side chat frame anymore. Will have to look into options on how to counteract or utilise the function.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_062210_151906.jpg
Views:	1139
Size:	285.9 KB
ID:	4460  Click image for larger version

Name:	WoWScrnShot_062210_152220.jpg
Views:	1083
Size:	283.4 KB
ID:	4461  
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818