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..
Mudlet features and API requests
Re: Mudlet API requests
1.) exists already
2.) agreed
2.) agreed
Re: Mudlet API requests
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).
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
If the get window size thing exists.. its not in the documentation. Or I'm blind.
Whats the syntax?
Whats the syntax?
Re: Mudlet API requests
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.
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
The name is a bit misleading... by the main window I'd consider Mudlet itself, not the session window.
Re: Mudlet API requests
Need a closeMiniConsole(name) function to completely close one (ie, it never existed, so I can create again).
-
- Posts: 7
- Joined: Sun Apr 26, 2009 1:42 pm
Re: Mudlet API requests
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]
[EDIT HEIKO: included]