Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Showcase > Functions Libraries ( Created 09 March 2008 | Last Edited 09 March 2008)

Limpet GUI Demo - Created by HoboBen (No Votes)

A GUI for Cobra
Created using Cobra > WindowsView Worklog (0 entries)
Limpet GUI Demo v0.1.0.1 (20080309) 1.4MB
My server has the hiccups today, so you can also download this from SoCoder limpet_0-1-0-1_20080309 (hope Jay has room - it's only a bit over one MB)

Just a quick demo - supports multiple windows, text (with wrapping), balloon help, and buttons. Haven't yet done drop downs, text areas or anything.

Works with the keyboard too - Left Ctrl + Left Shift to swap through windows, tab to swap through window controls, enter to activate a control... Or just click it.

Still responsive with over 200 windows and 500 buttons, with anti-aliasing on text, window rotations, and full transparency. (Though that takes it right up to 150MB of RAM!)

To check out the window management, hit D a few times (generates four windows) and then hit T to tile, H to hide, L to list, F2 to fade and F3 to fade all but current.

The balloon help messages are a bit intrusive, but I'll sort them out eventually.

Instead of retileing theme images every time that a window is redrawn, images are tiled to a cache image, which is used instead - this really pays off when you use several windows of the same size, but even when you use odd shaped windows it still works quite well.

Everything is fully themeable, if you feel brave enough.

If you're interested in how well things perform on your computer, edit Limpet\init.myprogram.bsd and change the LIMPET_SET values for log_verbose and log_verbose to TRUE. Next time you run the program, there should be a nice detailed log file in Limpet\Logs

It's designed so that several separate programs using the Limpet GUI can share the same directory, and share the same common Limpet files (like the themes)

So, opinions?
Highslide JS

Latest Comments

Posted : Sunday, 09 March 2008, 05:23
Jayenkai


Nice. Seems to work really well.
When I hit the F4 key, the spin did work, except for it's lack of contents, and the framerate plummeting! But, that could just be my naff onboard gfx doing that.

Also, You should probably store the values of where exactly MouseX and Y are holding the window, and compare the new values to those... Whereas (I'm assuming, here!) you're currently just checking speed, and moving the window by that..
If you grab a window, move up outside the window, then move back down, the window comes down with it.
That's just me being picky, though!

Posted : Sunday, 09 March 2008, 05:31
HoboBen


To give your graphics card some credit, that rotation is not hardware accelerated at all - so it's really not too fast. Cobra2D (the hardware accelerated version, as opposed to Pure2d, the software version) handles rotations perfectly, but I had an issue with the sprite z-indexing there, so I need to fix that first... As for the lack of contents when the windows rotate, I couldn't be bothered to work out rotation maths for the controls in the window, so I just hid them!

I see what you mean about the window offset when you move out of the screen... I didn't think it mattered, but as you noticed it, I guess I should tweak it

Cheers

Posted : Sunday, 13 April 2008, 18:40
HoboBen


New news: I've been tinkering a bit, and I still haven't added textboxes that you can type in yet (it's partially done), but I've worked on the scripting side of things, and it's got a really neat calculator that is entirely loaded from a text file and is only 200 lines, including layout!

Highslide JS

The syntax of the scripts might look slightly cryptic:
-->
(I really need to do functions at some point!)

But I've got like three versions of every command - the shorthand like "iNew", the longhand "NewInt" and the even-longer-hand "DeclareInteger", which look a bit more pleasant.

And cause it's a scripting engine, you don't have to write any code for the arithmetic: just chuck the string back into the engine, and let that do the work:

-->

I also fixed a nasty bug with the word wrapper, which I'm surprised worked at all considering how blatantly stupid the error was.

I'm nearly done with this now

Posted : Monday, 14 April 2008, 02:50
Jayenkai


Looking good! Keep it up!

Posted : Monday, 14 April 2008, 07:41
mike_g


Yeah, looks very nice. Maybe you could turn it into your own window manager for Linux.

Posted : Tuesday, 15 April 2008, 07:22
HoboBen


Cheers both

I can't compete with Linux's GNOME though

Posted : Monday, 12 May 2008, 12:48
HoboBen


Bah, humbug.

There's some bugs I can't squish, so I'm taking a few months break from this...

I think I might just cheat, and do away with windows, and just write a nice buttons/checkboxes/drop-down-box library instead. Tedious, but it would be cake, really... and it would fill about 99% of my needs from a GUI anyway.

If anyone wants to take over the project, here's some sauce.

I need to get some games written, instead.

Latest Posts
RoadRash!
Jayenkai Sun 04:06
Noel's Graduation
Jayenkai Sun 04:01
Audio Rant
steve_ancell Sat 19:16
Wrong Partition!!!!?
spinal Sat 11:24
Progress / Location Bars
Afr0 Sat 03:15
eBay Lies
spinal Fri 23:44
Shoutbox Topic - 968
dna Fri 19:42
Development via GUI
JL235 Fri 07:59
Meh
Afr0 Fri 04:13
Randomly distributed coordinates...
Afr0 Fri 00:20
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
Jayenkai
Sun, at 04:07
steve_ancell
Sun, at 04:01
Afr0
Sun, at 04:00
Cower
Sun, at 03:52
shroom_monk
Sun, at 03:14
Hotshot
Sun, at 02:44
therevillsgames
Sun, at 02:07
HoboBen
Sun, at 02:03
Dabz
Sun, at 01:31
Mog
Sun, at 00:59
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.