[Ohrrpgce] SVN: teeemcee/3228 Remove the 21 menu item limit, and store the menu items, in their true r

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Wed Dec 23 07:36:00 PST 2009


teeemcee
2009-12-23 07:36:00 -0800 (Wed, 23 Dec 2009)
783
Remove the 21 menu item limit, and store the menu items, in their true rather than display order, in a list. For minimal change to existing code, I decided to store the real item order in the list, and store the display order in items[].
Removed member, sortorder, exists from MenuDefItem, and the magically-append-"NEW MENU ITEM" edit_mode hack.
Also, this fixes a swath of bugs when manipulating menus with scripts which I can't even all remember, mostly related to .sortorder/the crazy concept of not storing the real item order/SortMenuItems not being called/not working.

Also changed the default menu size from 21 to 18. You can only just fit 20 items onscreen by repositioning the menu.

NOTE: you MUST initialise a new MenuDef by calling either ClearMenuData or LoadMenuData!
---
U   wip/common.bas
U   wip/common.bi
U   wip/customsubs.bas
U   wip/flexmenu.bas
U   wip/game.bas
U   wip/loading.bas
U   wip/loading.bi
U   wip/mapsubs.bas
U   wip/moresubs.bas
U   wip/udts.bi
U   wip/uiconst.bi
U   wip/util.bas
U   wip/util.bi
U   wip/whatsnew.txt



More information about the Ohrrpgce mailing list