Click or drag to resize

StdSpecTagsUnits Field

Specialization for the KSPFieldguiUnits localization.

Namespace:  KSPDev.GUIUtils
Assembly:  KSPDev_Utils.2.3 (in KSPDev_Utils.2.3.dll) Version: 2.3 for KSP v1
Syntax
C#
public const string Units = "units"
Request Example View Source

Field Value

Type: String
Remarks
Use it when specifying a LocalizableItemAttribute for a field with the units.
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