diff --git a/Source/CombatExtended/CombatExtended/Things/Building_CIWS_CE.cs b/Source/CombatExtended/CombatExtended/Things/Building_CIWS_CE.cs index 58aaa7d84f..d6c9cfffc2 100644 --- a/Source/CombatExtended/CombatExtended/Things/Building_CIWS_CE.cs +++ b/Source/CombatExtended/CombatExtended/Things/Building_CIWS_CE.cs @@ -40,7 +40,7 @@ public override void ExposeData() base.ExposeData(); Scribe_Collections.Look(ref ignoredDefs, nameof(ignoredDefs)); } - + static Texture2D icon; public override IEnumerable GetGizmos() { foreach (var gizmo in base.GetGizmos()) @@ -50,6 +50,7 @@ public override IEnumerable GetGizmos() yield return new Command_Action() { action = () => Find.WindowStack.Add(new Dialog_ManageCIWSTargets(GunCompEq.AllVerbs.OfType().SelectMany(x => x.Props.AllTargets).Distinct().ToList(), ignoredDefs)), + icon = Building_CIWS_CE.icon ??= ContentFinder.Get("UI/Commands/LaunchReport"), defaultLabel = "Dialog_ManageCIWS".Translate(), }; } diff --git a/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSProjectile.cs b/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSProjectile.cs index 39554e571a..3c55baa83a 100644 --- a/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSProjectile.cs +++ b/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSProjectile.cs @@ -38,6 +38,7 @@ public class VerbProperties_CIWSProjectile : VerbProperties_CIWS public VerbProperties_CIWSProjectile() { this.verbClass = typeof(VerbCIWSProjectile); + this.holdFireIcon = "UI/Buttons/CE_CIWS_Projectile"; } public override bool Interceptable(ThingDef targetDef) => targetDef.projectile.speed < maximumSpeed && targetDef.projectile.flyOverhead && base.Interceptable(targetDef); public float maximumSpeed = 80; diff --git a/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSSkyfaller.cs b/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSSkyfaller.cs index c6767da0e6..52156b5600 100644 --- a/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSSkyfaller.cs +++ b/Source/CombatExtended/CombatExtended/Verbs/VerbCIWSSkyfaller.cs @@ -27,6 +27,7 @@ public class VerbProperties_CIWSSkyfaller : VerbProperties_CIWS public VerbProperties_CIWSSkyfaller() { this.verbClass = typeof(VerbCIWSSkyfaller); + this.holdFireIcon = "UI/Buttons/CE_CIWS_Skyfaller"; } protected override IEnumerable InitAllTargets() => DefDatabase.AllDefsListForReading.Where(x => (typeof(Skyfaller).IsAssignableFrom(x.thingClass) && typeof(IActiveDropPod).IsAssignableFrom(x.thingClass))); } diff --git a/Textures/UI/Buttons/CE_CIWS_Projectile.png b/Textures/UI/Buttons/CE_CIWS_Projectile.png new file mode 100644 index 0000000000..1ea0559107 Binary files /dev/null and b/Textures/UI/Buttons/CE_CIWS_Projectile.png differ diff --git a/Textures/UI/Buttons/CE_CIWS_Skyfaller.png b/Textures/UI/Buttons/CE_CIWS_Skyfaller.png new file mode 100644 index 0000000000..ae8106ffc2 Binary files /dev/null and b/Textures/UI/Buttons/CE_CIWS_Skyfaller.png differ