Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

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, 06: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!

Homepage : http://AGameAWeek.com
Posted : Sunday, 09 March 2008, 06: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, 19: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, 03:50
Jayenkai


Looking good! Keep it up!

Homepage : http://AGameAWeek.com
Posted : Monday, 14 April 2008, 08:41
mike_g


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

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


Cheers both

I can't compete with Linux's GNOME though

Posted : Monday, 12 May 2008, 13: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.

-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 635|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
SNES Classic
spinal Mon 11:02
AGameAWeek : 2017 - Part One
Jayenkai Mon 09:28
For Greed
steve_ancell Mon 08:05
Puff Dog
spinal Mon 02:42
Crystal Maze
rychan Sun 11:59
CSS-Me-Do - SoCoder2
Jayenkai Sun 08:08
Buy Zelda
Jayenkai Sat 08:34
Welcome Caton
steve_ancell Sat 04:53
Update All Objects in Array?
Jayenkai Sat 03:34
2D Array?
Jayenkai Sat 03:29
More

Latest Items
Blog : Rewatching ''1 Litre of Tears''
Jayenkai Mon 02:52
Snippet : Twitter BBCode
Jayenkai Sun 02:44
Link : Learn C++
Pakz Sat 20:33
Dev-Diary : My Journey into NES Development
Jayenkai Thu 03:58
Showcase : A Civilization Clone v0.5
rychan Thu 03:27
News : Newsletter #320
Jayenkai Tue 18:47
Blog : sadas
hardcoal22 Tue 02:50
Showcase : Flappadiddle
Jayenkai Mon 08:20
Article : Cookie Information
rychan Sun 12:28
Dev-Diary : Wii to N64 adapter
spinal Sat 11:50
Link : MonkeyX code examples
Jayenkai Sat 06:42
Link : Available Languages
Jayenkai Thu 13:22
Blog : Mr Testo Tests
Socoder Tue 07:21
Showcase : Hives
zzoom Fri 16:10
More

Who's Online
Jayenkai
Mon, at 11:18
Pakz
Mon, at 11:14
spinal
Mon, at 11:12
rychan
Mon, at 10:42
GfK
Mon, at 10:12
rskgames
Mon, at 09:36
steve_ancell
Mon, at 09:25
Dan
Mon, at 08:22
shroom_monk
Mon, at 05:58
rockford
Mon, at 05:38
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.