TConfig Class

Unit: uConfig
System.TObject
  uConfig.TConfig
type TConfig = class(TObject)

The TConfig type exposes the following members.

Show:
 NameDescription
Create

Don't use the constructor, it's used only by the Current() method

Destroy

Don't use the destructor, it's for internal use only

Top
Show:
 NameDescription
BackgroundMusicOnOff

Start or stop the background music

BackgroundMusicVolume

Background music volume between 0 and 100

Language

The language you should use on screen and messages

SoundEffectsOnOff

Allow the sound effects

SoundEffectsVolume

Sound effects volume between 0 and 100

VirtualControlsOnOff

Show virtual controls on screen (for a virtual gamepad or other things on iOS/Android or other screens with touch capacity)

Top
Show:
 NameDescription
BeginUpdate

Use it to delay the saving of parameters if you have more than one to update at the same time.

Current

Return the instance to TConfig singleton

EndUpdate

Use the EndUpdate to Save pending changes since a BeginUpdate.

GetPath

Returns current path of the config file (directory+filename)

Top