ezrpg-legacy / ezRPG-1.2.x

ezrpgproject.net
8 stars 7 forks source link

Menu system is convoluted. Add/Remove methods need revisioning. #34

Open uaktags opened 8 years ago

uaktags commented 8 years ago

function add_menu(ParentMenuID, MenuName, MenuTitle', MenuAltTitle, MenuURI, MenuPosition, ModuleID)

The idea was that when you add a Menu, you assign it to a parent which gets translated out in the template.

The Title and AltTitle is more meta for the Template's output and is displayed to the player.

The URI is the link that the menu turns into.

Position is obviously for positioning the output for the ordering.

Module ID connects the Menu to a Module for Activation purposes.

The system is suppose to allow for the utilization of all services. Module Installation/Activations, Template output, all wrapped in one. But I think the system gets confusing in the end, there has to be a better way to do this.