How does multiple plugins add to the status bar and/or with SetStatus

Posted by Dakine on Fri 24 Apr 2015 06:14 PM — 5 posts, 21,055 views.

#0
I've been unable to see how to append info to the status bar.

When I use SetStatus it overrides the information there or is overridden by another plugin such as the tick timer.

As far as I can tell more than one plugin adds to it as there is different info on the line. I tried searching through the existing plugins without success. I'm unsure how to append my info to existing information displayed in the status bar.

Searched settings and threads and I checked the following but couldn't see what I was looking for http://www.gammon.com.au/scripts/function.php


This is example syntax I use

SetStatus("Heals: " .. potVars.healnum .. " Manas: " .. potVars.mananum)


Dak
USA Global Moderator #1
I suppose you could get the current status first and include that in what you set.
But without doing a bunch of text wrangling to guarantee that you preserve old data without risking duplication*, you should probably just not expect content stability from the status bar.


* - e.g. if your status is
Quote:
STATUS!

and you want to add to that
Quote:
potato!

and you think that you can just do what I say in my first line, well...the first time you'll get
Quote:
STATUS! potato!

but then the next time you'll get
Quote:
STATUS! potato! potato!

and so on.
Amended on Fri 24 Apr 2015 08:36 PM by Fiendish
#2
Hi Fiendish,

Yes, that wouldn't be very desirable and a lot of work where other neater methods exist, some of which I've already implemented.

Thanks

Dak
Australia Forum Administrator #3
There is an "info bar" which you could use. Also you might just make a small miniwindow to show statuses.
#4
Those are good possibilities. Working on mini windows is my next step.

I'll give the info bar a go.