Creating Custom Save and Load Dialogs: Difference between revisions

Load 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;; //holds number of saves in the list
   int totalLoads = lstLoadGames.ItemCount; //holds number of saves in the list
   String loadName = txtLoadName.Text;; //holds TXT for Save Name; from use
   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(input == "")  
   if(loadName == "")  
   {
   {
     Display("Please select a saved game to be loaded.");
     Display("Please select a saved game to be loaded.");
Anonymous user