-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate ListEditEntryButtonType from WidgetVec3iListEditEntry
and use our i18n text Signed-off-by: Hendrix-Shen <[email protected]>
- Loading branch information
1 parent
6b6e507
commit 2bccdb8
Showing
4 changed files
with
45 additions
and
29 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...java/top/hendrixshen/magiclib/impl/malilib/config/gui/button/ListEditEntryButtonType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package top.hendrixshen.magiclib.impl.malilib.config.gui.button; | ||
|
||
import fi.dy.masa.malilib.gui.MaLiLibIcons; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import top.hendrixshen.magiclib.api.i18n.I18n; | ||
|
||
@AllArgsConstructor | ||
public enum ListEditEntryButtonType { | ||
ADD(MaLiLibIcons.PLUS, "magiclib.config.gui.button.hover_text.add"), | ||
REMOVE(MaLiLibIcons.MINUS, "magiclib.config.gui.button.hover_text.remove"), | ||
MOVE_UP(MaLiLibIcons.ARROW_UP, "magiclib.config.gui.button.hover_text.move_up"), | ||
MOVE_DOWN(MaLiLibIcons.ARROW_DOWN, "magiclib.config.gui.button.hover_text.move_down"); | ||
|
||
@Getter | ||
private final MaLiLibIcons icon; | ||
private final String hoverTextTrKey; | ||
|
||
public String getDisplayName() { | ||
return I18n.tr(this.hoverTextTrKey); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters