Author Topic: Coding Contest: May 26th- June 18th Pull-down menus  (Read 6443 times)

SSH

  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on one or more games that won an AGS Award!
    •  
    • SSH worked on one or more games that was nominated for an AGS Award!
Since no-one entered the last one...

AGS can't even do pull-down menus, what kind of development environment is this? Save CJ's face and make a module...!

Here are the rules:
1. Must be open-source. We can hardly inspect your coding if we can't see it.
2. Must contain instructions for how to add to an existing game; this will obviously be easier if the scripting is done as a module.
3. Only use of the 3D, TCP/IP and maths plugins are allowed.
4. Must provide sample game using your code.
5. Team efforts are allowed, and you're probably expected to get help for sprites, etc from elsewhere.
6. As far as possible, entries will be judged on their scripting and gameplay rather than GFX, SFX, music, etc.
7. Winner will be decided by 1 week of voting at the end.
8.  Please add your entry to the wiki page upon entry.

Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #1 on: 27 May 2006, 23:30 »
What do you mean by 'pull-down' menus?
I know what you're thinking ... Don't think that.

Akumayo

  • Is Watching You
    • I can help with AGS tutoring
    • I can help with play testing
    • I can help with scripting
    • I can help with story design
    • I can help with voice acting
    • Akumayo worked on one or more games that won an AGS Award!
    •  
    • Akumayo worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #2 on: 27 May 2006, 23:46 »
I may not be able to enter this one, I'll not even be here from June 1st to June 15th...  But I may be able to whip an entry up if I have enough time before and after those dates.  Good luck to any other entrants!
"Power is not a means - it is an end."

SSH

  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on one or more games that won an AGS Award!
    •  
    • SSH worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #3 on: 29 May 2006, 06:37 »
What do you mean by 'pull-down' menus?

Look at the Menu bar at the top of your browser.... like those

Akumayo

  • Is Watching You
    • I can help with AGS tutoring
    • I can help with play testing
    • I can help with scripting
    • I can help with story design
    • I can help with voice acting
    • Akumayo worked on one or more games that won an AGS Award!
    •  
    • Akumayo worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #4 on: 31 May 2006, 06:59 »
Well, I got a basic idea going now, but it's not actually working... at all.  I suppose I'll wait until my return, when I'll have a day or two work on it...
"Power is not a means - it is an end."

SSH

  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on one or more games that won an AGS Award!
    •  
    • SSH worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #5 on: 31 May 2006, 08:31 »
The dates were pretty arbitrary, so please, with extensions, ask and ye shall recieve

Kweepa

  • Mutated Guano Deviser
    • Best Innovation Award Winner 2009, for his modules and plugins
    • Kweepa worked on one or more games that won an AGS Award!
    •  
    • Kweepa worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #6 on: 31 May 2006, 14:24 »
I've got an entry in the works too. It's going to be pretty basic, but it should work for your walkcycle generator, SSH. :=
Still waiting for Purity of the Surf II

Akumayo

  • Is Watching You
    • I can help with AGS tutoring
    • I can help with play testing
    • I can help with scripting
    • I can help with story design
    • I can help with voice acting
    • Akumayo worked on one or more games that won an AGS Award!
    •  
    • Akumayo worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #7 on: 31 May 2006, 16:37 »
I don't need extensions, I think I'll be able to pull it off.  I usually don't make me entries over a long time, just a weekend or so.  So two days should be plenty for something like this.
"Power is not a means - it is an end."

SSH

  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on one or more games that won an AGS Award!
    •  
    • SSH worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #8 on: 31 May 2006, 17:08 »
I've got an entry in the works too. It's going to be pretty basic, but it should work for your walkcycle generator, SSH. :=

That'll be interesting to see what happens in the module manager when you have 11 extensions, as 10 fills the box right up. I wonder if CJ made a scrollbar?

Kweepa

  • Mutated Guano Deviser
    • Best Innovation Award Winner 2009, for his modules and plugins
    • Kweepa worked on one or more games that won an AGS Award!
    •  
    • Kweepa worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #9 on: 01 Jun 2006, 07:05 »
Here's my entry:

Example:


Module for AGS 2.72:
http://www.steporg.com/step/ags/tech/PullDownMenusModule.zip
Module for AGS 2.71:
http://www.steporg.com/step/ags/tech/PullDownMenusModule271.zip

Demo game:
http://www.steporg.com/step/ags/tech/PullDownMenusTest.zip

You can add menus, add items to menus, get callbacks on clicks, enable and disable items, toggle items, show and hide the menus.

[EDIT2] Updated to v1.1 - Added icons, allowed bar to be moved/scaled, fixed autocomplete (thanks Strazer), changed docs to require AGS 2.72.
[EDIT3] Updated to v1.2 - Added right text to menu items, changed to mac-style click, drag, release because I couldn't get a mouse click outside the GUIs in the module. And now I'm finished fiddling.
[EDIT4] Ok, I lied. Updated to v1.3 - Added borders, background graphics and flash on select, 2.71 compatibility.
« Last Edit: 04 Jun 2006, 23:02 by SteveMcCrea »
Still waiting for Purity of the Surf II

Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #10 on: 01 Jun 2006, 19:18 »
[EDIT] I meant to ask: Is there any way to get AGS to autocomplete module function names? I tried using the guidelines, but that didn't even present the module name as an autocomplete, much less the functions. And the style I used here (copied from one of SSH's recent modules) allows autocompletion of the module name, but none of the functions.

Do
Code: [Select]
struct __PullDownMenus {
instead of
Code: [Select]
struct __PullDownMenus
{

But why not use static functions? Then you wouldn't need to create an instance of __PullDownMenus.
(Edit: Ah, I guess you tried that. Placing the bracket like shown above should auto-complete correctly.)

Can't open the demo game with v2.71, btw. The module doesn't compile with v2.71 as well. Module header says AGS v2.71 is supported...
« Last Edit: 01 Jun 2006, 19:24 by strazer »

Akumayo

  • Is Watching You
    • I can help with AGS tutoring
    • I can help with play testing
    • I can help with scripting
    • I can help with story design
    • I can help with voice acting
    • Akumayo worked on one or more games that won an AGS Award!
    •  
    • Akumayo worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #11 on: 16 Jun 2006, 22:24 »
Yikes!  I mean... awesome entry Steve.

Mine's still in the forges.  I'm pretty sure I'll finish before deadline.  I might be an hour or two late, but I'll finish the entry eventually  ;D.

This isn't going to be a two man race again is it....?
"Power is not a means - it is an end."

Kweepa

  • Mutated Guano Deviser
    • Best Innovation Award Winner 2009, for his modules and plugins
    • Kweepa worked on one or more games that won an AGS Award!
    •  
    • Kweepa worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #12 on: 18 Jun 2006, 18:10 »
This isn't going to be a two man race again is it....?

It's looking a lot like it :'(
Still waiting for Purity of the Surf II

Akumayo

  • Is Watching You
    • I can help with AGS tutoring
    • I can help with play testing
    • I can help with scripting
    • I can help with story design
    • I can help with voice acting
    • Akumayo worked on one or more games that won an AGS Award!
    •  
    • Akumayo worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #13 on: 18 Jun 2006, 19:40 »
Sorry to say it, but It'll probably be a one horse race.  My idea to make this work... didn't work.  Aside from that, I'm really busy on my other projects.  Sorry all  :'(

I'll do my best to enter the next one though  :D

-Regards, "Acqua" Akumayo
"Power is not a means - it is an end."

Kweepa

  • Mutated Guano Deviser
    • Best Innovation Award Winner 2009, for his modules and plugins
    • Kweepa worked on one or more games that won an AGS Award!
    •  
    • Kweepa worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #14 on: 19 Jun 2006, 14:58 »
Sorry to hear that, AA.

I hereby declare myself the de facto winner.
IN YOUR FACE, LOSERS! YOU SUCK, I RULE. &c.
Still waiting for Purity of the Surf II

SSH

  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on one or more games that won an AGS Award!
    •  
    • SSH worked on one or more games that was nominated for an AGS Award!
Re: Coding Contest: May 26th- June 18th Pull-down menus
« Reply #15 on: 19 Jun 2006, 15:18 »
Your prize is to update the wiki page  :P