Gui buttons
Author |
Message |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: Thu Apr 16, 2009 9:41 pm Post subject: Gui buttons |
|
|
Here is module I made today that has two different buttons you can use.
This is better to use then the pre-made GUI that comes with turing because your only loading the 2 buttons and not the whole GUI Library.
The 2 procedures that included to use are:
Turing: | Gui.DrawBoxButton (proc RunProc, X1Value, Y1Value, X2Value,Y2Value, ColorValue, FontSize : int, FontName, Text : string) |
and,
Turing: | Gui.DrawCircleButton (proc RunProc, XValue, YValue, RadiusValue, ColorValue, FontSize : int, FontName, Text : string) |
Also I had done this in an hour so that's why its not too fancy ;p
Comments/Criticism are good. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Thu Apr 16, 2009 10:16 pm Post subject: Re: Gui buttons |
|
|
i get an error when i hold the button over the button for 3 seconds :"Can not allocate item. Out of id numbers (max 1000).
otherwise it's good |
|
|
|
|
![](images/spacer.gif) |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: Fri Apr 17, 2009 7:40 am Post subject: Re: Gui buttons |
|
|
Opps Sorry about that, The reason for the error is that I didn,t free the fonts that were declaired.
Just didn't think about it...
Here is the fixed file.
1 Question though, Why or how did you get the error? lol I was clicking the button before and after I Added The font.free and, I never got any errors! I had ran the program for a full minute with the mouse on the button but nothing happened... |
|
|
|
|
![](images/spacer.gif) |
jdubzisyahweh
|
Posted: Fri Feb 26, 2010 11:30 am Post subject: RE:Gui buttons |
|
|
lol, sooooooooooooooooooooooo trrrrrrrrrippy |
|
|
|
|
![](images/spacer.gif) |
SNIPERDUDE
![](http://compsci.ca/v3/uploads/user_avatars/16932914504cbd0ad6ceaf1.jpg)
|
Posted: Fri Feb 26, 2010 1:16 pm Post subject: RE:Gui buttons |
|
|
Great start to a custom GUI! I loved the circular button idea, that was neat.
+ bits |
|
|
|
|
![](images/spacer.gif) |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
|
|
|
![](images/spacer.gif) |
SNIPERDUDE
![](http://compsci.ca/v3/uploads/user_avatars/16932914504cbd0ad6ceaf1.jpg)
|
Posted: Fri Feb 26, 2010 9:24 pm Post subject: RE:Gui buttons |
|
|
When it comes to custom modules, there really isn't too much of a deal with the date posted. Unless it's extremely outdated. Checking out your other project now. |
|
|
|
|
![](images/spacer.gif) |
|
|