/// <summary> /// Sends a hint to the <see cref="Player"/>. /// </summary> /// <param name="player">The <see cref="Player"/> to send a hint to.</param> /// <param name="message">The message to show.</param> /// <param name="duration">The duration of the hint.</param> public static void SendHint(this Player player, string message, float duration = 3f) { HintParameter[] parameters = new HintParameter[] { new StringHintParameter(message), }; NetworkServer.SendToClientOfPlayer <HintMessage>(player.HintDisplay.netIdentity, new HintMessage(new TextHint(message, parameters, null, duration))); }
/// <summary> /// Queues a hint to be sent to the <see cref="Player"/>. /// </summary> /// <param name="player">The <see cref="Player"/> to queue the hint for.</param> /// <param name="message">The message to show.</param> /// <param name="duration">The duration of the hint.</param> /// <param name="priority">The priority of the hint.</param> /// <param name="disableOnDeath">Whether or not this hint will be removed from the queue or cleared on death.</param> /// <param name="overrideHint">Whether or not the hint should override the currently shown hint.</param> public static void QueueHint(this Player player, string message, float duration = 3f, int priority = 0, bool disableOnDeath = false, bool overrideHint = false) { try { HintParameter[] parameters = new HintParameter[] { new StringHintParameter(message), }; if (!QueuedHints.ContainsKey(player.Id)) { QueuedHints.Add(player.Id, new List <BetterHint>()); } QueuedHints[player.Id].AddSorted(new BetterHint(new TextHint(message, parameters, null, duration), priority, disableOnDeath, overrideHint)); }catch (Exception e) { Log.Error(e); } }
} // 0x00A8A680-0x00A8A6D0 protected virtual int _menuItemIndexOf(HintParameter item) => default; // 0x00A8A6D0-0x00A8A800
public string GetLanguageExt() => default; // 0x00A877F0-0x00A878A0 public void Init(HintParameter hint, Mode md = Mode.HintMenu /* Metadata: 0x006131FC */) { } // 0x00A878A0-0x00A88460
} // 0x00A88BA0-0x00A88BB0 // Methods public static UIHintDialog Create(HintParameter hint = null) => default; // 0x00A86A80-0x00A86D50
public bool GetKidokuFlag(string symbol) => default; // 0x008F1860-0x008F1900 public void SetKidokuFlag(HintParameter param, bool bEnable) { } // 0x008F1900-0x008F1980
} // 0x008F16E0-0x008F17F0 public bool GetKidokuFlag(HintParameter param) => default; // 0x008F17F0-0x008F1860
public bool CanMenuOpen(string symbol) => default; // 0x008F1390-0x008F1450 public bool IsOpened(HintParameter param) => default; // 0x008F1450-0x008F14C0
public bool CanExecute(string symbol) => default; // 0x008F1260-0x008F1320 public bool CanMenuOpen(HintParameter param) => default; // 0x008F1320-0x008F1390
} // 0x008F1180-0x008F11F0 public bool CanExecute(HintParameter param) => default; // 0x008F11F0-0x008F1260
private IEnumerator NoCheckAndExecuteDialog(HintParameter param) => default; // 0x008F10D0-0x008F1150 private void HintFlagUpdate(HintParameter param) { } // 0x008F1180-0x008F11F0
private IEnumerator CheckAndExecuteDialog(HintParameter param) => default; // 0x008F1020-0x008F10A0 // [IteratorStateMachine] // 0x00621ED0-0x00621F40 private IEnumerator NoCheckAndExecuteDialog(HintParameter param) => default; // 0x008F10D0-0x008F1150
} // 0x008F1B20-0x008F1B90 // Methods // [IteratorStateMachine] // 0x00621DF0-0x00621E60 private IEnumerator ExecuteDialog(HintParameter param, int nativeControlId) => default; // 0x008F0800-0x008F0880