[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  World Events in Plugins

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

World Events in Plugins

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Winter   (1 post)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] 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
[Go to top] top

Posted by Norbert   USA  (61 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] 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
[Go to top] 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]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]