[Request] Clear Screen on Load / Reload UI
Hi,
Would be great to have a VERY simple addon that simply clears the screen whenever addons are loaded (at the end?). The purpose of this addon would be to erase the startup text notices from other addons (spambayes and a lot of others) who always show on load and have NO options for the disabling of those notices :) I.e the notices that say XYZ has loaded.. or whichever. Just an idea! I always have to use /clear manually to clear those (that /clear option is from another addon though..). |
Much easier to ask the authors of those addons to make their "Hey - you logged in and this addon is doing things! Yay!" messages an option.
|
I don't know, there's like 6-7 addons that I have that generate load text.. a simple 'on load, clear text' addon would be cool and perhaps easier to implement..
|
Or just grab a text editor, find the line with the output and remove it.
|
Quote:
Not an ideal solution, much better that us addon authors realize our users aren't as interested in knowing our addon has started as we are ;) |
Quote:
|
Quote:
|
Feature additions, code optimizations, bugs you didn't know you had (or hadn't run into yet)... :rolleyes:
|
bump.. not sure if it's possible to create this.. cheers!
|
1. Download my BugEater (formerly LibDebug)
2. Goto Settings -> Debug Settings 3. Fill out Custom Addon-Output Filters with the Messages you would like to Hide as shown here: BEWARE! It has partial match so just entering "Loot" will hide every Addon-Message that has the word Loot in it! Correct Example: ^My example Addon loaded.$ The above will make sure there 's no partial matching but just disables the exact messaage (^ equals the start or the message and $ the ending of the message). However if you want to hide all Message of an Addon and if it identifies itself correctly with a Name or Tag in the Message: LibAntiSpam Will hide any Message containing the Word LibAntiSpam (Sorry wilson! Its just an example. :)) It also has Wildcard support so: Lib(.*)Spam Will hide LibEVERYCHARACTERSpam or Lib09281Spam or just LibSpam. See here: http://www.lua.org/pil/20.2.html (press ENTER for every new Filter - the Editfield is just to small so automatic Linebreaks aren't cosindered as a new Entry) 4. Tada. Done. DO NOT TURN ON "Suppress Addon-Output in Chat". THIS WILL HIDE EVERY ADDON OUTPUT! |
thelegendaryof indicates in BugEater he has a way that suppresses all addon output, so it should be possible to do that for the first second or two after load, then re-enable addon output after that.
|
Or like that. Doing that automatically isn't possible as there is no even that is loaded after every Addon. The only possibility would be to place a 2-5s timer in PLAYER_ACTIVATED and reactivate it thereafter. Hm.
|
added a disable startup text option in spambayes, but only for spambayes notice of course
If you need to do this for all the chat buffer, you need to attach the for loop below to a correct event, this is a sample of /clear command in spambayes, clears all the chat tabs, but dangerous to do on startup because you will also clear chat messages received while loading best is to do as said Seerah, message addon authors to include a hide the notice option Lua Code:
|
Made a quick edit just to test in BugEater. It worked with several addons, though not Zolan's Anchors Away. Zolan does a
Code:
local d = d First -- have a variable that indicates ignore output for first 2 seconds. (Could probably tune it down) Lua Code:
Now in BugEater, thelegendaryof overwrites the d() function, which lets him parse out, buffer, and save messages. Adding this to the new d() function allows ignoring: Lua Code:
For a standalone, you could probably do something like: Lua Code:
(Of course, this would render some of BugEater's functionality invalid, so should probably add an OptionalDependsOn in order to play nice with that addon.) |
Quote:
Method used by thelegendaryof's BugEater is better. Lua Code:
EDIT: I have to say that instead of hooking d(), it is better to use code provided by Fathis Ules. It works even if addon uses different method of displaying of chat "spam": Lua Code:
|
All times are GMT -6. The time now is 08:56 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI