Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Info bar with MXP
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Okram
Italy (8 posts) Bio
|
Date
| Thu 04 Sep 2003 10:22 AM (UTC) |
Message
| Hallo, I've made a script which puts on my infobar the four spells I like to have "always on", like strength, shield, armor, and fly.
Every time the mud sends me the message about my strength spell wearing off, I set the variable StrengthOnOff to false, and send the text "cast 'strength'" to the MUD.
Additionally, I made a script that shows text on the infobar like "strength" if the spell is NOT active, and "STRENGTH" if it is active. The same, of course, for other spells.
Now, I'd like to "simply click" on the "strength" text in the InfoBar to send the "cast 'strength'" text to the mud.
I tried with putting MXP on the infobar like <send href="cast 'strength'">strength</send> but it don't work.
How should I do?
Thanks in advance,
-marco- | Top |
|
Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
Date
| Reply #1 on Thu 04 Sep 2003 08:20 PM (UTC) |
Message
| The infobar only supports text. It doesn't have support for links, buttons, icons or anything else you might expect. There is a good reason for this, since you cannot create distinct 'fields' on the bar that can be cleared individually or otherwise changed directly. Whether or not Nick ever impliments a better design is questionable, especially since he would practically have to recode the ToolBar implimentation to fix some of its worse behaviours, before he ever extended it to do anything more than what it does.
Of course this is just my opinion. However it does seem like this particular 'feature' of windows requires almost as much work to use properly as it would take to build one completely from scratch using the most basic Frame object and adding things on one by one. lol Put in the simplest terms. These infobars/toolbars appear to only be able to do one thing at a time, and then barely functionally at that. Trying to have it do colored text, but also links, but also icons, but also buttons, then also.... and you rapidly end up with something that won't work at all.
As an example, just trying to make one behave like the Windows Taskbar and auto-hide itself, then become visible again took me 6 hours of fiddling, and then I never did get the mouse to hover over the correct part of the bar or the bar to correctly shrink itself again without clicking on something on it to force the effect. It just can't be done starting at the ToolBar level. And compared to mixing content, this is practically a no-brainer.
I'll leave it to Nick to tell you if I am wrong about this or not though. He may actually have some sort of solution I can't think of. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Thu 04 Sep 2003 08:42 PM (UTC) |
Message
| See this post:
http://www.gammon.com.au/forum/?bbsubject_id=3128
This shows how you can do a fancier "info bar" using a separate VB program. Rather than bloating the core application I would prefer for more extensive information to be displayed using something like this. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,636 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top