public void OnHandHover(GUIHand hand) { if (_mono == null) { return; } var state = _mono.PowerManager.GetPowerState(); HandReticle main = HandReticle.main; #if DEBUG main.SetInteractText(SeaCookerBuildable.NoPowerAvailable()); #endif //QuickLogger.Debug($"PowerState: {state}"); if (state == FCSPowerStates.Unpowered) { main.SetIcon(HandReticle.IconType.Default); #if SUBNAUTICA main.SetInteractText(SeaCookerBuildable.NoPowerAvailable()); #elif BELOWZERO main.SetText(HandReticle.TextType.Hand, SeaCookerBuildable.NoPowerAvailable(), false); #endif } }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; main.SetInteractText(SubnauticaDeathMarker.InteractText); main.SetIcon(HandReticle.IconType.Hand); }
public void OnHandHover(GUIHand hand) { HandReticle reticle = HandReticle.main; if (!reticle) { return; } EnergyMixin mixin = shark.energyInterface.sources[0]; if (mixin.HasItem()) { if (mixin.charge > 0f) { isValidHandTarget = false; reticle.SetInteractText("Ion Cube", $"{Mathf.Round(mixin.charge / mixin.capacity * 100f)}% Remaining", false, false, HandReticle.Hand.None); } else { isValidHandTarget = true; reticle.SetInteractText("Ion Cube", $"Click to remove", false, false, HandReticle.Hand.Left); } } else { isValidHandTarget = true; reticle.SetInteractText("Insert Ion Cube", false, HandReticle.Hand.Left); } }
private void OnHover() { if (energyMixin.charge <= 0f) { return; } PDAScanner.ScanTarget scanTarget = PDAScanner.scanTarget; PDAScanner.UpdateTarget(scanDistance, false); if (!scanTarget.isValid) { return; } PDAScanner.Result result = PDAScanner.CanScan(); if (result == PDAScanner.Result.Scan) { HandReticle main = HandReticle.main; main.SetInteractText(scanTarget.techType.AsString(false), true, HandReticle.Hand.Left); main.SetIcon(HandReticle.IconType.Scan, 1.5f); if (stateCurrent == ScanState.Scan) { main.SetIcon(HandReticle.IconType.Progress, 4f); main.progressText.text = Mathf.RoundToInt(PDAScanner.scanTarget.progress * 100f) + "%"; SetProgressColor(Colors.Green); main.progressImage.fillAmount = Mathf.Clamp01(PDAScanner.scanTarget.progress); main.SetProgress(PDAScanner.scanTarget.progress); } } }
public static void Postfix(HandReticle __instance) { if (NoCrosshair.icons is null) { NoCrosshair.icons = __instance._icons; } }
private void OnHover(Constructable constructable) { if (isActive) { HandReticle main = HandReticle.main; if (constructable.constructed) { main.SetText(HandReticle.TextType.Hand, this.deconstructText, false); } else { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine(this.constructText); foreach (KeyValuePair <TechType, int> keyValuePair in constructable.GetRemainingResources()) { TechType key = keyValuePair.Key; string text = Language.main.Get(key); int value = keyValuePair.Value; if (value > 1) { stringBuilder.AppendLine(Language.main.GetFormat <string, int>("RequireMultipleFormat", text, value)); } else { stringBuilder.AppendLine(text); } } main.SetText(HandReticle.TextType.Hand, stringBuilder.ToString(), false); main.SetProgress(constructable.amount); main.SetIcon(HandReticle.IconType.Progress, 1.5f); } } }
public void OnHandHover(HandTargetEventData data) { HandReticle main = HandReticle.main; main.SetIcon(HandReticle.IconType.Hand, 1f); main.SetText(HandReticle.TextType.Hand, labelInteract, true, GameInput.Button.LeftHand); }
private void OnHover(BaseDeconstructable deconstructable) { if (isActive) { HandReticle main = HandReticle.main; main.SetText(HandReticle.TextType.Hand, this.deconstructText, false); } }
private void OnHover(BaseDeconstructable deconstructable) { if (isActive) { HandReticle main = HandReticle.main; main.SetInteractText(deconstructable.Name, this.deconstructText); } }
private void Update() { if (mouseHover) { HandReticle main = HandReticle.main; main.SetInteractText(CannonConfig.language_settings["Item_Name"]); } }
// Completely replaces the original OnHover method in the BaseBioReactor internal void OnHover() { HandReticle main = HandReticle.main; // All this is getting updated in Unity 2018 main.SetInteractText(Language.main.GetFormat("UseBaseBioReactor", this.CurrentPower, this.MaxPowerText), "Tooltip_UseBaseBioReactor", false, true, true); main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; main.SetText(HandReticle.TextType.Hand, "OpenStorage", true, GameInput.Button.LeftHand); //main.SetText(HandReticle.TextType.HandSubscript, string.Empty, false, GameInput.Button.None); main.SetText(HandReticle.TextType.HandSubscript, IsEmpty() ? "Empty" : string.Empty, true, GameInput.Button.None); HandReticle.main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { if (base.enabled) { HandReticle main = HandReticle.main; main.SetIcon(HandReticle.IconType.Hand, 1f); main.SetInteractText(m_UseSystemTime ? k_SetGameTime : k_SetSystemTime); } }
public void OnPointerExit() { if (Player.main.currentSub == control_instance.subroot) { HandReticle main = HandReticle.main; main.SetIcon(HandReticle.IconType.Default, 1f); mouseHover = false; } }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; #if SUBNAUTICA main.SetInteractText(AIPowerCellSocketBuildable.OnHover()); #elif BELOWZERO main.SetText(HandReticle.TextType.Hand, AIPowerCellSocketBuildable.OnHover(), false); #endif main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; #if SUBNAUTICA main.SetInteractText("Open MedBay Storage."); #elif BELOWZERO main.SetText(HandReticle.TextType.Hand, "Open MedBay Storage.", false); #endif main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; #if SUBNAUTICA main.SetInteractText("Climb Ladder"); #elif BELOWZERO main.SetText(HandReticle.TextType.Hand, "Climb Ladder", false); #endif main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; #if SUBNAUTICA main.SetInteractText(FCSDeepDrillerBuildable.OnBatteryHoverText()); #elif BELOWZERO main.SetText(HandReticle.TextType.Hand, FCSDeepDrillerBuildable.OnBatteryHoverText(), false); #endif main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; main.SetIcon(HandReticle.IconType.Default); #if SUBNAUTICA main.SetInteractText(_mono.PowerManager.GetSolarPowerData(), false, HandReticle.Hand.None); #elif BELOWZERO main.SetText(HandReticle.TextType.Hand, _mono.PowerManager.GetSolarPowerData(), false); #endif }
private bool TryDisplayNoPowerTooltip() { if (this.energyMixin.GetPower() <= 0f) { HandReticle main = HandReticle.main; main.SetText(HandReticle.TextType.Hand, this.noPowerText, false); main.SetIcon(HandReticle.IconType.Default, 1f); return(true); } return(false); }
private bool TryDisplayNoPowerTooltip() { if (this.energyMixin.charge <= 0f) { HandReticle main = HandReticle.main; main.SetInteractText(this.noPowerText, false, HandReticle.Hand.None); main.SetIcon(HandReticle.IconType.Default, 1f); return(true); } return(false); }
/// <summary> /// Called when the player hovers over the upgrade console. /// </summary> /// <param name="guiHand">The GUI hand.</param> /// <see cref="IHandTarget"/> public virtual void OnHandHover(GUIHand guiHand) { if (!this.Buildable.constructed) { return; } HandReticle main = HandReticle.main; main.SetInteractText(this.OnHoverText); main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { if (!WorldInstance.constructed) { return; } HandReticle main = HandReticle.main; main.SetInteractText("UseArmourStand"); main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand guiHand) { if (!Buildable.constructed) { return; } HandReticle main = HandReticle.main; main.SetInteractText(CyUpgradeConsole.OnHoverText); main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { HandReticle main = HandReticle.main; var state = PowerManager?.GetPowerState() == FCSPowerStates.Powered ? "On" : "Off"; #if SUBNAUTICA main.SetInteractTextRaw(Manager?.GetBaseName(), $"{AuxPatchers.Antenna()}: {state} || {AuxPatchers.PowerUsage()}: {PowerManager?.GetPowerUsage():F1}"); #elif BELOWZERO main.SetText(HandReticle.TextType.Info, Manager.GetBaseName(), false); #endif main.SetIcon(HandReticle.IconType.Info, 1f); }
private void OnHover(BaseDeconstructable deconstructable) { if (isActive) { HandReticle main = HandReticle.main; #if SN1 main.SetInteractText(deconstructable.Name, deconstructText); #elif BZ main.SetText(HandReticle.TextType.Hand, this.deconstructText, false); #endif } }
private static bool Prefix(HandReticle __instance, ref string text1, ref string text2) { if (config.HideToolControlsText) { text1 = String.Empty; } if (config.HideToolInfo) { text2 = String.Empty; } return(true); }
// Completely replaces the original OnHover method in the BaseBioReactor internal void OnHover() { HandReticle main = HandReticle.main; string text1 = Language.main.GetFormat("UseBaseBioReactor", this.CurrentPower, this.MaxPowerText); #if SUBNAUTICA main.SetInteractText(text1, "Tooltip_UseBaseBioReactor", false, true, HandReticle.Hand.Right); #elif BELOWZERO main.SetText(HandReticle.TextType.Hand, text1, false, GameInput.Button.LeftHand); main.SetText(HandReticle.TextType.HandSubscript, "Tooltip_UseBaseBioReactor", true); #endif main.SetIcon(HandReticle.IconType.Hand, 1f); }
public void OnHandHover(GUIHand hand) { if (_mono == null) { return; } if (ShowBeaconMessage()) { HandReticle main = HandReticle.main; main.SetIcon(HandReticle.IconType.Hand); main.SetInteractText($"Click to attach beacon", false, HandReticle.Hand.Right); } }
private bool TryDisplayNoPowerTooltip() { if (this.EnergyMixin.charge <= 0f) { HandReticle main = HandReticle.main; #if SN1 main.SetInteractText(noPowerText, false, HandReticle.Hand.None); #elif BZ main.SetText(HandReticle.TextType.Hand, this.noPowerText, true); #endif main.SetIcon(HandReticle.IconType.Default, 1f); return(true); } return(false); }