MODULE: Pull Down Menus v1.3

Started by Kweepa, Mon 19/06/2006 21:40:57

Previous topic - Next topic

Kweepa

Pull Down Menus

Example:


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
Module for AGS 2.71:
http://www.kweepa.com/step/ags/tech/PullDownMenusModule271.zip

Demo game:
http://www.kweepa.com/step/ags/tech/PullDownMenusTest.zip
Still waiting for Purity of the Surf II

Akumayo

Amazing stuff Steve.  Really good.  This could really cut down on some of the buttons on my GUI's.
"Power is not a means - it is an end."

jasonjkay

Sounds great, I'll add it to my site.
http://www.americangirlscouts.org/agsresources/ - Mods, plugins and templates.

NsMn

I know I'm bringing up a very old thread, but is there actually any readme for this module?

Kweepa

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.)
Still waiting for Purity of the Surf II

Joseph DiPerla

I havent tried it yet, but the last edit was in 2007. Would this Module still work with the current versions of AGS?
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

Kweepa

Tested and working with 3.2. You need to uncheck "Enforce Object-Based Scripting" in General settings.
Still waiting for Purity of the Surf II

Yuri Patrick

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.

Yuri Patrick

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. :)

SMF spam blocked by CleanTalk