NavigationUser login |
Message BoxThe 3D mud client can display a message box that contains text from the mud. For example when person reads a book on the mud it can use the messagebox. The following is an example of help text from the mud: The mud can specify some aspects of the messagebox such as the font name, the font size, color and width. This is the same message box with a black font and grey background: The messagebox starts with 'bv' characters with subtags 3d tags. For example the following mud text: {bv,tHelp for topic 'Skills', Every player starts with 3 skills - offense, defence, dodge. These will display the following messagebox: The 't' subtag indicates the title of the messagebox. The first new line starting with the subtag 'b' is the body of the messagebox. It is also possible to include buttons at at the base of a message box. For example the following newspaper has page scrolling buttons: This is specified in the 3d tags with brackets where each bracket is a button. The t subtag of the bracket gives the title of the button while the subtag c of the bracket is the mud command to execute when the button is clicked. The when the person presses the '>' button the player will 'read book of revelations 3' ie page 3 of book of revelations. {bv,(t< Page,cread book of revelations 1), Other subtags include width and height (pw & ph) and font face (fn) SWLPC uses the threed query_messagebox function to display a messagebox. |