Skip to content

Commit

Permalink
Add missing tooltips to the CommonPagedPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Sep 20, 2021
1 parent 23fc531 commit 8c9ddb1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ protected PanelItem getButton(CommonButtons button)
description.add(this.user.getTranslation(reference + "description",
Constants.PARAMETER_NUMBER, String.valueOf(this.pageIndex + 2)));

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-next"));

icon = new ItemStack(Material.OAK_SIGN, this.pageIndex + 2);
clickHandler = (panel, user, clickType, slot) ->
{
Expand All @@ -143,6 +146,9 @@ else if (button == CommonButtons.PREVIOUS)
description.add(this.user.getTranslation(reference + "description",
Constants.PARAMETER_NUMBER, String.valueOf(this.pageIndex)));

description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "click-to-previous"));

icon = new ItemStack(Material.OAK_SIGN, Math.max(1, this.pageIndex));
clickHandler = (panel, user, clickType, slot) ->
{
Expand Down

0 comments on commit 8c9ddb1

Please sign in to comment.