Anonymous user
Creating Custom Save and Load Dialogs: Difference between revisions
Creating Custom Save and Load Dialogs (view source)
Revision as of 17:49, 6 September 2006
, 6 September 2006Load code - changed 'input' to 'loadName'; removed duplicated semicolons
*>CMK2901 |
(Load code - changed 'input' to 'loadName'; removed duplicated semicolons) |
||
Line 130: | Line 130: | ||
<code> | <code> | ||
int totalLoads = lstLoadGames.ItemCount | int totalLoads = lstLoadGames.ItemCount; //holds number of saves in the list | ||
String loadName = txtLoadName.Text | String loadName = txtLoadName.Text; //holds TXT for Save Name; from use | ||
//check that a name was entered to avoid problems | //check that a name was entered to avoid problems | ||
if( | if(loadName == "") | ||
{ | { | ||
Display("Please select a saved game to be loaded."); | Display("Please select a saved game to be loaded."); |