Mudlet features and API requests

Post Reply
User avatar
Vadi
Posts: 4727
Joined: Sat Mar 14, 2009 3:13 pm

Mudlet features and API requests

Post by Vadi » Thu May 14, 2009 12:02 am

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..

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet API requests

Post by Heiko » Thu May 14, 2009 8:18 am

1.) exists already
2.) agreed

User avatar
Vadi
Posts: 4727
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi » Thu May 14, 2009 11:19 pm

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).

Ramiel
Posts: 15
Joined: Sat Apr 25, 2009 5:57 am

Re: Mudlet API requests

Post by Ramiel » Fri May 15, 2009 3:25 am

If the get window size thing exists.. its not in the documentation. Or I'm blind.

Whats the syntax?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet API requests

Post by Heiko » Fri May 15, 2009 9:06 am

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.

User avatar
Vadi
Posts: 4727
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi » Fri May 15, 2009 12:38 pm

The name is a bit misleading... by the main window I'd consider Mudlet itself, not the session window.

User avatar
Vadi
Posts: 4727
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi » Fri May 15, 2009 12:40 pm

Need a closeMiniConsole(name) function to completely close one (ie, it never existed, so I can create again).

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet API requests

Post by Heiko » Fri May 15, 2009 2:38 pm

ok

Apocalyptic
Posts: 7
Joined: Sun Apr 26, 2009 1:42 pm

Re: Mudlet API requests

Post by Apocalyptic » Thu May 21, 2009 1:05 am

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]

User avatar
Vadi
Posts: 4727
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet API requests

Post by Vadi » Thu May 21, 2009 3:07 am


Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests