Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-11-12, 03:06 AM   #1
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
OpenChatWindow

So using this code

Code:
--Right Chat Frame (if it exists)
    FCF_SetLocked(ChatFrame3, nil)
	FCF_SetChatWindowFontSize(self, ChatFrame3, fontsize2) 
    ChatFrame3:ClearAllPoints()
    ChatFrame3:SetPoint(unpack(def_position2))
    ChatFrame3:SetWidth(chat_width2)
    ChatFrame3:SetHeight(chat_height2)
    ChatFrame3:SetFrameLevel(8)
    ChatFrame3:SetUserPlaced(true)
	for i=1,10 do local cf = _G["ChatFrame"..i] FCF_SetWindowAlpha(cf, 0) end
    FCF_SavePositionAndDimensions(ChatFrame3)
	FCF_SetLocked(ChatFrame3, 1)
end
gives this error here

Code:
Message: Interface\AddOns\BobUI\chat.lua:79: Frame ChatFrame3 is not movable or resizable
Time: 05/11/12 05:02:27
Count: 1
Stack: [C]: in function `SetUserPlaced'
Interface\AddOns\BobUI\chat.lua:79: in function `SetChat'
Interface\AddOns\BobUI\chat.lua:91: in function <Interface\AddOns\BobUI\chat.lua:91>

Locals: (*temporary) = ChatFrame3 {
 0 = <userdata>
 checkedGMOTD = true
 flashTimer = 0
 isInitialized = 1
 tellTimer = 49803.928
 resizeButton = ChatFrame3ResizeButton {
 }
 buttonFrame = ChatFrame3ButtonFrame {
 }
 oldAlpha = 0
 channelList = <table> {
 }
 clickAnywhereButton = ChatFrame3ClickAnywhereButton {
 }
 isDocked = 1
 editBox = ChatFrame3EditBox {
 }
 name = "G,S,W"
 AddMessage = <function> defined @Interface\AddOns\BobUI\chat.lua:350
 buttonSide = "right"
 zoneChannelList = <table> {
 }
 defaultLanguage = "Common"
 messageTypeList = <table> {
 }
}
(*temporary) = true

What I would like to do is since this error only shows up if ChatWindow3 is locked or docked with the main chat window is undock/unlock it and move it to the proper place.

Unfortunately, I'm an .lua novice and I feel that I'm in over my head here atm since FCF_UnDockFrame(ChatFrame3) doesn't work.

if you want a more in depth look at what I'm working on the file I'm working on is the chat.lua file in my UI package (Interface>Addons>BobUI>chat.lua)
http://www.wowinterface.com/download...502-BobUI.html
__________________
Tweets YouTube Website

Last edited by 10leej : 05-11-12 at 03:09 AM.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » OpenChatWindow


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