Jump to content


Photo

Game Maker Gui System


  • Please log in to reply
52 replies to this topic

#1 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 24 June 2009 - 04:54 PM

Posted Image

Hey :)

I've been busy lately creating a new game and I found myself in need of a GUI system for the menu and the options. So I chose to make one using Game Maker.
This GUI system uses GM functions only, no DLL require. However, a registered version of GM is required.

System features:
- Buttons
- Text fields with password support(******), copy and paste, cursor
- Lists
- Check boxes
- Message boxes
- Tabs
- Windows
- Sliders
- Drop down boxes
- Drop down menus
- Color selector
- Shortcuts
- Outline boxes
- Progress bars
- Tool bar
- Content box

Most of the objects only require one script in order to run, which is the creation script. The system relies on the object_add() functions, which makes it require Pro, but it'll be easier to use.
Each object you create is assigned to a global variable that you name and then use to return the current value of the GUI object, for example.

Updates in version 2:
- Window doesn't jump to the cursor anymore
- Added a new window script, scr_window_add_gui_item() (works in the same way as the scr_tab_add_gui_item())
- Better example with a lot more comments

Updates in version 3:
- New function added called scr_gui_return and is used for returning a value from a GUI object
- Added drop down lists and drop down menus!
- Some minor bugs corrected

Updates in version 4:
- Better graphics and a couple of global color variables for better flexibility
- Some minor code optimization
- Better example which includes all GUI objects
- A color selector
- A basic shortcut support

Updates in version 5:
- Progress bars
- Outline boxes
- Rewritten some code to make it more user friendly

Updates in version 6:
- More advanced text fields (cursor, copy and pasting)
- More customizable drop down menu (icons, spacers)
- Customizable tool bar (icons, spacers)
- Content boxes (kinda works like the GM event container)
- Some minor and major code updating

To come:
- Multi-line text boxes (next version)
- Tree view (next version)
- File tree viewer (maybe next version)
- Version for unregistered Game Maker
- Code improvement (next version)
- Windows 100% completed (next version)

Known bugs:
- The text field is kinda buggy
- Windows are still not 100% completed and you can select stuff behind them(not good)

Screen shots:
Screenshot 1 : new GUI look
Screenshot 2 : some updates in v6

Download:
Version 1 from Box.net
Version 2 from Box.net
Version 3 from Box.net
Version 4 from Box.net
Version 5 from Box.net
Version 6 from Box.net

Hope this will be useful to you. :P
Please post feedback and suggestions, as well as constructive critism.

Regards, dodenonnonisos

Edited by dodenonnonisos, 17 March 2010 - 03:38 PM.

  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#2 mortalpico

mortalpico

    GMC Member

  • New Member
  • 556 posts

Posted 25 June 2009 - 03:43 AM

Great One! Im just thinking why is no-one posting here mmm,NVM im the first one to post!
  • 0
"Remembering ISHIMURA..."

#3 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2680 posts
  • Version:GM:Studio

Posted 25 June 2009 - 04:01 AM

Moving the windows was a bit strange, as they seemed to jump from the top right corner.

Regards,
-Schyler-
  • 0

#4 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 25 June 2009 - 05:00 AM

Thanks for the replies ;)

Schyler, yes, I know, it's beacause I was a bit lazy when I coded the windows.
I'm going to fix that issue as well as a make a better example. :)
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#5 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2478 posts
  • Version:GM7

Posted 25 June 2009 - 05:07 AM

Ahh... Competition. Good luck. :)
  • 0

Posted Image
Game Widgets
- Your pure-GML solution to API DLLs. Featured in Markup Magazine!

My Portfolio - All my good games and resources
Moved away from the forum - e-mail me if you need quick contact (hi_146@hotmail.com).


#6 mortalpico

mortalpico

    GMC Member

  • New Member
  • 556 posts

Posted 25 June 2009 - 05:52 AM

Yeah , im planing to update the window because its jumping in the pointer of the cursor!
  • 0
"Remembering ISHIMURA..."

#7 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 25 June 2009 - 06:05 AM

B&B_Gaming,
Heh, competition is always good, isn't it? :)
I had a look at yours and it looks really good. Still, your's a DLL, while mine is pure GML functions.

mortalpico,
;) There is no need for that, I've already fixed it. I'm just going to finish the better example and then I'll upload the new version.

Thanks for the replies!
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#8 mortalpico

mortalpico

    GMC Member

  • New Member
  • 556 posts

Posted 25 June 2009 - 06:07 AM

Okay!But ill think more about it...
  • 0
"Remembering ISHIMURA..."

#9 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 25 June 2009 - 06:28 AM

-mortalpico,
Ok :) But the new version is now uploaded

Updates in version 2:
- Window doesn't jump to the cursor anymore
- Added a new window script, scr_window_add_gui_item() (works in the same way as the scr_tab_add_gui_item())
- Better example with a lot more comments

See first post for download
Next version will contain drop down lists and drop down menus =)

Edit:
There is a small issue with the new version. If you close the window, you'll get an error about an unknown variable.

Edited by dodenonnonisos, 25 June 2009 - 06:45 AM.

  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#10 Indecom4000

Indecom4000

    GMC Member

  • GMC Member
  • 1636 posts
  • Version:GM:Studio

Posted 26 June 2009 - 06:51 AM

Hey this is pretty good so far dude. can't wait for the future updates with final/customizable graphics.
  • 0

LD-Logo-sml.png


#11 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 26 June 2009 - 07:59 AM

-Indecom4000,
Thanks for the reply =)

Updates in version 3:
- New function added called scr_gui_return and is used for returning a value from a GUI object
- Added drop down lists and drop down menus!
- Some minor bugs corrected

I'd love some more comments :skull:
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#12 nilaro

nilaro

    GMC Member

  • GMC Member
  • 7 posts
  • Version:GM8.1

Posted 26 June 2009 - 08:00 PM

I love it !
Keep up the good work.
  • 0

#13 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 01 July 2009 - 08:44 PM

-nilaro,
Thanks a lot for that comment :huh:
I'll sure keep working on this, I've got lots of nice features comming up.

The next version will take some time until it's complete, but be fore to post constructive critism and ideas for the engine. :)
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#14 SparkzBolt

SparkzBolt

    Graphics....Zap

  • New Member
  • 416 posts
  • Version:Unknown

Posted 02 July 2009 - 02:47 AM

I dont like that it uses only drawing,sprite would be easeir to edit the window ECT.
  • 0
I'm back.

#15 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2478 posts
  • Version:GM7

Posted 02 July 2009 - 03:16 AM

Mine is not a DLL. Look again. :skull:
  • 0

Posted Image
Game Widgets
- Your pure-GML solution to API DLLs. Featured in Markup Magazine!

My Portfolio - All my good games and resources
Moved away from the forum - e-mail me if you need quick contact (hi_146@hotmail.com).


#16 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 02 July 2009 - 08:39 AM

-Luga,
I'll add sprite support later on, right now I want to get it as functional as possible =)

-B&B_Gaming,
heh, my bad :skull: Looks really good ( I'll have to work harder now xD )
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#17 MitchGraham

MitchGraham

    GMC Member

  • Banned Users
  • 524 posts

Posted 02 July 2009 - 09:13 AM

I support this. It's fairly functional as is. Good job.

Needs to look prettier, though.

#18 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 02 July 2009 - 09:26 AM

-MitchGraham,
Thanks a lot for the support :skull:
I'm currently working on the pretty part, but it'll still just be draw functions behind it.
Sprite support will be added later on :)
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#19 MitchGraham

MitchGraham

    GMC Member

  • Banned Users
  • 524 posts

Posted 02 July 2009 - 09:52 AM

Sprite support, to me, is very over-rated. As long as you can make it look good, and give lots of appearace flexibility, no one will mind at all.

#20 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 02 July 2009 - 10:04 AM

-MitchGraham,
Yea, I agree, but I'll add it anyway.

BTW, here is a screenshot of the newer look :skull: It's not the best, but it looks better.
Screenshot of the new look

Note: the blue color is something I chose to use. You can easily change it by changing two variables in the init script.
Hope you like it. :)
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#21 MitchGraham

MitchGraham

    GMC Member

  • Banned Users
  • 524 posts

Posted 03 July 2009 - 04:24 AM

Very good. Here's hoping you have a "mouse over" highlighting.

#22 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 03 July 2009 - 07:35 PM

-MitchGraham,
Thanks a lot for your support :rambo
Yea, mouse over highlight has been added, check out the new version

New version! Check the first post for download link :P

Updates in version 4:
- Better graphics and a couple of global color variables for better flexibility
- Some minor code optimization
- Better example which includes all GUI objects
- A color selector
- A basic shortcut support

Hope you like the update and the new content.
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#23 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 22 October 2009 - 05:33 AM

Hey guys, It was quite a while since I last visited the GMC. :blink:

Anyways, I've been all busy with Linux and school work, but I've finally got some time to do other things. Thus, I chose to work on this open source project again.
I'm quite amazed that people still download it, even if I haven't been working on it for several months.

So, right now I want to hear your ideas and points of view.
What should be added? What should be fixed? Anything would be appreciated.
Also, if anyone used this GUI system for their game, could you please tell me how it worked out?

Can't wait for some replies ;)
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#24 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 28 October 2009 - 06:07 PM

I've released version 5 of the GUI system. More info about it in the top post.

I'd love some comments, constructive criticism(best of all), bug reports, glitches... anything that comes to mind about the GUI system, basically.
I'm also well underway with version 6, which will support quite a few more new useful tools.
It also has window focusing, pretty much a flawless depth control, a lot of bug fixes and more, just check out the "To do" list.
But that "To do" list is very empty, so help me fill it with things you'd love to see!

Regards, dodenonnonisos
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#25 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 28 October 2009 - 06:39 PM

i think the textboxes could use a tiny bit or work, oh, and there should be image buttons
  • 0

#26 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 28 October 2009 - 06:43 PM

Thanks for the comment, but could you explain what you mean?
What's it with the text boxes that needs work?
What do you mean by image buttons? Simply buttons that uses images?
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#27 freko

freko

    The Professional

  • GMC Member
  • 504 posts
  • Version:GM8

Posted 28 October 2009 - 07:04 PM

Wow I love this. Sweet
  • 0

#28 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 02 November 2009 - 05:39 PM

image button are like the ones at the top of gamemaker (with the floppy disk and green triangles and stuff) and you will know what i mean about the textboxes because of the email
  • 0

#29 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 02 November 2009 - 05:44 PM

Ah ok, I call that "tool bar" ^_^ We all have our own ways of saying things, don't we?
And yea, I now understand what ya mean with the text boxes :o

I'm still working hard on the next version. Since it has quite a few major new parts, it'll take a while to complete.
I hope all the work will turn out great :)

Replies, comments and critiques are welcome as always :(
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#30 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 02 November 2009 - 05:53 PM

ok, yes, so do i (i just mean the button itself). cant wait to see new version!
  • 0

#31 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 11 November 2009 - 03:29 PM

Version 6 finally done and released! :P
Go see the first post for more information. You can find the download link there as well.

I hope you'll enjoy the new version, it has some major(and some minor) improvements as well as quite a few new things to play around with.
I'd love some comments, constructive critics, replies, ideas, bug reports... :D

Regards, dodenonnonisos
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#32 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 11 November 2009 - 06:50 PM

Hey, nice stuff! I like the improved textbox (you took my advice) although, i cant seem to actually select in it...
I found 1 bug:
-Toolbar buttons work through windows.

Anyhey, nice system! Do multiple windows work?

PS: On a random note:
if you change te button drawcode to this:
[codebox]drawcode = "
draw_rectangle_color(x-1,y,x+width+1,y+height+1,make_color_rgb(236,233,21
6),make_color_rgb(236,233,216),make_color_rgb(248,
2
47,240),make_color_rgb(248,247,240),false);//draw middle gradient

if hover=0
{
draw_set_alpha(1);//full
draw_set_color(make_color_rgb(0,60,116));//dark blue
draw_rectangle(x,y,x+width,y+height,false);//draw blue outline

draw_set_color(make_color_rgb(236,233,216));//bg colour
draw_point(x,y);
draw_point(x+width-1,y);
draw_point(x,y+height-1);
draw_point(x+width-1,y+height-1);

draw_set_color(make_color_rgb(122,149,168));
draw_point(x+1,y);
draw_point(x,y+1);

draw_point(x+width-1,y+height-2);
draw_point(x+width-2,y+height-1);

draw_point(x,y+height-2);
draw_point(x+1,y+height-1);

draw_point(x+width-2,y+2);
draw_point(x+width-3,y+1);

draw_point(x+width-1,y+1);
draw_point(x+width-2,y);

draw_rectangle_color(x+1,y+1+5,x+width-1,y+height-4,make_color_rgb(246,246,243),make_color_rgb(246,2
46,243),make_color_rgb(240,240,234),make_color_rgb
(
240,240,234),false);//draw middle gradient

draw_rectangle_color(x+1,y+height-4,x+width-1,y+height-1,make_color_rgb(236,235,230),make_color_rgb(236,2
35,230),make_color_rgb(214,208,197),make_color_rgb
(
214,208,197),false);//draw bottom gradient

draw_rectangle_color(x+1,y+1,x+width-1,y+1+5,c_white,c_white,make_color_rgb(248,248,246
),make_color_rgb(248,248,246),false);//draw top gradient


draw_set_color(make_color_rgb(0,60,116));//dark blue again
draw_set_alpha(0.25);
draw_line(x+1,y+2,x+2,y+1);
draw_set_alpha(0.5);
draw_point(x+1,y+1);

draw_set_alpha(0.25);
draw_line(x+1,y+height-3,x+2,y+height-2);
draw_set_alpha(0.5);
draw_point(x+1,y+height-2);

draw_set_alpha(0.25);
draw_line(x+1,y+height-3,x+2,y+height-2);
draw_set_alpha(0.5);
draw_point(x+1,y+height-2);

draw_set_alpha(0.25);
draw_line(x+width-2,y+2,x+width-3,y+1);
draw_set_alpha(0.5);
draw_point(x+width-2,y+1);

draw_set_alpha(0.25);
draw_line(x+width-2,y+height-3,x+width-3,y+height-2);
draw_set_alpha(0.5);
draw_point(x+width-2,y+height-2);

draw_set_alpha(1);//normal

}
if hover=1
{
draw_set_alpha(1);//full
draw_set_color(make_color_rgb(0,60,116));//dark blue
draw_rectangle(x,y,x+width,y+height,false);//draw blue outline

draw_set_color(make_color_rgb(236,233,216));//bg colour
draw_point(x,y);
draw_point(x+width-1,y);
draw_point(x,y+height-1);
draw_point(x+width-1,y+height-1);

draw_set_color(make_color_rgb(122,149,168));
draw_point(x+1,y);
draw_point(x,y+1);

draw_point(x+width-1,y+height-2);
draw_point(x+width-2,y+height-1);

draw_point(x,y+height-2);
draw_point(x+1,y+height-1);

draw_point(x+width-2,y+2);
draw_point(x+width-3,y+1);

draw_point(x+width-1,y+1);
draw_point(x+width-2,y);

draw_rectangle_color(x+1,y+1+5,x+width-1,y+height-4,make_color_rgb(246,246,243),make_color_rgb(246,2
46,243),make_color_rgb(240,240,234),make_color_rgb
(
240,240,234),false);//draw middle gradient

draw_rectangle_color(x+1,y+height-4,x+width-1,y+height-1,make_color_rgb(236,235,230),make_color_rgb(236,2
35,230),make_color_rgb(214,208,197),make_color_rgb
(
214,208,197),false);//draw bottom gradient

draw_rectangle_color(x+1,y+1,x+width-1,y+1+5,c_white,c_white,make_color_rgb(248,248,246
),make_color_rgb(248,248,246),false);//draw top gradient

draw_rectangle_color(x+1,y+1,x+width-1,y+3,make_color_rgb(255,240,207),make_color_rgb(2
55,240,207),make_color_rgb(253,216,137),make_color
_
rgb(253,216,137),false);//draw top orange gradient

draw_rectangle_color(x+1,y+height-3,x+width-1,y+height-1,make_color_rgb(248,178,48),make_color_rgb(248,17
8,48),make_color_rgb(229,151,0),make_color_rgb(229
,
151,0),false);//draw bottom gradient

draw_rectangle_color(x+1,y+3,x+3,y+height-3,make_color_rgb(253,216,137),make_color_rgb(253,2
16,137),make_color_rgb(248,178,48),make_color_rgb(
2
48,178,48),false);//draw middle side gradient

draw_rectangle_color(x+width-3,y+3,x+width-1,y+height-3,make_color_rgb(253,216,137),make_color_rgb(253,2
16,137),make_color_rgb(248,178,48),make_color_rgb(
2
48,178,48),false);//draw other middle side gradient


draw_set_color(make_color_rgb(0,60,116));//dark blue again
draw_set_alpha(0.25);
draw_line(x+1,y+2,x+2,y+1);
draw_set_alpha(0.5);
draw_point(x+1,y+1);

draw_set_alpha(0.25);
draw_line(x+1,y+height-3,x+2,y+height-2);
draw_set_alpha(0.5);
draw_point(x+1,y+height-2);

draw_set_alpha(0.25);
draw_line(x+1,y+height-3,x+2,y+height-2);
draw_set_alpha(0.5);
draw_point(x+1,y+height-2);

draw_set_alpha(0.25);
draw_line(x+width-2,y+2,x+width-3,y+1);
draw_set_alpha(0.5);
draw_point(x+width-2,y+1);

draw_set_alpha(0.25);
draw_line(x+width-2,y+height-3,x+width-3,y+height-2);
draw_set_alpha(0.5);
draw_point(x+width-2,y+height-2);

draw_set_alpha(1);//normal
}
if hover=2
{
draw_set_alpha(1);//full
draw_set_color(make_color_rgb(0,60,116));//dark blue
draw_rectangle(x,y,x+width,y+height,false);//draw blue outline

draw_set_color(make_color_rgb(236,233,216));//bg colour
draw_point(x,y);
draw_point(x+width-1,y);
draw_point(x,y+height-1);
draw_point(x+width-1,y+height-1);

draw_set_color(make_color_rgb(122,149,168));
draw_point(x+1,y);
draw_point(x,y+1);

draw_point(x+width-1,y+height-2);
draw_point(x+width-2,y+height-1);

draw_point(x,y+height-2);
draw_point(x+1,y+height-1);

draw_point(x+width-2,y+2);
draw_point(x+width-3,y+1);

draw_point(x+width-1,y+1);
draw_point(x+width-2,y);

draw_rectangle_color(x+1,y+1+5,x+width-1,y+height-4,make_color_rgb(246,246,243),make_color_rgb(246,2
46,243),make_color_rgb(240,240,234),make_color_rgb
(
240,240,234),false);//draw middle gradient

draw_rectangle_color(x+1,y+height-4,x+width-1,y+height-1,make_color_rgb(236,235,230),make_color_rgb(236,2
35,230),make_color_rgb(214,208,197),make_color_rgb
(
214,208,197),false);//draw bottom gradient

draw_rectangle_color(x+1,y+1,x+width-1,y+1+5,c_white,c_white,make_color_rgb(248,248,246
),make_color_rgb(248,248,246),false);//draw top gradient

draw_set_color(c_black);//grey
draw_set_alpha(0.1);
draw_rectangle(x+1,y+1,x+width-1,y+height-1,false)

draw_set_color(make_color_rgb(0,60,116));//dark blue again
draw_set_alpha(0.25);
draw_line(x+1,y+2,x+2,y+1);
draw_set_alpha(0.5);
draw_point(x+1,y+1);

draw_set_alpha(0.25);
draw_line(x+1,y+height-3,x+2,y+height-2);
draw_set_alpha(0.5);
draw_point(x+1,y+height-2);

draw_set_alpha(0.25);
draw_line(x+1,y+height-3,x+2,y+height-2);
draw_set_alpha(0.5);
draw_point(x+1,y+height-2);

draw_set_alpha(0.25);
draw_line(x+width-2,y+2,x+width-3,y+1);
draw_set_alpha(0.5);
draw_point(x+width-2,y+1);

draw_set_alpha(0.25);
draw_line(x+width-2,y+height-3,x+width-3,y+height-2);
draw_set_alpha(0.5);
draw_point(x+width-2,y+height-2);

draw_set_alpha(1);//normal

}
"[/codebox]
It is in full xp style. (dunno why you would wanna, but hey...)

Edited by Sonica2, 11 November 2009 - 06:54 PM.

  • 0

#33 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 11 November 2009 - 08:08 PM

Thanks for the comment :P

I'll update the text field even more and solve all it's bugs and glitches.
Yes, you can select anything through the windows. I'll fix that for version 7.
Multiple windows works great, however, it's not recommended to have the same window object instanced several times in the same room. Only the newest one will work properly(the window works fine, but not the GUI item in its). I'll have this solved as well(using local variables instead of global).

I don't intend to use any XP or Vista style graphics. I want the user to be able to have a lightweight, easy to use, open source GUI system. That's a lot of drawing code just for a button(more than my drop down menus).
But thanks for the offer :D
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#34 Recreate

Recreate

    Furry

  • GMC Member
  • 2992 posts
  • Version:GM:Studio

Posted 11 November 2009 - 08:54 PM

Ummm...Have I ever seen a closed source one? ^_^
  • 0

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#35 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 11 November 2009 - 08:55 PM

Thanks for the comment ^_^

I'll update the text field even more and solve all it's bugs and glitches.
Yes, you can select anything through the windows. I'll fix that for version 7.
Multiple windows works great, however, it's not recommended to have the same window object instanced several times in the same room. Only the newest one will work properly(the window works fine, but not the GUI item in its). I'll have this solved as well(using local variables instead of global).

I don't intend to use any XP or Vista style graphics. I want the user to be able to have a lightweight, easy to use, open source GUI system. That's a lot of drawing code just for a button(more than my drop down menus).
But thanks for the offer :D


Lol, it is a lot of code.

Oh, and good luck with the window varable stuff :P
(lol, I have just found out how to do multiple windows, thanks to B&B xD)
  • 0

#36 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 11 November 2009 - 09:25 PM

- Recreate, wasn't that a bit useless? No one really cares about it, it's just a name. I know that all GUI systems are open source.
Just don't post useless comments. Please.

- Sonica2, I'm prolly going to write a variable handling system. Might get tricky, but it will be worth it :D
What I meant with multiple windows was that they work flawlessly when it comes to depth and such. However, they ain't 100% complete. ^_^
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#37 Lewis X

Lewis X

    Artist

  • GMC Member
  • 1050 posts
  • Version:GM:Studio

Posted 19 November 2009 - 07:59 PM

A little bump:

I tried multiple windows (the second one smaller than the first), but it made the original window smaller.
  • 0

#38 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 09 March 2010 - 06:21 PM

Sorry to bump, but I cant seem to get drop down box's or sliders to work in my game. I looked at the example but I still cant figure out how to do it. I'd like to know how to get values from drop down box's and sliders. I've tried using gui_return, but I'm not sure how exactly.

Edited by commander of games, 09 March 2010 - 06:21 PM.

  • 0

InvaderX.gif


#39 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 12 March 2010 - 03:24 PM

- commander of games,
If you check the obj_controller objects Draw event, you'll find out how to use the gui_return function. The only parameter is the name of the GUI item you wish to return the value from.

Also, for everyone else reading this topic, I've decided to begin working on this GUI system again. :)
I'd love to get ideas and comments on what to add/improve.

As it stands right now, my current work with this is:
- Major engine improvments
- A nice looking, heavy weight version and a light weight, clean version
- Maybe a GM-lite version
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#40 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 15 March 2010 - 05:57 PM

- commander of games,
If you check the obj_controller objects Draw event, you'll find out how to use the gui_return function. The only parameter is the name of the GUI item you wish to return the value from.

Also, for everyone else reading this topic, I've decided to begin working on this GUI system again. :)
I'd love to get ideas and comments on what to add/improve.

As it stands right now, my current work with this is:
- Major engine improvments
- A nice looking, heavy weight version and a light weight, clean version
- Maybe a GM-lite version

Ok, but is there any way to test what value it has? I've tried it but I always get "Unkown variable value". And btw, I'm using the drop down box thats in the "Hello 2" tab in the example.
  • 0

InvaderX.gif


#41 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 16 March 2010 - 07:41 AM

Could you show me what code you are using ATM?
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#42 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 16 March 2010 - 11:06 PM

Sure, this is my code for the drop down box:
Step event of obj_options(controller)
fullscreen=global.fullscreenddm.value

if fullscreen==1
{
	window_set_fullscreen(true);
}
else if fullscreen==0
{
	window_set_fullscreen(false);
}
Create event of obj_drop_down_menu
drop_create("fullscreenddm",210,180,100)
drop_add_option("No","fullscreenddm")
drop_add_option("Yes","fullscreenddm")

I made the menu initialize in a different object like in the example, and I also did it in the create event of obj_options, but it had the same result:
___________________________________________
ERROR in
action number 1
of  Step Event
for object obj_options:

Error in code at line 3:
   if fullscreen==1
				  ^
at position 17: Cannot compare arguments.
I get that when switching the menu to "Yes". When its on "No"(defualt)its fine though.
  • 0

InvaderX.gif


#43 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 17 March 2010 - 05:50 AM

Aha, you really need to use the scr_gui_return command, it's a lot easier and safer than to do it like you do(although I can't see why it wouldn't work :) ).
Here is the code you'll need to use:

[codebox]fullscreen=scr_gui_return("fullscreenddm")

if fullscreen==1
{
window_set_fullscreen(true);
}
else if fullscreen==0
{
window_set_fullscreen(false);
}[/codebox]

This should work. I'm going to make things like this much more clearer in the new engine. :P
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#44 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 17 March 2010 - 03:40 PM

Thanks, but I still get:
___________________________________________
ERROR in
action number 1
of  Step Event
for object obj_options:

Error in code at line 3:
   if fullscreen==1
				  ^
at position 17: Cannot compare arguments.
When switching to the "Yes" option. Is there something I'm doing wrong with testing what value it has?
  • 0

InvaderX.gif


#45 dodenonnonisos

dodenonnonisos

    GMC Member

  • New Member
  • 835 posts

Posted 18 March 2010 - 06:37 PM

Ah, my bad :)
I've written some of the code in one way and the rest in another way, which has kina mixed it all up.
I'll fix this for the next version.

For the moment, this should work:
[codebox]fullscreen=scr_gui_return("fullscreenddm")

if fullscreen=="Yes"
{
window_set_fullscreen(true);
}
else if fullscreen=="No"
{
window_set_fullscreen(false);
}[/codebox]
  • 0
Liquid Gear team, free game assets and other useful things
Game Maker GUI System, a light weight GUI written in pure GML

AMD Phenom 2 x4 at 3 GHz/core | 4 GB RAM at 1333 MHz | Geforce 8800 GT Pre Alpha Dog Edition at 512 MB | 1660 GB storage

#46 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 21 March 2010 - 02:35 PM

I still get the "Cannot compare arguments error". I'll wait for the next version though, maybe then it'll be solved.
  • 0

InvaderX.gif


#47 theg721

theg721

    G Dawg

  • GMC Member
  • 1959 posts
  • Version:GM8

Posted 12 April 2010 - 08:01 PM

Hey, sorry about the bump, but I thought I'd say that, in addition to my other two projects, I'm going to attempt to build a full OS out of your system. Sounds stupid, but who cares :chikin
  • 0

#48 Dragon33

Dragon33

    GMC Member

  • New Member
  • 2 posts

Posted 17 May 2011 - 03:39 PM

Hello, I know that thread 1 years old. Anyway, I modified this GUI.
Version 6.1:
- Some modifications in textfield:
- - Now maxchar not useless variable;
- - You can press 'Enter' key to confirm;
- - You can press 'Tab' key to choose a next textfield instance;
- Some modifications in windows:
- - Windows can be without title;
- - Argument added - static. It's mean that window with 'static = 1' cannot move;
- - Argument Style added: 0 (default) - rectangle form of windows, 1 - roundrect;
- - So, you can use this things for your bars, like HP or MP bar, EXP and etc.
- New component - label: scr_label_create(x, y, text, name);

Screenshot

Download

Edited by Dragon33, 18 May 2011 - 06:11 AM.

  • 0

#49 mrpeanut188

mrpeanut188

    GMC Member

  • GMC Member
  • 814 posts
  • Version:GM8

Posted 09 June 2011 - 05:04 PM

Hm, nice first post Dragon!
Something usefull! However, the width/height editor of the windows doesn't work for me.
I don't know why.
  • 0
Posted Image

#50 Dragon33

Dragon33

    GMC Member

  • New Member
  • 2 posts

Posted 25 July 2011 - 11:16 PM

mrpeanut188, sry, but now it's useless GUI system for me.
Because I need to bind my windows to the views. Here it's impossible. All code must be rewritten.
Maybe I'll do my own GUI in next time.
  • 0