Class: SRDialog (of Dialog)

The SRDialog class is a dialog for saving/restoring games.

Properties

  • elements
  • size
  • text
  • window
  • theItem
  • nsTop
  • nsLeft
  • nsBottom
  • nsRight
  • time
  • busy
  • seconds
  • lastSeconds

Methods

  • bool init(string strDescription, string strBuf, heapPtr strPtrs)

    Initializes the Save/Restore dialog box. strDescription is name of the selected save game. It is set up to be the last used one. strBuf is an array of strings containing the names of the saved games. strPtrs is an array of pointers to the strings inn strBuf.

    It returns TRUE is successful, FALSE if not.

  • number doit(string strDescription)

    Executes the Save/Restore dialog. It returns the number of the save game if successful, otherwise, -1. The name of the saved game is stored in strDescription.