Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Winter
(1 post) bio
|
| Date |
Mon 24 Nov 2003 07:55 PM (UTC) [ quote
] |
| Message |
Hey Folks;
I'm currently building a complex plugin for my MUD, maily for the purpose of a statusline. I could simply use 'SetStatus', but there are problems at some users with the width of that line. So I decided to use the InfoBar. The Problem is, that it does not change between different worlds. Now i tried to solve this problem using OnWorld(Get|Lose)Focus. Goes well. But I don't see a possibility to built this within a plugin, cause the Events of a world can't be save in.
What do you suggest? | top |
|
| Posted by |
Nick Gammon
Australia (18,769 posts) bio
Forum Administrator |
| Date |
Reply #1 on Tue 10 Feb 2004 10:29 PM (UTC) [ quote
] |
| Message |
| Version 3.44 of MUSHclient now supports plugin callbacks: OnPluginGetFocus and OnPluginLoseFocus. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Norbert
USA (61 posts) bio
|
| Date |
Reply #2 on Mon 23 Feb 2004 04:29 AM (UTC) [ quote
] |
| Message |
| Could someone show me an example of how to use OnPluginGetFocus and OnPluginLoseFocus? I haven't been able to get it to work and there is no example in the help files. |
Norbert
-Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens
It's a dumb question... skip it.
| top |
|
| Posted by |
Nick Gammon
Australia (18,769 posts) bio
Forum Administrator |
| Date |
Reply #3 on Mon 23 Feb 2004 08:52 PM (UTC) [ quote
] |
| Message |
Well, you would put something like this in your plugin script:
sub OnPluginGetFocus
' do something here
end sub
sub OnPluginLoseFocus
' do something here
end sub
|
- 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.
2,305 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )