NavigationUser login |
Caption PanelsParent : build Use query_panelcommand to display caption panels in the mud and generates caption panel 3d tags. This function is in threed. query_panelcommand is in the format: query_panelcommand(panel,command,command2,title,halign,valign,fontsize,width,height,state) with the following parameters: panel is the name of the panel (eg 'inv' for inventory) For example: The above example will generate tags that will add a single button called 'exchange voucher' to the caption panel that has a blank name. "o" signifies that the caption panel should be popped open. Another example where have an array of buttons: pnls=[ ]; write(THREED->query_panelclear("gaming")); Here specifies a caption panel with 14 buttons with the captions. You will notice the last two button in the array are made up of arrays themselves. The first element of the array is the button caption and the second is the command to perform. If no second element is specified then the caption and command are the same. query_panelclear will generate the tags needed to clear the panel called 'gaming' otherwise the buttons would be added on top any existing buttons that are in the 'gaming' panel. |