Page 1 of 4

The Geyser Layout Manager

Posted: Mon Mar 15, 2010 9:32 am
by guy
[Edit 20 Mar 10] Updated Geyser.xml package file with new color and Label:echo support. See the bugs/requests thread for details.

Here is the Geyser Layout Manager.
GeyserOverview.pdf
(113.43 KiB) Downloaded 3641 times
In essence, Geyser is an object oriented framework to handle Mudlet windows. That means, once you create a window and tell it were to go, Geyser will handle moving/resizing it as necessary during window resize events. But that's not all it does.

To get a good feel for it, run the Geyser.demo1() function, click on the buttons it creates and resize your Mudlet window.

It's not 100% fully functional, but has more than enough to get started using. I've tried to keep the design straightforward enough that it should be easy for others to extend. Of course suggestions are welcome! I just started learning Lua after downloading Mudlet a few weeks ago, and so there are likely areas for improvement in terms of efficiency and good lua style.

Enjoy,
guy

Re: The Geyser Layout Manager

Posted: Mon Mar 15, 2010 5:46 pm
by Vadi
I created a subforum for this, as it is a rather big and very useful project.

I'm impressed, this is a great start and the professionalism is impressive.

Re: The Geyser Layout Manager

Posted: Mon Mar 15, 2010 6:37 pm
by Vadi
Converted my label w/ image (I guess the there needs to be an extended label in Geyser that overcomes the limitation of labels only having an image or text) to Geyser, and it's quite nice:

http://www.ubuntu-pics.de/bild/47157/sc ... 3czd41.png

versus

http://www.ubuntu-pics.de/bild/47158/sc ... fzcn2p.png

Re: The Geyser Layout Manager

Posted: Mon Mar 15, 2010 7:38 pm
by naftali
Methinks the PDF is broken, both Adobe and Preview said they couldn't open it. Downloaded it a couple times, so I'm pretty sure it's your PDF not my computer. Anybody else having this problem?

Re: The Geyser Layout Manager

Posted: Mon Mar 15, 2010 7:51 pm
by Vadi
Nope, opened fine here on Ubuntu and Google Docs.

Re: The Geyser Layout Manager

Posted: Mon Mar 15, 2010 10:01 pm
by guy
Vadi wrote:I created a subforum for this, as it is a rather big and very useful project.

I'm impressed, this is a great start and the professionalism is impressive.
Thanks, I'm glad you like it. I've read your other posts, but I'm really busy this week and won't have time to work on it much.

Re: The Geyser Layout Manager

Posted: Tue Mar 16, 2010 7:45 pm
by naftali
Huh, you're right - firefox broke it, google chrome got it fine. My apologies.

Re: The Geyser Layout Manager

Posted: Wed Mar 17, 2010 1:44 pm
by sephiel
Sorry if this is a dumb question, but is there a way to set the text colour for gauges at the moment? Just curious.

Re: The Geyser Layout Manager

Posted: Wed Mar 17, 2010 2:04 pm
by Vadi
Yeah, doc says Gauges have a set_color() function.

Note that this means to Geysers gauges, not the gauges that are in Mudlet. So you need to import the xml script attached above

Re: The Geyser Layout Manager

Posted: Wed Mar 17, 2010 2:10 pm
by sephiel
No, I get that, I've been playing around with Geyser for about an hour and it looks awesome. The set_color() function only sets the gauge colour itself though, and the text parameter seems to set the actual text to display on the gauge. I was hoping for a way to change the colour of the gauge's text, though.