Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Custom GUI
Index -> Programming, Turing -> Turing Submissions
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SNIPERDUDE




PostPosted: Sun Jul 13, 2008 9:15 pm   Post subject: 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!!!!!!!!



LGUI1v4a.tu
 Description:

Download
 Filename:  LGUI1v4a.tu
 Filesize:  55.51 KB
 Downloaded:  298 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Mon Jul 14, 2008 6:16 pm   Post subject: RE:Custom GUI

Where it says how to import, the line

> new LGUI1v4a g

should be

> new LGUI1v4a, g
SNIPERDUDE




PostPosted: Tue Jul 15, 2008 5:21 pm   Post subject: RE:Custom GUI

downloaded 10 times and no reply?
Sad
Euphoracle




PostPosted: Tue Jul 15, 2008 8:08 pm   Post subject: 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




PostPosted: Wed Jul 16, 2008 8:44 am   Post subject: RE:Custom GUI

kk, here:

Turing:

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? Confused Any comments at all would at least let me know what you guys are thinking - good or bad.
Zren




PostPosted: Thu Jul 17, 2008 2:21 pm   Post subject: Re: Custom GUI

Posted Image, might have been reduced in size. Click Image to view fullscreen.

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




PostPosted: Thu Jul 17, 2008 3:19 pm   Post subject: RE:Custom GUI

That way has proven it's granmd glitchiness with his attempt to make a VB-esque window for turing.
SNIPERDUDE




PostPosted: Thu Jul 17, 2008 4:09 pm   Post subject: 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?
Sponsor
Sponsor
Sponsor
sponsor
metachief




PostPosted: Thu Jul 17, 2008 6:26 pm   Post subject: 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




PostPosted: Thu Jul 17, 2008 6:36 pm   Post subject: RE:Custom GUI

The EOD one was original.
(Zren's Screenshot - Second Last)

Anyways Thanks! Smile

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? Razz
andrew.




PostPosted: Fri Jul 18, 2008 9:06 am   Post subject: 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




PostPosted: Fri Jul 18, 2008 4:04 pm   Post subject: RE:Custom GUI

Yes. I did. Razz
darkangel




PostPosted: Tue Sep 09, 2008 11:55 am   Post subject: 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




PostPosted: Tue Sep 09, 2008 12:13 pm   Post subject: 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 Smile
Warchamp7




PostPosted: Tue Sep 09, 2008 12:42 pm   Post subject: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 20 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: