How to show and hide a button when chat events happen?
So I'm using TMW (an addon) which has a window for LUA or API code. I have managed to create a button which lights up when I'm in specific zones by using the API function GetZoneText() == "Orgrimmar".
To my dismay there are no API function that can check the chatwindow for specific words like it can check for zone names. How can I make a script that makes a button light up if X is written in chat, and then hide the same icon if Y or Z is written? I've searched abit and currently have the following code which I'm trying to modify but dont know how: Code:
local frame = CreateFrame("Frame") |
All times are GMT -6. The time now is 06:03 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI