Click or drag to resize

LocalizableItemAttributespec Field

A key to distinguish attributes when there are multiple of them attached to a member.

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 spec
Request Example View Source

Field Value

Type: String
Remarks
The meaning of this key depends on the attributed member.
Examples
[KSPField(guiName = "just-in-case text", guiUnits = "just-in-case units", guiActive = true)]
[LocalizableItem(
    tag = "#tag1",
    defaultTemplate = "English text 1",
    description = "A field which demonstrates a localizable GUI string")]
[LocalizableItem(
    tag = DistanceType.MeterLocTag,
    spec = StdSpecTags.Units,
    defaultTemplate = "meters",
    description = "Units for the field which demonstrates a localizable GUI string")]
public string field3 = "";
See Also