Click or drag to resize

LocalizableItemAttributedefaultTemplate Field

Template to use if no localized template found.

Namespace:  KSPDev.GUIUtils
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public string defaultTemplate
Request Example View Source

Field Value

Type: String
Examples
[KSPField(guiName = "just-in-case text", guiActive = true)]
[LocalizableItem(
    tag = "#tag1",
    defaultTemplate = "English text 1",
    description = "A field which demonstrates a localizable GUI string")]
public string field1 = "";

// This field doesn't have guiName and it would, normally, be treated as a non-GUI field. However,
// due to the localization attribute, the guiName value will be assigned when the module is
// loaded.
[KSPField(guiActive = true)]
[LocalizableItem(
    tag = "#tag2",
    defaultTemplate = "English text 2",
    description = "A field which demonstrates a localizable GUI string without guiName")]
public string field2 = "";
See Also