LocalizableItemAttributedefaultTemplate Field |
Namespace: KSPDev.GUIUtils
[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 = "";