public static void UIKeyTips_UpdateTipDesiredState_Prefix(ref UIKeyTips __instance, ref List <UIKeyTipNode> ___allTips) { if (tooltips.Count == 0) { allTips = ___allTips; tooltips.Add("toggle-build", __instance.RegisterTip("L-ALT", "Toggle multiBuild mode")); tooltips.Add("increase-spacing", __instance.RegisterTip("+", "Increase space between copies")); tooltips.Add("decrease-spacing", __instance.RegisterTip("-", "Decrease space between copies")); tooltips.Add("rotate-path", __instance.RegisterTip("Z", "Rotate build path")); } tooltips["toggle-build"].desired = IsMultiBuildAvailable(); tooltips["rotate-path"].desired = tooltips["decrease-spacing"].desired = tooltips["increase-spacing"].desired = IsMultiBuildRunning(); }
public static void UIKeyTips_UpdateTipDesiredState_Prefix(ref UIKeyTips __instance, ref List <UIKeyTipNode> ___allTips) { if (tooltips.Count == 0) { allTips = ___allTips; tooltips.Add("toggle-destruct", __instance.RegisterTip("L-ALT", "Toggle MultiDestruct mode")); tooltips.Add("increase-area", __instance.RegisterTip("+", "Increase delete area")); tooltips.Add("decrease-area", __instance.RegisterTip("-", "Decrease delete area")); tooltips.Add("change-filter", __instance.RegisterTip("TAB", "Change destruct filter")); } tooltips["toggle-destruct"].desired = IsMultiDestructAvailable(); tooltips["change-filter"].desired = tooltips["decrease-area"].desired = tooltips["increase-area"].desired = IsMultiDestructRunning(); }
public static void UIKeyTips_UpdateTipDesiredState_Prefix(UIKeyTips __instance, ref List <UIKeyTipNode> ___allTips) { if (!tip) { allTips = ___allTips; tip = __instance.RegisterTip("TAB", "Toggle inserters copy"); } tip.desired = IsCopyAvailable(); }
public static void UpdateTipDesiredStatePatch(UIKeyTips __instance, ref List <UIKeyTipNode> ___allTips) { if (!tipBuildToggle) { allTips = ___allTips; tipBuildToggle = __instance.RegisterTip("ALT", "Toggle repeated build"); tipBuildPlus = __instance.RegisterTip("+", "Increase build gap"); tipBuildMinus = __instance.RegisterTip("-", "Decrease build gap"); tipDestructPlus = __instance.RegisterTip("+", "Increase area"); tipDestructMinus = __instance.RegisterTip("-", "Decrease area"); } int mode = pc.cmd.mode; tipBuildToggle.desired = UIGame.viewMode == EViewMode.Build && mode >= 0; tipBuildPlus.desired = UIGame.viewMode == EViewMode.Build && mode >= 0 && BuildPatch.begin; tipBuildMinus.desired = UIGame.viewMode == EViewMode.Build && mode >= 0 && BuildPatch.begin; tipDestructPlus.desired = UIGame.viewMode == EViewMode.Build && mode == -1; tipDestructMinus.desired = UIGame.viewMode == EViewMode.Build && mode == -1; }
public static void UIKeyTips_UpdateTipDesiredState_Prefix(ref UIKeyTips __instance, ref List <UIKeyTipNode> ___allTips) { if (tooltips.Count == 0) { allTips = ___allTips; tooltips.Add("toggle-build", __instance.RegisterTip("L-ALT", "Toggle multiBuild mode")); tooltips.Add("toggle-inserters", __instance.RegisterTip("TAB", "Toggle inserters copy")); tooltips.Add("increase-spacing", __instance.RegisterTip("+", "Increase space between copies")); tooltips.Add("decrease-spacing", __instance.RegisterTip("-", "Decrease space between copies")); tooltips.Add("increase-period", __instance.RegisterTip("CTRL", "+", "Increase spacing period")); tooltips.Add("decrease-period", __instance.RegisterTip("CTRL", "-", "Decrease spacing period")); tooltips.Add("zero-spacing", __instance.RegisterTip("0", "Reset space between copies")); tooltips.Add("rotate-path", __instance.RegisterTip("Z", "Rotate build path")); tooltips.Add("increase-radius", __instance.RegisterTip("+", "Increase selection area")); tooltips.Add("decrease-radius", __instance.RegisterTip("-", "Decrease selection area")); tooltips.Add("bp-select", __instance.RegisterTip(0, "Add building to blueprint")); tooltips.Add("bp-deselect", __instance.RegisterTip("CTRL", 0, "Remove building from blueprint")); } tooltips["toggle-build"].desired = tooltips["toggle-inserters"].desired = IsMultiBuildAvailable(); tooltips["rotate-path"].desired = tooltips["zero-spacing"].desired = tooltips["decrease-spacing"].desired = tooltips["increase-spacing"].desired = tooltips["decrease-period"].desired = tooltips["increase-period"].desired = IsMultiBuildRunning(); tooltips["increase-radius"].desired = tooltips["decrease-radius"].desired = tooltips["bp-select"].desired = tooltips["bp-deselect"].desired = BlueprintCreator.bpMode; }