Toadwart
June 24th, 2007, 04:03
<https://www.fantasygrounds.com/forums/showthread.php?t=6608&highlight=radial+menu>
The documentation for onMenuSelection and registerMenuItem seems to indicate that we can add multi-level menu items to the radial menu. However, I can't figure out how to add a second level.
This:
Code:
registerMenuItem("top","minimized_glow_icon",3);
registerMenuItem("sub1","minimized_glow_icon",1,3);
registerMenuItem("sub2","minimized_glow_icon",2,3);
only creates a single level with "sub2" sitting at position 2 and "top" at position 3 (position 1 is occupied by a system generated item)
and this:
Code:
registerMenuItem("top","minimized_glow_icon",3);
registerMenuItem("by sub1","minimized_glow_icon",3,1);
registerMenuItem("sub2","minimized_glow_icon",3,2);
only creates a single level with "sub3" sitting at position 3. Nothing else.
Is there a bug here or am I just not using the correct syntax?
The documentation for onMenuSelection and registerMenuItem seems to indicate that we can add multi-level menu items to the radial menu. However, I can't figure out how to add a second level.
This:
Code:
registerMenuItem("top","minimized_glow_icon",3);
registerMenuItem("sub1","minimized_glow_icon",1,3);
registerMenuItem("sub2","minimized_glow_icon",2,3);
only creates a single level with "sub2" sitting at position 2 and "top" at position 3 (position 1 is occupied by a system generated item)
and this:
Code:
registerMenuItem("top","minimized_glow_icon",3);
registerMenuItem("by sub1","minimized_glow_icon",3,1);
registerMenuItem("sub2","minimized_glow_icon",3,2);
only creates a single level with "sub3" sitting at position 3. Nothing else.
Is there a bug here or am I just not using the correct syntax?