Skip to content

Commit

Permalink
Add disp text values for AntennaCondition enum members.
Browse files Browse the repository at this point in the history
Needs KSPCF 1.36.0+ to actually apply.
  • Loading branch information
siimav committed Oct 13, 2024
1 parent d936df2 commit 72a916d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions GameData/RealAntennas/KSPCommunityFixes.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@KSP_COMMUNITY_FIXES:FOR[RealAntennas]
{
@ModUpgradePipeline = true
@KSPFieldEnumDesc = true
}
9 changes: 5 additions & 4 deletions src/RealAntennasProject/ModuleRealAntenna.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using UnityEngine;

Expand All @@ -9,10 +10,10 @@ namespace RealAntennas
[Flags]
public enum AntennaCondition
{
Enabled = 1 << 0,
Disabled = 1 << 1,
PermanentShutdown = 1 << 2,
Broken = 1 << 3
[Description("Enabled")] Enabled = 1 << 0,
[Description("Disabled")] Disabled = 1 << 1,
[Description("Permanently shutdown")] PermanentShutdown = 1 << 2,
[Description("Broken")] Broken = 1 << 3
}

public class ModuleRealAntenna : ModuleDataTransmitter, IPartCostModifier, IPartMassModifier
Expand Down

0 comments on commit 72a916d

Please sign in to comment.