The Geyser Layout Manager
Re: The Geyser Layout Manager
Mind adding some examples for this?
Re: The Geyser Layout Manager
Well, lets see.
You have a image "ui_top.png" with a size of 129x12. You wanted that tiled horizontally.
Like this: ------------------------------------
The following code creates an window with the image tiled horizontally over that:
Like this:
|
|
|
|
|
Like this : (-------------------------------)
You have a image "ui_top.png" with a size of 129x12. You wanted that tiled horizontally.
Like this: ------------------------------------
The following code creates an window with the image tiled horizontally over that:
Next, you want an image tiled vertically:
Like this:
|
|
|
|
|
Now you want to have another image(s) at the start/end of the window.
Like this : (-------------------------------)
Hope that helps.
Re: The Geyser Layout Manager
I found an easier way if you just need a single image tiled on a label:
Re: The Geyser Layout Manager
I have made some additions to Geyser:
- Removed TIledImage
- Added setTiledBackgroundImage method to Geyser.Label, which does (mostly) the same as TiledImage, only its faster
- Added classes to align windows horizontally or vertically and automatically stretching them to fit.
- Added simple Manual/Tutorial for Geyser.
- Geyser uses registerAnonymousEventHandler to automatically register itself to sysWindowResizeEvent
[edit]
Note: These need Mudlet 2.0rc3
[/edit]
I hope these will be added to mudlet, but if you want to test them first you can download them here:
https://github.com/Beliaar/mudlet-lua/downloads
Download on the files listed under "Download Packages"
Just replace the mudlet-lua directory in your mudlet directory with the directory in the download, maybe backing up your directory before.
The manual is in the geyser directory as a html file.
- Removed TIledImage
- Added setTiledBackgroundImage method to Geyser.Label, which does (mostly) the same as TiledImage, only its faster
- Added classes to align windows horizontally or vertically and automatically stretching them to fit.
- Added simple Manual/Tutorial for Geyser.
- Geyser uses registerAnonymousEventHandler to automatically register itself to sysWindowResizeEvent
[edit]
Note: These need Mudlet 2.0rc3
[/edit]
I hope these will be added to mudlet, but if you want to test them first you can download them here:
https://github.com/Beliaar/mudlet-lua/downloads
Download on the files listed under "Download Packages"
Just replace the mudlet-lua directory in your mudlet directory with the directory in the download, maybe backing up your directory before.
The manual is in the geyser directory as a html file.
Re: The Geyser Layout Manager
I don't think keeping the Geyser manual separate is a good idea, or one that users will like. Can you please see about moving it to http://wiki.mudlet.org/w/Category:Mudlet_Manual instead?
Re: The Geyser Layout Manager
I never intended it to be separate - it uses the same CSS as the mudlet manual after all, and I didn't know that there was a page for that in the wiki. I will see what I can do to add that there.
Edit:
http://wiki.mudlet.org/w/Manual:Geyser
Edit:
http://wiki.mudlet.org/w/Manual:Geyser
Re: The Geyser Layout Manager
Can Geyser.Gauge fill from right to left instead of left to right?
Re: The Geyser Layout Manager
Yes, use the "goofy" style where you would normally use "vertical" or what have you. The newer gauges that I designed do the same, and I believe they are being incorporated with the next release as the default gauges, just FYI.
Re: The Geyser Layout Manager
ah. Didn't even know orientation was an argument. Thanks!