Originally Posted by Slakah
tekChatBorderFix
Also why are you hooking OnUpdate, why not just set OnShow to hide the frame.
|
Well,
my mod has the added bonus of making the screen less cluttered when in combat. Besides, even with Tekkub's fix, you might hover over a link in chat, or click on one, potentially popping up a big tooltip.
As to why I hooked OnUpdate, it's because otherwise I would have to set/reset 21 API scripts every time combat started/ended, meaning copying them to yet another table. Besides, it's more efficient to add a couple of instructions to a global handler (ie. the only added memory writes are to the cpu registers) than to be rewriting (in RAM) a frame event handler many times during play.