Page 1 of 53

Mudlet features and API requests

Posted: Thu May 14, 2009 12:02 am
by Vadi
Thought I'd start a thread asking for various functions that people found a need for.

Just describing what the function and some rationale for it's usage (so it's understood what exactly needs to be done better) would do.

To start things off, I got two:

A function to get the width and height of the current session window. This is needed such that you can script to place something relative to the window border.

And an event to be notified when the window dimensions change, so that you can update the position of your windows automatically..

Re: Mudlet API requests

Posted: Thu May 14, 2009 8:18 am
by Heiko
1.) exists already
2.) agreed

Re: Mudlet API requests

Posted: Thu May 14, 2009 11:19 pm
by Vadi
One more request that I have...

A function to check if the current session window has focus, and an event to be notified on a focus change.

This is useful if you're multitasking while playing - with such a function, I can make an alert act differently whenever my current session is in focus or not (ie, play a sound when I'm away and just show a colorful echo when I'm not).

Re: Mudlet API requests

Posted: Fri May 15, 2009 3:25 am
by Ramiel
If the get window size thing exists.. its not in the documentation. Or I'm blind.

Whats the syntax?

Re: Mudlet API requests

Posted: Fri May 15, 2009 9:06 am
by Heiko
width, height = getMainWindowSize() | return window width and window height ( function with 2 return values ) to calculate the window dimensions and placement of custom gui toolkit items like labels, buttons, mini consoles etc.


I've just added all the new functions to the last section of the functions list in the manual, regardless of their subject. Needs to be ordered later.

Re: Mudlet API requests

Posted: Fri May 15, 2009 12:38 pm
by Vadi
The name is a bit misleading... by the main window I'd consider Mudlet itself, not the session window.

Re: Mudlet API requests

Posted: Fri May 15, 2009 12:40 pm
by Vadi
Need a closeMiniConsole(name) function to completely close one (ie, it never existed, so I can create again).

Re: Mudlet API requests

Posted: Fri May 15, 2009 2:38 pm
by Heiko
ok

Re: Mudlet API requests

Posted: Thu May 21, 2009 1:05 am
by Apocalyptic
A function to keep adding names to highlight to and be able to choose what color. Make a function specifically for this or an option as part of the UI so I can type in a name, click ok and choose a color for it or something. Many other far insignificant front ends have this...why can't Mudlet?

[EDIT HEIKO: included]

Re: Mudlet API requests

Posted: Thu May 21, 2009 3:07 am
by Vadi