
-----------------------------------
SNIPERDUDE
Sun Jul 13, 2008 9:15 pm

Custom GUI
-----------------------------------
This has been long in the waiting for most - but I like working on a couple large projects at the same time, which often stretches the release date into the future.

Anywho, This is my custom GUI v1.4a
I still have to reorganize the rest - but I have the button procedure done!

I used no outside images whatsoever, and was still able to replicate the XP GUI for turing!
(complete with rollover effects and button down effects)

Read the README on the top of the code to understand how it works.

ENJOY!!!!!!!!

-----------------------------------
SNIPERDUDE
Mon Jul 14, 2008 6:16 pm

RE:Custom GUI
-----------------------------------
Where it says how to import, the line

> new LGUI1v4a g

should be 

> new LGUI1v4a, g

-----------------------------------
SNIPERDUDE
Tue Jul 15, 2008 5:21 pm

RE:Custom GUI
-----------------------------------
downloaded 10 times and no reply?
:(

-----------------------------------
Euphoracle
Tue Jul 15, 2008 8:08 pm

RE:Custom GUI
-----------------------------------
Maybe it's because you didn't include an actual demo so people just can't be assed to write their own demo for it.

-----------------------------------
SNIPERDUDE
Wed Jul 16, 2008 8:44 am

RE:Custom GUI
-----------------------------------
kk, here:


import LGUI1v4a
var g : ^LGUI1v4a
new LGUI1v4a, g

setscreen ("graphics:450;450, nobuttonbar, offscreenonly, nocursor, title:GUI SMASH LAB 1.0")

var EXIT : boolean := false


proc END
    EXIT := true
end END

LGUI1v4a (g).ButtonProperties (1, "Style:XPb")

loop
    drawfillbox (0, 0, maxx, maxy, 0)

    LGUI1v4a (g).Buttons (1, "CC", maxx div 2, maxy div 2, 150, 23, END)

    View.Update
    exit when EXIT or hasch
end loop


Make sure you keep them in the same folder...


EDIT:  Something wrong with it?  :?  Any comments at all would at least let me know what you guys are thinking - good or bad.

-----------------------------------
Zren
Thu Jul 17, 2008 2:21 pm

Re: Custom GUI
-----------------------------------
http://img91.imageshack.us/img91/6338/guijh2.png

It's best to add a screenshot of things like this, since people mainly want to know what stuff like this looks like before bothering with trying it out. I was personally questioning why you'd need 1000+ lines of code for a simple button. Then again, I ignored the readme and clicked run right away.

What you could do next is make a GUI that is dependant on images. Like manipulating an image into 9  sectors for the corners, the edges and the center, then stretching or tiling the cut up image to create a button.

-----------------------------------
StealthArcher
Thu Jul 17, 2008 3:19 pm

RE:Custom GUI
-----------------------------------
That way has proven it's granmd glitchiness with his attempt to make a VB-esque window for turing.

-----------------------------------
SNIPERDUDE
Thu Jul 17, 2008 4:09 pm

RE:Custom GUI
-----------------------------------
That way gave me glitches before, which I tried ironing out.  I wasn't able to, so I switched to this method.  This also takes less space on your comp, which is a convenience; the only negative that I know of is more lines - but the lines weren't meant to be tampered with anywho.

This way proves to show no real errors, without being slow either.  It wasn't slow for you guys, was it?

-----------------------------------
metachief
Thu Jul 17, 2008 6:26 pm

RE:Custom GUI
-----------------------------------
I say very good job man. Still can't believe you used turing graphics to create the buttons...how long did it take you! I would have probably given up half way... Although, I still wonder why you tried to recreate the xp graphics on turing. Next time pick a theme that you like and make something original. Looks like you put much effort into it.

-----------------------------------
SNIPERDUDE
Thu Jul 17, 2008 6:36 pm

RE:Custom GUI
-----------------------------------
The EOD one was original.
(Zren's Screenshot - Second Last)

Anyways Thanks!  :)

I created the XP one as well because I thought some people would rather use something like that over the built-in GUI.

And it took me a long time, lol.

+bits? :P

-----------------------------------
andrew.
Fri Jul 18, 2008 9:06 am

RE:Custom GUI
-----------------------------------
I like it. It's very nice and fast. Also, I was too lazy to look through your code, but did you draw all the buttons from within Turing? If you did, wow.

-----------------------------------
SNIPERDUDE
Fri Jul 18, 2008 4:04 pm

RE:Custom GUI
-----------------------------------
Yes.  I did.  :P

-----------------------------------
darkangel
Tue Sep 09, 2008 11:55 am

Re: Custom GUI
-----------------------------------
Wow, this really is the best GUI i have seen in a LONG time. Keep up the good work, your code is exterimly neat, and i can only hope to be that organized in my life.

+BITS

-----------------------------------
SNIPERDUDE
Tue Sep 09, 2008 12:13 pm

RE:Custom GUI
-----------------------------------
Many thanks mate, I worked a good long time on that one.

It was quite messy when I first made it, so when I started the process of eliminating outside images (I was getting errors when I used images, besides its better I think to be able to eliminate all that extra space) I completely reorganized the code.

And thanks again for the bits :)

-----------------------------------
Warchamp7
Tue Sep 09, 2008 12:42 pm

RE:Custom GUI
-----------------------------------
Very impressive, I don't have many bits but you're getting some.

After putting over 1000 lines of code into a GAME, I can only imagine what this was like.

-----------------------------------
SNIPERDUDE
Tue Sep 09, 2008 1:00 pm

RE:Custom GUI
-----------------------------------
Thanks :D

Line count: 1014 without the readme.

-----------------------------------
Warchamp7
Tue Sep 09, 2008 1:04 pm

Re: RE:Custom GUI
-----------------------------------
Thanks :D

Line count: 1014 without the readme.

Yeah I saw :P

I'm at 1315 with my game and my bare bones drag system is a whopping 63.

-----------------------------------
SNIPERDUDE
Tue Sep 09, 2008 1:20 pm

RE:Custom GUI
-----------------------------------
Haha, this is only the buttons release.

I also have (just need to clean up the code):

Vertical Scroll bars
Horizontal Scroll bars
Frames
Full Frames (with title bar at top and close button)
Check boxes
Radio Buttons
Input (text) boxes

:)

To be made:

Full text boxes (multiple lines)
Combo Boxes
List Boxes
Message Boxes (like a message pop-up)
Picture boxes (a box of a set size that will have a picture inside and scroll bars to move it around)

also Features to be made:
More themes (will include Vista)
Gradients (like you would see in Vista)
Button / Frame Animations (each will fit to its respective theme)
Any more I manage to think up.

-----------------------------------
chopperdudes
Wed Oct 22, 2008 9:54 pm

RE:Custom GUI
-----------------------------------
very impressive, however, there is one glitch with the style, around line 1066, you checked for simpleX before checking for simple, which will result in an substring index greater than length of string, same with Classic and ClassicX, just flip the if and the elsif and you're good to go.

-----------------------------------
SNIPERDUDE
Mon Oct 27, 2008 10:42 pm

RE:Custom GUI
-----------------------------------
Has it given you an error?
Or is it just something you noticed in the code?
It hasn't given me an error before, but easily fixable nonetheless.
