Medo42/Gang-Garrison-2 — pull request #64 by TazeTSchnitzel (2012-03-24 16:00:33+00:00)
Title: Menu overhaul

I've overhauled the menu system in GG2. All menus now inherit from the new MenuController object, and use the new set of menu_* functions to configure items.

It's much nicer for, say, adding items. No messing around with shifting events, just add a new menu_addlink or menu_addedit_text call to the Create event. You don't have to manually track the number of items, or manually set their values. It has a nice callback system for dealing with value changes too.

:)