Difference between revisions of "User:Quetzilla/How to Use QZ Menus"
User:Quetzilla/How to Use QZ Menus (edit)
Revision as of 02:11, 17 January 2009
, 02:11, 17 January 2009→Things to Know
imported>Quetzilla |
imported>Quetzilla m (→Things to Know) |
||
Line 86: | Line 86: | ||
* MenuExit - this exits the current menu system entirely. If there is a MenuNode waiting in the queue, that MenuNode will take over. | * MenuExit - this exits the current menu system entirely. If there is a MenuNode waiting in the queue, that MenuNode will take over. | ||
* MenuBack - this returns to the previous menu node. This is useful if you have one particular node that you might want to access from lots of other nodes, but you need to be able to get back to the node that linked to it in the first place. | * MenuBack - this returns to the previous menu node. This is useful if you have one particular node that you might want to access from lots of other nodes, but you need to be able to get back to the node that linked to it in the first place. | ||
* MenuMore - this allows you to | * MenuMore - this allows you to get around the 10 button limit by providing a 'More' button, and requires a specially structured MenuNode. Basically, you set it up so that you have your Message at the top of the list as usual, followed by 10 objects to correspond to 10 buttons, but one of these buttons will be the MenuMore object. After these 10 buttons you then add ''another'' Message with button labels, followed by up to 10 associated objects. When the user presses the More button, it will simply display the second message and match the button presses to the second set of objects. You can continue using the MenuMore object to have as many buttons as you want in one node. The benefit of using this method is that you get to keep all of the objects in one list for better management, and the node is considered a single node for purposes of using MenuBack. | ||
One drawback of the QZ Menus system is that it doesn't support using variables in the message windows such as %f and %g. When FOSE adds string support, it will be possible to work around this by using scripted actions to directly set the message text as desired. | One drawback of the QZ Menus system is that it doesn't support using variables in the message windows such as %f and %g. When FOSE adds string support, it will be possible to work around this by using scripted actions to directly set the message text as desired. |