@@ -3020,9 +3020,36 @@ public void ThrowItem(Throwable throwable, bool fullForce = true)
30203020 /// <param name="message">The message to be shown.</param>
30213021 /// <param name="duration">The duration the text will be on screen.</param>
30223022 public void ShowHint ( string message , float duration = 3f )
3023+ {
3024+ ShowHint ( message , new HintParameter [ ] { new StringHintParameter ( message ) } , null , duration ) ;
3025+ }
3026+
3027+ /// <summary>
3028+ /// Shows a hint to the player with the specified message, hint effects, and duration.
3029+ /// </summary>
3030+ /// <param name="message">The message to be shown as a hint.</param>
3031+ /// <param name="hintEffects">The array of hint effects to apply.</param>
3032+ /// <param name="duration">The duration the hint will be displayed, in seconds.</param>
3033+ public void ShowHint ( string message , HintEffect [ ] hintEffects , float duration = 3f )
3034+ {
3035+ ShowHint ( message , new HintParameter [ ] { new StringHintParameter ( message ) } , hintEffects , duration ) ;
3036+ }
3037+
3038+ /// <summary>
3039+ /// Shows a hint to the player with the specified message, hint parameters, hint effects, and duration.
3040+ /// </summary>
3041+ /// <param name="message">The message to be shown as a hint.</param>
3042+ /// <param name="hintParameters">The array of hint parameters to use.</param>
3043+ /// <param name="hintEffects">The array of hint effects to apply.</param>
3044+ /// <param name="duration">The duration the hint will be displayed, in seconds.</param>
3045+ public void ShowHint ( string message , HintParameter [ ] hintParameters , HintEffect [ ] hintEffects , float duration = 3f )
30233046 {
30243047 message ??= string . Empty ;
3025- HintDisplay . Show ( new TextHint ( message , new HintParameter [ ] { new StringHintParameter ( message ) } , null , duration ) ) ;
3048+ HintDisplay . Show ( new TextHint (
3049+ message ,
3050+ ( ! hintParameters . IsEmpty ( ) ) ? hintParameters : new HintParameter [ ] { new StringHintParameter ( message ) } ,
3051+ hintEffects ,
3052+ duration ) ) ;
30263053 }
30273054
30283055 /// <summary>
0 commit comments