class

PointClickEngine::UI::ConfigurationManager

Inherits Reference < Object

Manages game configuration and settings

The ConfigurationManager handles all configuration-related functionality including:

  • Resolution and display settings
  • Audio volume controls
  • Game preferences and options
  • Configuration persistence and loading

Constructors

Instance methods

available_difficulties
Source
available_difficulties=(available_difficulties : Array(String))
Source
available_languages
Source
available_languages=(available_languages : Array(String))
Source
available_resolutions

Available options

Source
available_resolutions=(available_resolutions : Array(Resolution))

Available options

Source
config

Current configuration

Source
config=(config : ConfigData)

Current configuration

Source
config_file_path

Configuration file path

Source
config_file_path=(config_file_path : String)

Configuration file path

Source
config_version
Source
config_version=(config_version : Int32)
Source
get_config_summary

Gets configuration summary for display

Source
get_resolution_index

Gets current resolution index

Source
get_setting(key : String) : String

Gets configuration value by key

Source
has_unsaved_changes

Change tracking

Source
has_unsaved_changes=(has_unsaved_changes : Bool)

Change tracking

Source
load_configuration

Loads configuration from file

Source
on_resolution_changed

Callbacks for configuration changes

Source
on_resolution_changed=(on_resolution_changed : Proc(Resolution, Nil) | Nil)

Callbacks for configuration changes

Source
on_setting_changed
Source
on_setting_changed=(on_setting_changed : Proc(String, String, Nil) | Nil)
Source
on_volume_changed
Source
on_volume_changed=(on_volume_changed : Proc(String, Float32, Nil) | Nil)
Source
reset_category_to_defaults(category : ConfigCategory)

Resets specific category to defaults

Source
reset_to_defaults

Resets to default configuration

Source
save_configuration

Saves configuration to file

Source
set_auto_save(enabled : Bool)

Sets auto save setting

Source
set_difficulty(difficulty : String)

Sets difficulty level

Source
set_fullscreen(fullscreen : Bool)

Sets fullscreen mode

Source
set_language(language : String)

Sets language

Source
set_master_volume(volume : Float32)

Sets master volume

Source
set_music_volume(volume : Float32)

Sets music volume

Source
set_resolution(resolution : Resolution)

Sets display resolution

Source
set_resolution_by_index(index : Int32)

Sets display resolution by index

Source
set_sfx_volume(volume : Float32)

Sets SFX volume

Source
set_text_speed(speed : Float32)

Sets text speed

Source
set_voice_volume(volume : Float32)

Sets voice volume

Source
set_vsync(vsync : Bool)

Sets VSync

Source
validate_configuration

Validates current configuration

Source

Nested types