SC_StringInputBox

Usage

int SC_StringInputBox( string &str, int MaxLen, string &caption)


Summary

Displays a string input dialog box.


More Information

Use this function to get a string of text from the user.

Returns 1 if OK was pressed or 0 if the box was cancelled.


Example

string name;
name = "";
if( SC_StringInputBox( name, 30, "Enter your name"))
{
    SC_GameMessage( "Your name is " + name);
}
else
{
    SC_GameMessage( "You pressed Cancel");
}


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 by James Bunting
www.jbgames.com/games/rod3d/

This page was automatically generated by jbgames Script Docs Generator