-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nickcolour gui #115
base: main
Are you sure you want to change the base?
Nickcolour gui #115
Conversation
BLACK = generateItem("Black", NamedTextColor.BLACK, CustomHead.BLACK.asItemStack() ); | ||
DARK_BLUE = generateItem("Dark Blue", NamedTextColor.DARK_BLUE, CustomHead.DARK_BLUE.asItemStack() ); | ||
DARK_GREEN = generateItem("Dark Green", NamedTextColor.DARK_GREEN, CustomHead.DARK_GREEN.asItemStack() ); | ||
DARK_AQUA = generateItem("Dark Aqua", NamedTextColor.DARK_AQUA, CustomHead.DARK_AQUA.asItemStack() ); | ||
DARK_RED = generateItem("Dark Red", NamedTextColor.DARK_RED, CustomHead.DARK_RED.asItemStack() ); | ||
DARK_PURPLE = generateItem("Dark Purple", NamedTextColor.DARK_PURPLE, CustomHead.DARK_PURPLE.asItemStack() ); | ||
GOLD = generateItem("Gold", NamedTextColor.GOLD, CustomHead.GOLD.asItemStack() ); | ||
GRAY = generateItem("Gray", NamedTextColor.GRAY, CustomHead.GRAY.asItemStack() ); | ||
DARK_GRAY = generateItem("Dark Gray", NamedTextColor.DARK_GRAY, CustomHead.DARK_GRAY.asItemStack() ); | ||
BLUE = generateItem("Blue", NamedTextColor.BLUE, CustomHead.BLUE.asItemStack() ); | ||
GREEN = generateItem("Green", NamedTextColor.GREEN, CustomHead.GREEN.asItemStack() ); | ||
AQUA = generateItem("Aqua", NamedTextColor.AQUA, CustomHead.AQUA.asItemStack() ); | ||
RED = generateItem("Red", NamedTextColor.RED, CustomHead.RED.asItemStack() ); | ||
LIGHT_PURPLE = generateItem("Light Purple", NamedTextColor.LIGHT_PURPLE, CustomHead.LIGHT_PURPLE.asItemStack() ); | ||
YELLOW = generateItem("Yellow", NamedTextColor.YELLOW, CustomHead.YELLOW.asItemStack() ); | ||
WHITE = generateItem("White", NamedTextColor.WHITE, CustomHead.WHITE.asItemStack() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While every button and label uses admin-set messages, I'm not sure that it should be done for these, as they're the vanilla names. If we were to add customisable names for these, I'm not sure how that should be implemented in a way that works nicely since having
Args0 GUI_NICK_COLOR_BLACK = () -> ...
for each colour would be a lot of extra clutter, especially if they aren't changed by the server admin.
Alternatively, we could change them to be black
, dark_blue
, etc. like the vanilla names are.
Add a GUI for
/nickcolor
with no arguments.This should resolve #50.
This PR adds a GuiManager class that manages GUIs (shocking, I know). It is accessible through
HexNicks.guis()
and handles all click events, and GUIs for the plugin. I tried to implement it in such a way that one can add GUIs in the future with ease.