NavigationUser login |
Edit BoxAn edit box is one of the types of boxes provided by the box 3d tag. It allows a player to submit text to the mud for things such as sending a mud mail or writing a newspaper article: Editboxs use the be 3d tag. In the above editbox represented in the screenshot would use the following 3dtags (excluding the story written in the edit box): {be,tWrite your newspaper article:,cs**,cc~q,ss} Like the message box the boxes title, width, font name can be specified so that the look of the edit box can changed. The ,ss subtag indicates that a subject line is displayed in the edit box. The editbox has a 'send' and 'cancel' button at the bottom of the box as you can see in the screenshot. In the above 3d tag example is has the sub tags 'cs**,cc~q'. 'cs**' is the subtag for send and indicates that it will send the string '**' to the mud when the text is posted to the mud. In the above example when a player presses send all the text is posted to the mud and when complete the '**' string is sent. The telnet element of the config file has a 'editboxlinewait' attribute which specifies time in ms before it sends the next line of text to the mud from the editbox. If the player presses 'cancel' then the '~q' command would be sent to the mud to tell the mud that the player can cancelled sending the text. The query_editbox function in threed is used to display an editbox. |