Skip to content

Commit

Permalink
Add message of preview mode into language files
Browse files Browse the repository at this point in the history
  • Loading branch information
jyhsu2000 committed Apr 5, 2019
1 parent af84e75 commit fd83f3d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public CustomGUIInventory build(final Player player) {
boolean isInSimplePreviewMode = playerData.isInSimplePreviewMode();
//預覽模式切換按鈕
final KItemStack previewDye = new KItemStack(DyeColorUtil.toDyeMaterial(selectedColor))
.name(ChatColor.BLUE + "Selected pattern color")
.lore(ChatColor.GREEN + "Toggle preview mode");
.name(MessageUtil.format("&9"+tl("gui.selected-pattern-color")))
.lore(MessageUtil.format("&e[" + tl("gui.click.left") + "] &a" + tl("gui.toggle-preview-mode")));
menu.setClickableItem(18, previewDye).set(ClickType.LEFT, event -> {
playerData.setInSimplePreviewMode(!isInSimplePreviewMode);
CustomGUIManager.openPrevious(player);
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/language/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ gui:
click:
left: Left Click
right: Right Click
selected-pattern-color: Selected pattern color
toggle-preview-mode: Toggle preview mode
2 changes: 2 additions & 0 deletions src/main/resources/language/zh-cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ gui:
click:
left: 左键
right: 右键
selected-pattern-color: 已选择图形颜色
toggle-preview-mode: 切换预览模式
2 changes: 2 additions & 0 deletions src/main/resources/language/zh-tw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ gui:
click:
left: 左鍵
right: 右鍵
selected-pattern-color: 已選擇圖形顏色
toggle-preview-mode: 切換預覽模式

0 comments on commit fd83f3d

Please sign in to comment.