Interface IWukongWidgetApi
Namespace: WukongMp.Sdk.Api
Assembly: WukongMp.Sdk.dll
Provides methods related to in-game widgets, such as chat messages, info messages, tips, and timers.
public interface IWukongWidgetApi
Methodsâ
AddMessageToConsole(string)â
Adds a message to the in-game console.
void AddMessageToConsole(string message)
Parametersâ
message string
The message to add to the console.
HideInfoMessage()â
Hides the currently displayed informational message.
void HideInfoMessage()
HideTip()â
Hides the currently displayed tip.
void HideTip()
SetCountdownText(int, int)â
Sets the value of the countdown timer widget.
void SetCountdownText(int initialMinutes, int initialSeconds)
Parametersâ
initialMinutes int
The initial minutes to display on the countdown timer.
initialSeconds int
The initial seconds to display on the countdown timer.
SetCountdownVisibility(bool)â
Sets the visibility of the countdown timer widget.
void SetCountdownVisibility(bool visible)
Parametersâ
visible bool
Indicates whether the countdown timer should be visible.
ShowInGameWidgets(bool)â
Shows or hides in-game widgets based on whether the player is on the gameplay level.
void ShowInGameWidgets(bool isOnGameplayLevel)
Parametersâ
isOnGameplayLevel bool
Indicates whether the player is on a gameplay level.
ShowInfoMessage(string)â
Displays an informational message on the screen.
void ShowInfoMessage(string message)
Parametersâ
message string
The informational message to display.
ShowTip(string, bool)â
Displays a tip on the screen using the game UI tip widget.
void ShowTip(string tip, bool autoHide)
Parametersâ
tip string
The tip to display.
autoHide bool
Indicates whether the tip should automatically hide after a duration.
ToggleCommandVisibility()â
Toggles the visibility of the command console.
void ToggleCommandVisibility()