public static void EnhanceStockAllowToggle(Command_Toggle toggle)
        {
            var standInDesignator = toggle.isActive() ? allowDesignatorStandIn : forbidDesignatorStandIn;

            DesignatorContextMenuController.RegisterReverseDesignatorPair(standInDesignator, toggle);
            AddIconReplacementSupport(toggle, standInDesignator);
        }
예제 #2
0
 private static void DisableCommandIfNotActivated(Pawn_DraftController __instance, Command_Toggle toggleCommand)
 {
     if (toggleCommand.isActive() && !__instance.pawn.IsActivated())
     {
         __instance.Drafted = false;
     }
 }
예제 #3
0
        public override bool InheritInteractionsFrom(Gizmo other)
        {
            Command_Toggle command_Toggle = other as Command_Toggle;

            return(command_Toggle != null && command_Toggle.isActive() == this.isActive());
        }