View Single Post
06-22-10, 07:16 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Uggg .. 3.3.5 out already rofl ..

Well managed to find out how to create and remove a new frame which will be useful for my plugins but not so for the other chat frames.

ADDON_LOADED
Code:
local chatFrame = FCF_OpenNewWindow(NameOnTabText)
PLAYER_LOGOUT
Code:
if ( chatFrame ) then
     CURRENT_CHAT_FRAME_ID = chatFrame:GetID()
     FCF_ToggleLock()
     FCF_Close(chatFrame)
end
Note also that doing it this way adds the name into the chat-cache.txt file for the character which I couldn't figure out before. This should help us to use blizz settings or override as we choose as we can simply let blizz do the settings and not do anything else or we can override it after the fact.
__________________


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