Thread Tools Display Modes
09-30-09, 09:11 AM   #1
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Moving the chatlog trough LUA

Hey all, is there any way moving the chatlog trough LUA? I want to distribute my UI without having to have a difficult install process. So I don't want a WTF folder with all the renaming and such. Now this is possible with ALL things, configs except for the location of the chatlog. I don't want the end user to drag it around(I want to hide the tab), so I have a problem. So, my question is:

Can I move the chat log trough LUA?
Thanks!
  Reply With Quote
09-30-09, 09:18 AM   #2
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
Yes, you can - here is a small part I'm using in my interface:

Code:
-- Placing the frame
ChatFrame1:ClearAllPoints()
ChatFrame1:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 30, 30)
ChatFrame1:SetUserPlaced(nil)

-- You may need to block it from being moved by other addons / BlizzUI
local dummy = function() end
ChatFrame1.ClearAllPoints = dummy
ChatFrame1.SetPoint = dummy
You can do it for the other chat frames as well, just change the index in the name.
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
09-30-09, 10:50 AM   #3
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Awesome! Now I can finally finish my UI and distribute it! Here is a SS of it, tell me if you like it :P


Last edited by nightcracker : 09-30-09 at 11:21 AM.
  Reply With Quote
09-30-09, 11:21 AM   #4
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Originally Posted by Yhor View Post
I know you have good intentions, but -this- rule is a stickler... Your post could get this site into trouble with Blizzard.

I'm not quoting you, intentionally.
I'm so sorry man, you won't hear any word about "the case" anymore, I'll edit out what I said too, I don't wanna get such a bad start on these forums. I'm really sorry.
  Reply With Quote
09-30-09, 11:28 AM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Is that AmbientAura? What did you change to get it working again? I honestly haven't turned it back on since a recent patch broke it to figure out a workaround.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-30-09, 11:38 AM   #6
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Originally Posted by Seerah View Post
Is that AmbientAura? What did you change to get it working again? I honestly haven't turned it back on since a recent patch broke it to figure out a workaround.
Yeah it is AmbientAura, and no I didn't get it to work again, that screenshot is from patch 3.1.3. I did change the code though so it triggers on combat = blue and out of combat = red, I don't care if I'm resting
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Moving the chatlog trough LUA


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