Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowServer committed Jun 5, 2024
2 parents 136a8f0 + dd55984 commit 982c611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Message: The content that will be displayed on player's screen.
3. Showing hints by using PlayerUI
PlayerUI is an easier way to show hints to a player. It contains common hints, UI, and player effects (not finished). Common hints represent the hints that are commonly used in the plugins. This includes map hints, role hints, item hints, and other hints. This is an example of how to show a common hint to a player.
```csharp
var playerUI = playerUI.Get(player);
var playerUI = PlayerUI.Get(player);
playerUI.ShowOtherHint("HelloWorld!");
playerUI.ShowMapHint("RoomA", "This is room A");
playerUI.ShowRoleHint("CustomRole", description.split("\n"));
Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ HintAlignment: 代表了Hint的水平座标,可以将其放在左侧,右侧
Message: Hint显示的内容
3. 通过PlayerUI展示Hint
```csharp
var playerUI = playerUI.Get(player);
var playerUI = PlayerUI.Get(player);
playerUI.ShowOtherHint("HelloWorld!");
playerUI.ShowMapHint("RoomA", "This is room A");
playerUI.ShowRoleHint("CustomRole", description.split("\n"));
Expand Down

0 comments on commit 982c611

Please sign in to comment.