Originally Posted by Nitz
I deeply agree about the leetness of this stuff and add my prayers to Nisu's !
|
After quite a bit of tinkering with the scripting interface, I came up with a script (suitable for macro duty) to allow for a nice toggling effect of the chatframe size.
/script cf_=ChatFrame1;if(floor((cf_:GetTop()+0.5))==154)then cf_n=254;else cf_n=154;end;cf_:SetPoint("TOPLEFT",UIParent,"BOTTOMLEFT",cf_:GetLeft(),cf_n);
This will make the chatframe expand upwards, toggling between 154 and 254 in height. Should anyone want to use this and have questions, feel free to PM me. :P
To use it, just paste it in a macro and use it as you would any other macro!
The main benefit of this method is that you don't need an addon, thus keeping a lean UI. Drawback would be that you either need spellbinder (or equivalent) or an action button to use it.