Author Topic: SubSubSubMenu?  (Read 1384 times)

Offline Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
SubSubSubMenu?
« on: January 05, 2008, 03:43:46 PM »
How many levels of submenus (sp?) can one have? Can you go to SubSubSubMenu? I have been trying to neaten up my BC install by organizing ships by their era (ex. NX, TOS, etc) while maintaining their original submenus (sp?). Does BC recognize Sub(3x)Menu, or will I have to alter the original SubMenu mod code.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: SubSubSubMenu?
« Reply #1 on: January 05, 2008, 06:02:50 PM »
If you have V2 or later, then you can have as many submenu's as you like.
Just put them between [ ] and seperate each with a ,
for example:
Code: [Select]
["One", "Two", "Three"]You can assign that to both SubMenu and SubSubMenu, but if you want to keep it compatible with the original SubMenu (yeah, major oversight from my end), then just put the first level in SubMenu and the rest in SubSubMenu, or everything in SubSubMenu.

Of course (and here is the major oversight part) you can also put everything in SubMenu. But in V1 this will cause it to give you a BSOD.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: SubSubSubMenu?
« Reply #2 on: January 06, 2008, 09:21:03 PM »
That seems a lot easier than what I was doing, ex
Code: [Select]
SubMenu = 'TMP Ships'
SubSubMenu = 'Starforce Productions/ Outlance Shipyards'
SubSubSubMenu = 'etc'

So all I have to do is
Code: [Select]
SubMenu = ['TMP Ships' , 'Starforce Productions/ Outlance Shipyards' , 'etc']

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: SubSubSubMenu?
« Reply #3 on: January 07, 2008, 12:02:31 PM »
I'd actually suggest this:
Code: [Select]
SubMenu = ['TMP Ships' , 'Starforce Productions', 'Outlance Shipyards' , 'etc']But that might be me, since you can't possible put that much on a button/menu.
Although, considering it are mod group names, try to find another name.

But generally speaking, yes, that's the idea.
The example above would give you the following:
Code: [Select]
TMP Ships
  Starforce
    Outlance Shipyards
      etc
        Your ship
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.