Pull Down Menus
Example:
(http://www.kweepa.com/step/ags/tech/PullDownMenus.png)
Features:
* mac-style menus (drag and release)
* add menus
* add items to menus
* get callbacks from items
* enable and disable items
* toggle items
* show, hide, move and scale the menu bar
* optional icons and right-side text (eg shortcuts) for items
* selection flash
* optional borders and background images
Module for AGS 2.72:
http://www.kweepa.com/step/ags/tech/PullDownMenusModule.zip (http://www.kweepa.com/step/ags/tech/PullDownMenusModule.zip)
Module for AGS 2.71:
http://www.kweepa.com/step/ags/tech/PullDownMenusModule271.zip (http://www.kweepa.com/step/ags/tech/PullDownMenusModule271.zip)
Demo game:
http://www.kweepa.com/step/ags/tech/PullDownMenusTest.zip (http://www.kweepa.com/step/ags/tech/PullDownMenusTest.zip)
Amazing stuff Steve. Really good. This could really cut down on some of the buttons on my GUI's.
Sounds great, I'll add it to my site.
I know I'm bringing up a very old thread, but is there actually any readme for this module?
Unfortunately not.
There is a demo game though, with source.
As I recall it's pretty self-explanatory.
Let me know if there's something you can't do. (Or if it doesn't work with 3.0 for some reason.)
I havent tried it yet, but the last edit was in 2007. Would this Module still work with the current versions of AGS?
Tested and working with 3.2. You need to uncheck "Enforce Object-Based Scripting" in General settings.
Alright. My prior post on this topic disappeared when the forums server crashed the other day.
I'm having trouble with the pull down menus code. I followed the example as best I could and defined my whole menu layout in the repeat_always function just like the demo. Then I wrote the character1_a function just like in the demo, but whenever I click on a menu item, it flashes like it's taking my click and then nothing happens. :(
Anyone have any clue what I might have done wrong? Please help.
Well, it's nice to know that I can still solve my own coding problems. On occasion. ;)
I had all the right code in all the right places, but I forgot to import cMenuCallback and then reference the interaction function char1_a through him. Heh. Silly me.
Hopefully this helps someone else in the future. :)