Settings

This interface is provided to access Tacview configuration. If you want to save and load settings for your own addon, see AddOns.Current.Settings

Settings.SetBoolean( settingPath, newBooleanValue )

Tacview 1.7.2

Save a Boolean setting under the given name.

settingPath can be one of the following:

  • "UI.View.Grid.Visible" – Enable/disable latitude/longitude grid
  • "UI.View.HUD.Visible" – Enable/disable cockpit head-up-display
  • "UI.View.Overlay.Visible" – Enable/disable all the informations displayed on top of the 3D view
  • "UI.View.Camera.Dogfight.Enabled" – Enable/disable dogfight camera mode (when in external view)

Settings.GetBoolean( settingFullPath )

Tacview 1.7.2

Returns the current setting value or nil if the provided path does not point to a boolean setting. See Settings.SetBoolean for the possible values of settingFullPath.

Return value: corresponding setting boolean value.

Settings.SetString( settingFullPath , newStringValue )

Tacview 1.7.2

Save a string setting under the given name.

settingFullPath and newStringValue can be one of the following:

  • "UI.View.Terrain.Mode" – Change the way the terrain is displayed in the 3D view
  • "Empty"
  • "Flat"
  • "3D"
  • "Full3D"

  • "UI.View.Camera.Mode" – Change camera mode

  • "Cockpit"

  • "External"

  • "Satellite"

  • "Free"

  • "UI.View.Camera.Dogfight.Mode" – Change dogfight camera mode (active only when "UI.View.Camera.Mode" == "External" and "UI.View.Camera.Dogfight.Enabled" == true)

  • "Centered"

  • "LookAt"

  • "LookForward"

Settings.GetString( settingFullPath )

Tacview 1.7.2

Returns the current setting value or nil if the provided path does not point to a string setting. See Settings.SetString for the possible values of settingFullPath.

Return value: corresponding setting string value.