Skip to main content
Version: 0.2.1

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()
  • Methods
    • AddMessageToConsole(string)
    • HideInfoMessage()
    • HideTip()
    • SetCountdownText(int, int)
    • SetCountdownVisibility(bool)
    • ShowInGameWidgets(bool)
    • ShowInfoMessage(string)
    • ShowTip(string, bool)
    • ToggleCommandVisibility()