TConfig Class
Definition
Delphi
type TConfig = class(TObject)
- Inheritance
-
TObjectTConfig
Constructors
Properties
| 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) |
Methods
| 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. |
| GetParams |
Use this method to access to the settings storrage file/class in TConfig descendants. |
| GetPath |
Returns current path of the config file (directory+filename) |