Jump to content


Photo
* * * * - 4 votes

GM WinUI


  • Please log in to reply
85 replies to this topic

#1 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 05 September 2011 - 09:28 PM

  • Title: GM WinUI
  • Description: Fully editable Windows style UI in full GML
  • GM Version: GM8 / Studio
  • Registered: Yes
  • File Type: .gmk / .gmz
  • File Size: 66kB / 957kB
  • File Link: Download V 1.3.3 - GM8 / Download V 1.4.0 - STUDIO (Newest 14-Sep-14)
  • Required Extensions: None
  • Required DLLs: None
Featuring:
  • Buttons (S)
  • Checkboxes (S)
  • Radio buttons
  • Dropboxes
  • Input boxes (S)
  • Links (S)
  • Sliders
  • Tabs (S)
  • Progress bars
  • Textboxes (Single line, Password, Multiline) (S)
  • Scrollbars (Horizontal, Vertical)
  • GML colour coding
(S) = Works in Studio version
Download V 1.3.3 - GM8
Download V 1.4.0 - STUDIO (Newest 14-Sep-14)

Info:
The great thing this being pure GML is that you can edit anything you like. It can fit your game/program style completely, merely by changing the sprites, font and even code (although it's not recommended). Also you can change whatever you like runtime, not like the other UI's where you can only change one-two things. It's also very simple to use, and if you don't understand anything or are in need of something PM me!

REWRITING FOR STUDIO: After many months (or years) the re-writing has begun. I will re-create all the functions in all their glory and more, since my coding skills have improved since then, and hopefully more in GM:Studio. Up until then I will release this version, and some minor bug-fixes for it following it's release. I doubt that I will update until 2.0 much, especially in the terms of content it offers. The GM8 version still works, with some bugs, but hopefully this will be fixed while re-writing. GM8 version will be discontinued after the entire engine has been re-written in Studio, however I will attempt to make it backwards compatible, and keep the updated GM8 link for download.

There is a lot of commenting, and read the Manual script, and the game info.
I will try to update this as regularly as I can.

Credit isn't requires for non-commercial. But it is real nice. For commercial games read the game info.
gmapi.png
Update List:
Spoiler

Edited by Shadowrend, 14 September 2014 - 06:36 PM.

  • 12

#2 Osmium

Osmium

    Graphic Artist

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

Posted 07 September 2011 - 01:03 PM

Nice! :thumbsup:
  • 0
Posted Image

#3 loverock125

loverock125

    GMC Member

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

Posted 07 September 2011 - 10:58 PM

Very nice example. I'm sure this will be used very frequently by those who download it.

I think I've found a bug (not sure if it's a bug though), when you go to tab2, and click on another tab which is in tab2, tab2 will become unselected. Then if you press tab2 again, all tabs in tab2 will become unselected. I am not entirely sure if that's supposed to happen instead of having the main tab and the sub-tab opened.

Edited by loverock125, 07 September 2011 - 10:59 PM.

  • 0

#4 slam drago

slam drago

    The slam drag

  • New Member
  • 422 posts
  • Version:GM:Studio

Posted 07 September 2011 - 11:52 PM

No multi-line text box??? And the text boxes don't even work.
  • 0
My newest website. Check it out!
I support Cryset Games. Make money playing and making games!
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
My avatar is best viewed in the lighter GMC theme.

#5 loverock125

loverock125

    GMC Member

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

Posted 08 September 2011 - 08:00 AM

No multi-line text box??? And the text boxes don't even work.


They are not text boxes. When you select them and press a key, they save that key. (e.g if you press 'D' they will gain a value of D)
  • 1

#6 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 08 September 2011 - 04:35 PM

@loverock125 Yeah that's a semi-bug. It's just that you can't have two tab's selected at the same time, and the checking in the control object step event also closes all tabs in tab2 when you click it.
@slam drago I'll add the multiline textbox, and those are INPUT boxes.

Edited by Shadowrend, 12 September 2011 - 09:22 PM.

  • 0

#7 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 11 September 2011 - 06:53 PM

Version 1.1.1 is out
Download 1.1.1

Update:
Fixed percentage bug
Removed some data

Edited by Shadowrend, 12 September 2011 - 04:46 PM.

  • 0

#8 creativebunch

creativebunch

    The Bunchiest

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

Posted 12 September 2011 - 07:01 PM

This is a nice start! A few things I noticed:

When holding down the mouse button, if I move over a widget it becomes selected, it should only do so if the mouse was pressed when over it.

You should have some sort of visual recognition when the mouse if over a link (changing the cursor into a hand).

A group of radio buttons should only allow one to be selected at a time.

Not necessary, but you could try to add that streaky light thing to the progress bars :biggrin:

Looking forward to the text boxes!
  • 1

#gmc - It's the goddamn GMC IRC
Beat Hell Pre-Alpha v2.1.0 | Slender2d | Creeping Insanity

indiedb_88x31.png

buXyYwQ.png
I am looking for a pixel/3D artist to team up with me to work on some games. Send me a message if interested.


#9 Dark Matter

Dark Matter

    RPG Expert

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

Posted 12 September 2011 - 09:04 PM

Well, it's a pretty good start. Like CB said, radio buttons should not work like check-boxes - only one can be selected at a time.
Keep at it!
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#10 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 12 September 2011 - 09:21 PM

@creativebunch Thanks.
I'll see to fix that tomorrow. As for the mouse it's fixed, I just left the checkboxes and radio's untouched, as it kinda spoiled what they do (I can't quite describe it).
IDK why but the cursor won't return (using window_set_cursor()) to default, so I delayed the update for tomorow.
Working on it.
Yeah I'll add that when I have the time.
Me 2.

@Dark Matter Thanks. I will.

Edited by Shadowrend, 19 September 2011 - 06:47 PM.

  • 0

#11 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 19 September 2011 - 06:49 PM

Version 1.1.2 is out
Download 1.1.2

Update:
Added Textboxes (Single-line)
Minor bug-fix

Note: The radio buttons wasn't implemented, due to a function I will be adding in 1.2.0.
The mouse hover was buggy, therefore I have deleted the code. Next version will contain link color changing depending whether the mouse is over the link.
  • 0

#12 slam drago

slam drago

    The slam drag

  • New Member
  • 422 posts
  • Version:GM:Studio

Posted 20 September 2011 - 01:55 AM

One thing that annoys me is version numbers. Why is it 1.1.2, why not 1.3?
Meh.
  • 0
My newest website. Check it out!
I support Cryset Games. Make money playing and making games!
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
My avatar is best viewed in the lighter GMC theme.

#13 creativebunch

creativebunch

    The Bunchiest

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

Posted 20 September 2011 - 12:48 PM

Nice start with the textbox, I hope you'll be adding a caret, selecting via the mouse and keyboard, inserting/deleting at any position in the text, and copy/paste :sweat:

One thing that annoys me is version numbers. Why is it 1.1.2, why not 1.3?
Meh.

It depends on the person as there are many styles of versioning, as for me I use this format:
major release . new feature . bug fix
  • 0

#gmc - It's the goddamn GMC IRC
Beat Hell Pre-Alpha v2.1.0 | Slender2d | Creeping Insanity

indiedb_88x31.png

buXyYwQ.png
I am looking for a pixel/3D artist to team up with me to work on some games. Send me a message if interested.


#14 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 20 September 2011 - 02:42 PM

@slam drago
I really, but really really really don't know. Really.

@creativebunch
You read my mind man.
Yeah, that's a good format. I'll use that if ye don't mind.


Version 1.1.3 is out
Download 1.1.3

Update:
Added password textbox
Optimized some code
Added blinker in the textbox

Edited by Shadowrend, 20 September 2011 - 09:41 PM.

  • 0

#15 freko

freko

    The Professional

  • GMC Member
  • 504 posts
  • Version:GM8

Posted 20 September 2011 - 03:06 PM

A great example. Nice, keep it up.

Edited by freko, 20 September 2011 - 03:07 PM.

  • 0

#16 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 07 October 2011 - 07:49 PM

Version 1.2.0 is out
Download 1.2.0

Update:
Added horizontal scrollbars

Note:
The value the scrollbars return is still buggy, and should be fixed by the next version. If you succeed in fixing it, contact me.
  • 0

#17 freko

freko

    The Professional

  • GMC Member
  • 504 posts
  • Version:GM8

Posted 07 October 2011 - 08:40 PM

Downloading..
Will report back.



edit:-
Nice & works perfect. Now all I need to do is skin it and use in my game :)

Edited by freko, 07 October 2011 - 08:45 PM.

  • 0

#18 Debels

Debels

    GMC Member

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

Posted 08 October 2011 - 01:45 AM

GREAT EXAMPLE 10/10 adding to favorites!
  • 0

"Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime."

(Chinese axiom)


#19 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 08 October 2011 - 11:32 AM

Thanks :D
  • 0

#20 HelpMyFellowPeople

HelpMyFellowPeople

    GMC Member

  • GMC Member
  • 281 posts
  • Version:GM8

Posted 09 October 2011 - 11:12 AM

This is amazing! I really like it! Can I give you an idea to put into this? menubars and toolbars. I could help you with them, although looking at this code, I think they will be a breeze for you :P
  • 0
-------------------------
Helping People Since Now!

If you need any help with scripts, ask me and ill try to help you!

~HMFP

#21 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 09 October 2011 - 04:34 PM

I started working on the menubars the moment I released version 1.2.0.
The toolbars... Yeah I could do that too :P (Not for 1.3.0 though which will come out during the next week with menubars and vertical scrollbars (hopefully with values cooperating ( = rewrite entire script lol)))

PS: If anyone has any requests related to this, I will try to get it done.
  • 1

#22 Dark Matter

Dark Matter

    RPG Expert

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

Posted 10 October 2011 - 06:03 AM

The only thing I would say is that you released this too quickly. It's pretty useless until it gets more features. You should have waited before releasing it.

The hyperlinks don't work as they should though...
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#23 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 10 October 2011 - 01:52 PM

I am updating it and every version except the scrollbars, were fully bug-free. I didn't find any bug with the hyperlinks, they work perfect for me.
  • 0

#24 Dark Matter

Dark Matter

    RPG Expert

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

Posted 10 October 2011 - 04:18 PM

It's not the glitchy-ness of the example that's the problem. It's that there's not enough content. For a start, only half of the items work as they should. Input boxes don't work properly. Radio buttons don't work properly. Hyperlinks don't work properly (see below). Also, you're missing crucial features that are the ones people are most likely to use. Multiline textboxes (possibly RTF), contextual menus, etc. In its current state, it has very little use. It would make more sense to release it later.
The hyperlinks are just blue underlined text that open a link when you click on them. They don't change colour on mouse over (which would seem natural). They don't change colour once they've been visited. The don't change the cursor when you mouse over them.

I release I've just been ranting, but I'm not saying what you're doing is bad :P
It's good, but needs more work before it's actually worth people's attention. The updates aren't frequent enough.
Anyway, keep it up :P
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#25 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 10 October 2011 - 06:11 PM

This example was intended from the beginning to be a open-source that will develop in time. Otherwise you still wouldn't have anything, and I'd probably lose my interest in it due to community disinterest.
1. Input boxes? The key-detect or typing ones? They don't notice only two keys: "Tab" and "PrtScr", and that is the problem in GM, not my scripting. If you mean textboxes, they are WIP.
2. Multiline is scheduled for 1.4.0
3. Hyperlinks - fixed in 1.3.0 (cursor not working only GM's bug using windows cursors)

Contextual menus - did you mean this? (Has support for icons also, and more, just not represented as I'm in a hurry and didn't have time to put it into the picture)
Posted Image

I'm adding the > function if you get what I mean... :P

Anyway's I appreciate a good critique as much as I appreciate a praise, as I value those constructively.

Edited by Shadowrend, 10 October 2011 - 06:12 PM.

  • 0

#26 Dark Matter

Dark Matter

    RPG Expert

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

Posted 10 October 2011 - 06:20 PM

1. Single line textboxes, yeah.
2. :P
3. Okay.
4. Looking forward to see the sub-menus. That's where it gets complex :P
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#27 MudbudGoldfish

MudbudGoldfish

    Indie Game Dev Team

  • New Member
  • 494 posts
  • Version:Unknown

Posted 13 October 2011 - 03:09 AM

Yeah this is great work but I want to see multiple windows... Sorry but I will still use H0bbels WINAPI though :)
  • 0

#28 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 14 October 2011 - 08:43 PM

@ DarkMatter What do you mean about textboxes? Is it the caret or what?

@Mudbud Productions I was planning on adding those also. I don't have anything in mind using other peoples DLL's, examples. H0bbels WINAPI is better than mine I must say, not that it offers more, but it looks better and is probably more efficient - but mine is less complex, and full GML so you can edit whatever you want. Those are the differences.

I'm not releasing new versions so frequent as I have other responsibilities, that are far more important than GM. Expect the 1.3.0 in a few days, depending on DarkMatter's answer and some more stuff.

Edited by Shadowrend, 14 October 2011 - 08:43 PM.

  • 0

#29 MudbudGoldfish

MudbudGoldfish

    Indie Game Dev Team

  • New Member
  • 494 posts
  • Version:Unknown

Posted 15 October 2011 - 05:25 AM

Well for the ease of use and because I only need a few functions, I am using this. Its working really great in my .bin package maker IDE :D
  • 0

#30 Dark Matter

Dark Matter

    RPG Expert

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

Posted 15 October 2011 - 09:51 AM

@ DarkMatter What do you mean about textboxes? Is it the caret or what?

No caret, no mouse use.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#31 Debels

Debels

    GMC Member

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

Posted 15 October 2011 - 07:50 PM

cant wait for 1.3.0

Edited by BlueDebel, 15 October 2011 - 07:51 PM.

  • 0

"Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime."

(Chinese axiom)


#32 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 16 October 2011 - 07:22 PM

Version 1.3.1 is out
Download 1.3.1

Update:
1.3.0
Multiline Textbox
Vertical Scrollbar
Menu bar
1.3.1
Link coloring

Fixed Cursor
Hyperlink hover color
Caret flash
Added image to the Button1>Show Info
Minor spelling
Textbox

Edited by Shadowrend, 17 October 2011 - 07:22 PM.

  • 0

#33 Dark Matter

Dark Matter

    RPG Expert

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

Posted 17 October 2011 - 06:10 AM

Nice new additions ^_^
The multiline textbox worked very well.
Just a few bugs...
Bugs:
>The cursor is wrong most of the time - i.e. it's a caret, not the default.
>The menus can go off the screen.
>Hyperlinks don't change colour when you hover over them.
>At least one tab should be open to begin with.
>When you have tabs within tabs, the parent tabs don't work properly.
>Radios still don't work.
>Textboxes don't work.
>The caret doesn't flash.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#34 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 17 October 2011 - 07:21 PM

Okay I've updated it to 1.3.1

Bug fixes:
1. Cursor
2. Hyperlinks
3. Caret flash
4. Minor spelling
5. Textboxes (although the text is still added to the multiline fixing that)

Also, @DM,
I need to work on scrollbars now, but you could read that in the Manual (8-4) :D
Tab1 is open at start

Edited by Shadowrend, 17 October 2011 - 07:21 PM.

  • 0

#35 mads2194

mads2194

    GMC Member

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

Posted 18 October 2011 - 02:20 PM

Looks very neat and is very useful is you prefer GM over C++/C# etc.

Edit: The slider on Tab4 doesn`t seem to work properly

Edited by mads2194, 18 October 2011 - 02:25 PM.

  • 0

#36 paul23

paul23

    GMC Member

  • Global Moderators
  • 4147 posts
  • Version:GM:Studio

Posted 18 October 2011 - 02:40 PM

Uhm isn't this more of an extension than a tutorial?
  • 0

#37 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 18 October 2011 - 03:38 PM

@mads2194 The slider isn't connected to anything.

@paul23 Depend on how someone looks at it.
  • 0

#38 mads2194

mads2194

    GMC Member

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

Posted 18 October 2011 - 03:45 PM

Also is this supposed to happen? I think it`s not :whistle:

Posted Image
  • 0

#39 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 27 October 2011 - 04:06 PM

Yeah I am aware of the radio buttons bug.

Also I must state that I am on GM vacation right now and can't work (except if I get a brainchild) on this for this and another week.
  • 0

#40 Guest_ihato_*

Guest_ihato_*
  • Guests

Posted 01 November 2011 - 09:10 PM

Awesome!! That 1 vote is from me!

#41 Debels

Debels

    GMC Member

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

Posted 21 November 2011 - 10:36 PM

is this tutorial/example dead?
  • 0

"Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime."

(Chinese axiom)


#42 MudbudGoldfish

MudbudGoldfish

    Indie Game Dev Team

  • New Member
  • 494 posts
  • Version:Unknown

Posted 21 November 2011 - 10:48 PM

is this tutorial/example dead?


Its not dead, the creator states that he is on a GM vacation...
  • 0

#43 Debels

Debels

    GMC Member

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

Posted 21 November 2011 - 10:50 PM

Yeah I am aware of the radio buttons bug.

Also I must state that I am on GM vacation right now and can't work (except if I get a brainchild) on this for this and another week.


but look at the date and the text
  • 0

"Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime."

(Chinese axiom)


#44 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 29 November 2011 - 04:30 PM

I'm back! Yeah I was on a longer vacation due to a schedule that had to be moved, but I will start working now. Sorry to kept you waiting.
  • 1

#45 Debels

Debels

    GMC Member

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

Posted 29 November 2011 - 05:40 PM

I'm back! Yeah I was on a longer vacation due to a schedule that had to be moved, but I will start working now. Sorry to kept you waiting.


cool your back =D i was waiting =D

going to +1

Edited by BlueDebel, 02 December 2011 - 01:36 AM.

  • 0

"Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime."

(Chinese axiom)


#46 Debels

Debels

    GMC Member

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

Posted 02 December 2011 - 01:37 AM

You should add to the textbox a thing that prevents people to put # since # tells gm to create another line
You should add to the textbox an option that lets align the text to left or right or center

Can't wait for next update
  • 0

"Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime."

(Chinese axiom)


#47 Dark Matter

Dark Matter

    RPG Expert

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

Posted 02 December 2011 - 07:09 AM

You should add to the textbox a thing that prevents people to put # since # tells gm to create another line

You should be allowed to type that symbol, but it should just not go on to a new line.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#48 SI II man

SI II man

    GMC Member

  • New Member
  • 83 posts

Posted 21 December 2011 - 11:39 AM

so it'll always look like Win 7 even if you're on Vista/XP/ME/9x/Linux/Mac/The Internet(HTML5)?
  • -1
When are they going to do a Linux port already?

#49 Debels

Debels

    GMC Member

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

Posted 21 December 2011 - 11:58 AM

so it'll always look like Win 7 even if you're on Vista/XP/ME/9x/Linux/Mac/The Internet(HTML5)?


yes since it has sprites of win 7, if you want sprites from vista/XP or other you have to change the sprites :P
  • 0

"Give a man a fish, and you feed him for a day; show him how to catch fish, and you feed him for a lifetime."

(Chinese axiom)


#50 Dark Matter

Dark Matter

    RPG Expert

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

Posted 23 December 2011 - 01:29 PM

The Internet(HTML5)?

Web browsers just use the default OS theme styles, generally.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!