DIA Menu & WinSkin

by DFortun81


Posted on August 10, 2006 at 9:01 PM



DIA Menu is an engine for making working Menus with Skins!

The scripts are relatively easy to comprehend, but here is a lowdown on how to use them:
-menu_init(numberofsubmenus,maxoffsets);
-menu_add_offset(offsetname,codestr,switchsubmenuoffset);
-menu_end();
-menu_finish();

How To Use First, you have to have an instance of obj_diamenu.

var inst;
inst = instance_create(0,0,obj_diamenu);

Next, you have to initialize it with menu_init().

with(inst)menu_init(2,3);

Now you may begin to add the options with menu_add_offset. When you want a new submenu, just use menu_end(); and continue adding offsets. When you are totally done with your menu, use menu_finish();.

with(inst)
{
menu_init(2,3);
//Menu Offset 0
menu_add_offset('Offset 1','show_message("Test")',maxmenoffset);
menu_add_offset('Offset 2','show_message("Test")',maxmenoffset);
menu_add_offset('Offset 3','show_message("Test")',1);
menu_end();
//Menu Offset 1
menu_add_offset('Sub-Offset 1','show_message("Test")',maxmenoffset);
menu_add_offset('Sub-Offset 2','show_message("Test")',maxmenoffset);
menu_add_offset('Sub-Offset 3','show_message("Test")',maxmenoffset);
menu_end();
//Now we are done
menu_finish();
}

You can manually change the positions of your menu by doing this:
with(obj_diamenu)
{
x1 = X1 is Left x position;
y1 = Y1 is Top y position;
x2 = X2 is Right x position;
y2 = Y2 is Bottom y position;
}

Not like the colors or the Alpha Settings?!? Well you can modify them in the Constants menu in Global Game Settings!


GM7 -- WinSkin Extension I made an extension for this. If you want to download it, here it is: WinSkin Extension.

That's about everything... Enjoy,
-DF81



Hootiehoo commented August 10, 2006 at 9:23 PM
Hehe, cool sounds.
I took away my 8/10 rating to be nice. =]
melee-master commented August 10, 2006 at 9:45 PM
Lot's of menu engines today. =P
Stained Glass commented August 10, 2006 at 10:13 PM
Darn, I was going to post of close to this, but yours is better. =(

The menus look awesome, and work awesome, great job.
noshenim commented August 10, 2006 at 11:55 PM
nice, I like the sounds... 10/10
shadowstrike32 commented August 11, 2006 at 3:21 AM
this is the second menu engine ive seen today! and, mind you, this one looks better then the other one [:)]
great job there, except i dont think i would ever use it.
BGames commented August 16, 2006 at 11:24 PM
whats the point of menu engins, there basicly usless.
NeutralReiddHotel commented August 24, 2006 at 3:30 AM
Yayness. Me gonna use this. 9/10
[:D]
Jesper commented September 07, 2006 at 12:54 PM
Pure awesomeness. 10/10
frenchcon1 commented September 22, 2006 at 12:28 PM
looks pretty cool! ill download it in a few hours...
frenchcon1 commented September 22, 2006 at 12:30 PM
whats the point of menu engins, there basicly usless.
Quote

2 things.

1st: Yu spalt basically rong lol

2nd: The menu of a game shows you options and crap that you might not be able to select in the actual game.

So go sleep with a tree
DFortun81 commented September 23, 2006 at 6:23 AM
Thank you for your comment frenchcon1. I was tempted to do the same, but was too lazy to actually do it myself. :D
Omega_Squid commented November 04, 2006 at 12:58 AM
Meh. It r0x0rz my s0x0rz! 9/10!

Dont cry. :D
Flea1991 commented December 08, 2006 at 4:22 PM
Very useful!

-Flea
link2x101 commented January 21, 2007 at 6:25 AM
Idiots Sounds And Sprites In The First Example Are RPG Maker Xp Not Him!!! But He Did Very Well Making That Menu
DFortun81 commented January 21, 2007 at 6:37 AM
Actually, all of the materials are from RMXP. I merely wrote the engine in GM.
Theodore III commented January 21, 2007 at 9:00 AM
I'm using the WinSkin in my RPG
Great exmaple, 10/10, extremly useful, and very smexy
foslock commented February 25, 2007 at 11:55 PM
Very pleasing to the eye, and customizable!
foslock commented February 25, 2007 at 11:56 PM
Um, that last rating was a 10/10.... and it went from a 10/10 to a 9/10...

SORRY!!
rahu commented May 29, 2007 at 3:19 PM
Yay i use rpg ma... i meen i have those two!
frenchcon1 commented December 31, 2007 at 2:15 PM
Thank you for your comment frenchcon1. I was tempted to do the same, but was too lazy to actually do it myself. :D

Fuck, I don't remember this =O