Jump to content


Photo

Game Widgets - Your Pure Gml Solution To Dll's


  • Please log in to reply
252 replies to this topic

#41 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 16 February 2009 - 01:26 AM

On a side note, I'm having trouble finding a program to create those html help pages. Anybody know of one?


I use Microsoft's HTML Help Author, it has a crappy GUI, but it gets the job done. Download @ http://go.microsoft....k/?linkid=14188


btw: these scripts are ftw, great job!

edit: a suggestion -- dockable labels, in other words, draw text that has ability to dock to window. Also, ability to put icons in buttons and menus (the same way you did with windows). Include ability for popup menus, and submenus for the popup and topbar menus. Make sure all of the widgets are dockable (such as list and drop down boxes). Also note that it is not I who wants you to do these as I have edited your code in such a way to incorporate some of the things I just listed for my personal use, but I think it would be good for you to have these things in your future updates for overall completeness. If you need/want some help I can be somewhat of some assistance, but I have a couple other projects going right now.

Thanks for the link I'll definitely check it out.

And all your suggestions are noted. I'd like to point out that there are the functions GW_Window_GetDrawX/Y() that make it easy to draw text on a window for now (but I was planning on adding simple labels anyways, just haven't got to it.) Thanks for the comment.

Loopstan: Well, if you think of them, be sure to let me know. :D
  • 0

#42 margoose

margoose

    GMC Member

  • GMC Member
  • 277 posts

Posted 16 February 2009 - 04:11 AM

yeah, I already made the labels for myself, if you want the code I can give it to you to save some time. I also made the drop down and list boxes dockable. I needed these features for the flowchart prog I am making.
  • 0

#43 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 16 February 2009 - 04:20 AM

No, that's cool. After you posted that I did the docking for the rest of the controls. Labels are also very simple, with the system I have set up they'll just be an object with drawn text. :D

BTW, I'm uploading the new version with the docking right now, I don't know if you figured out how to take care of mouse checking and all that, it's kind of annoying. :D If you give me like 5 minutes I'll have it uploaded.

EDIT: Ok, I finished all the dockable controls (so they can be easily attached to a window), and I added labels. I'll keep working on other things you suggested later.
http://www.box.net/shared/b30jlfdcso

Edited by B&B_Gaming, 16 February 2009 - 04:47 AM.

  • 0

#44 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 19 February 2009 - 01:46 AM

Update! I've added status bars, fixed bugs with GW_Menu_EditItem() and GW_Popup_EditItem(), added scripts GW_Control_SetActive(Control Handle, Active) to deactivate control easily for use with tabs and things, GW_Drop_Open/Close(), Scrollbar functionality on the tabs so you can have more tabs than the width allows, GW_###_Styles scripts for almost all controls, icons functionality for buttons and menu items (as well as popup menus), and some other things I can't really remember right now. :D Overall very busy couple of days.

Just to let everyone know, margoose PMed me 10 or so times with suggestions, and almost all of them are added already. If there's something you want I will do my best to honor it. ^_^
  • 0

#45 clod14

clod14

    GMC Member

  • GMC Member
  • 412 posts

Posted 20 February 2009 - 05:01 PM

I seem to have a Problem B&B =[ I cant seem to add Information into the Tabs.

| TAB 1 \____________________________________________
|																						|
| I can't ADd information here, Why not?? is it not done yet?   |
|																						|
|																						|
|																						|
|																						|
|																						|
|_________________________________________________
_|


thx for the reply when you get the chance to.
  • 0

#46 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 20 February 2009 - 10:03 PM

Game Widgets doesn't do any of the handling of tabs for you (which is the default behavior for most API engines). You have to take care of it, but it's very simple.

//draw event
switch(GW_Tab_GetSel(Tab))
{
case Tab1:
draw_text(x,y,"This is the text for Tab 1.")
break
case Tab2:
draw_text(x,y,"This is the text for Tab 2.")
break
}
Change the x and y, and the variable names for the tabs and it will draw the first string on Tab1 and the other on Tab2. Make sure the depth of the object drawing the text is lower than that of the tabs (default is 0).

EDIT: Nice diagram, BTW. :P

Edited by B&B_Gaming, 20 February 2009 - 10:03 PM.

  • 0

#47 clod14

clod14

    GMC Member

  • GMC Member
  • 412 posts

Posted 21 February 2009 - 02:54 AM

Game Widgets doesn't do any of the handling of tabs for you (which is the default behavior for most API engines). You have to take care of it, but it's very simple.

//draw event
switch(GW_Tab_GetSel(Tab))
{
case Tab1:
draw_text(x,y,"This is the text for Tab 1.")
break
case Tab2:
draw_text(x,y,"This is the text for Tab 2.")
break
}
Change the x and y, and the variable names for the tabs and it will draw the first string on Tab1 and the other on Tab2. Make sure the depth of the object drawing the text is lower than that of the tabs (default is 0).

EDIT: Nice diagram, BTW. :P


lol thx =]
  • 0

#48 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 23 February 2009 - 03:46 AM

Update! I've added built-in scrollbar functionality to the multiline textboxes, and I replaced the scrollbars with sprites, because they look better. :D I'm also planning on doing a minor re-write, I think I can speed up some of the controls a little (a lot of useless repeated calls dealing with windows.)

EDIT: Ok, I made that quick edit, but I only gained about 4 fps on my machine (good, but not the miracle I was hoping for :)). Still, if your project uses multiple windows or scrollbars, you should notice a more significant improvement, as these controls were more affected.

EDIT2: Fixed a small error in the Edit Box's scrollbars.

Edited by B&B_Gaming, 28 February 2009 - 02:17 PM.

  • 0

#49 margoose

margoose

    GMC Member

  • GMC Member
  • 277 posts

Posted 24 February 2009 - 02:17 AM

hey thanks for all the updates you made based solely on my requests, you have done a great job in making these scripts!
  • 0

#50 MrOpposite

MrOpposite

    Yesterdays games

  • New Member
  • 744 posts

Posted 28 February 2009 - 03:14 PM

Me love this!
(still think that you should change the colour thought... but i can do that when i use it by myself xD)
  • 0

#51 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 28 February 2009 - 03:29 PM

Are you sure that color is right?
Posted Image
Posted Image
It seems dark...
  • 0

#52 MrOpposite

MrOpposite

    Yesterdays games

  • New Member
  • 744 posts

Posted 28 February 2009 - 07:56 PM

Are you sure that color is right?
Posted Image
Posted Image
It seems dark...

Oh, I'm sorry, im using the "Windows Classic" theme on my computer, so the color is darker when i mark text, I will look the correct color up :lol:

EDIT:
The XP themes color is:
12937777

Edited by StarTrek, 28 February 2009 - 08:01 PM.

  • 0

#53 margoose

margoose

    GMC Member

  • GMC Member
  • 277 posts

Posted 09 March 2009 - 04:22 AM

I request having ability to put icons/sprites in the popup menu items...like in the buttons and window =]

edit:

I thought you could disable individual menu items, but you can't so I also request that feature as well
most preferably with an "auto gray-out" feature for the words and icon/sprite when the menu item is disabled

also, I noticed you allow submenus...can you put submenus within submenus (I don't have time to experiment right now)?

Edited by margoose, 09 March 2009 - 04:32 AM.

  • 0

#54 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 09 March 2009 - 08:55 PM

I request having ability to put icons/sprites in the popup menu items...like in the buttons and window =]

You can, in the GW_Menu_AddItem() script, the 4th argument is the icon sprite (as a string).

edit:
I thought you could disable individual menu items, but you can't so I also request that feature as well
most preferably with an "auto gray-out" feature for the words and icon/sprite when the menu item is disabled

You can also do that, in the GW_Menu_AddItem() Script, here's a list of the arguments:
GW_Menu_AddItem(Menu Handle (real), Item Text (string), Disabled (bool), Icon (string))

also, I noticed you allow submenus...can you put submenus within submenus (I don't have time to experiment right now)?

Yup. Just remember to close each layer.

EDIT: Finally! After 2 bottles of Powerade, 3 cans of Coke, and 2 very long nights, I have delivered what I promised a year ago. Treeview! Check out the screenshot and download the file in the first post! Enjoy!

Edited by B&B_Gaming, 09 March 2009 - 09:11 PM.

  • 0

#55 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 09 March 2009 - 09:37 PM

Nice to see you finally got the treeview in! Looks better then other attempts.
  • 0

#56 BBGaming

BBGaming

    Programmer

  • GMC Member
  • 2454 posts
  • Version:GM7

Posted 09 March 2009 - 11:45 PM

Thanks. :)

I've uploaded what I have done of the documentation. It's not complete, but a lot of the controls are in there. I'll keep working on it.

EDIT: Fixed a couple of bugs I discovered while actually using Game Widgets in a project. I recommend getting the new version, some of them are good fixes (though not fatal).

Edited by B&B_Gaming, 11 March 2009 - 01:12 AM.

  • 0

#57 margoose

margoose

    GMC Member

  • GMC Member
  • 277 posts

Posted 13 March 2009 - 04:18 AM

great job on the tree view!

Maybe you can have different tree view modes, like with lines drawn connecting the different layers when they are cascaded or have ability to put icons in the tree view [lol yea i realize that i've mentioned icons a million times, so I'll stop from here on :lol:]

(also I'd like to note that I don't have a personal use for every feature I've suggested, I just think of useful ideas and throw them at you because of how much I love this project, and I never know when I might need/want a certain feature anyway! :snitch:)

Edited by margoose, 13 March 2009 - 04:26 AM.

  • 0

#58 Clam

Clam

    GMC Member

  • New Member
  • 55 posts

Posted 19 March 2009 - 01:33 PM

Man, people never stop making these things. I know it's a lot of work, so props for that, but there have been *so many* similar collections of scripts. And let's face it, GearGOD's is by far the sexiest.
  • 0

#59 halo shg

halo shg

    Programmer

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

Posted 20 March 2009 - 12:09 AM

Man, people never stop making these things. I know it's a lot of work, so props for that, but there have been *so many* similar collections of scripts. And let's face it, GearGOD's is by far the sexiest.


Well duh. But his is more of an abstact GUI. This one is trying to replicate Windows XP. Of course, windows would look much nicer if they just used GearGOD's theme.

If there's one thing though, please change the selection colour. It looks very unprofessional because you just chose c_blue.
  • 0

#60 Tahnok

Tahnok

    Friendly Madman

  • GMC Member
  • 1730 posts
  • Version:Unknown

Posted 20 March 2009 - 12:33 AM

Very nice scripts! I may actually use these in my current project. There are a few minor things though that you might want to add to make some of the controls more intuitive.

When clicking a scrollbar it automatically centers it onto the mouse, causing the window to scroll slightly. Ideally it would have a click offset so it doesn't move when clicked.

The spinners' (the ones with the two little vertical arrows next to a value box) values can't be changed manually. That's good in some cases, but being able to enter an amount manually is preferable in many cases I think.

Lastly, when you click a file menu it wont automatically go to the one next to it if you put your mouse over it. You have to deselect the current one and then click the next one. That slows down the user when there are many menus and they're trying to find what they want.

Like I said though, great scripts!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users