Merge pull request 'Add Quick item change' (#132) from quick_item into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #132 Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Commit
0700ae4247
@ -3,6 +3,7 @@ ON=§aon
|
||||
OFF=§coff
|
||||
CHANGE=§7To change
|
||||
CLICK=§7Click
|
||||
CLICK_DRAG_ITEM=§7Click or drag item here
|
||||
CURRENT=§7Current: {0}
|
||||
CONFIRM=§aConfirm
|
||||
CANCEL=§cCancel
|
||||
|
@ -2,6 +2,7 @@ ON=§aAn
|
||||
OFF=§cAus
|
||||
CHANGE=§7Zum Ändern
|
||||
CLICK=§7anklicken
|
||||
CLICK_DRAG_ITEM=§7anklicken oder hier Item hineinlegen
|
||||
CURRENT=§7Aktuell: {0}
|
||||
CONFIRM=§aBestätigen
|
||||
CANCEL=§cAbbrechen
|
||||
|
@ -78,8 +78,13 @@ public class GUI {
|
||||
}
|
||||
Material mat = SWItem.getMaterial(node.getItem());
|
||||
|
||||
inv.setItem(node.isDir()?7:5, mat, SchematicSystem.MESSAGE.parse("GUI_INFO_MAT", player, mat.name()), Arrays.asList(SchematicSystem.MESSAGE.parse("CHANGE", player), SchematicSystem.MESSAGE.parse("CLICK", player)), false, click -> {
|
||||
changeItem(player, node, back);
|
||||
inv.setItemEvent(node.isDir()?7:5, mat, SchematicSystem.MESSAGE.parse("GUI_INFO_MAT", player, mat.name()), Arrays.asList(SchematicSystem.MESSAGE.parse("CHANGE", player), SchematicSystem.MESSAGE.parse("CLICK_DRAG_ITEM", player)), false, event -> {
|
||||
if(event.getCursor() != null && event.getCursor().getType() != Material.AIR) {
|
||||
node.setItem(event.getCursor().getType().name());
|
||||
info(player, node, back);
|
||||
} else {
|
||||
changeItem(player, node, back);
|
||||
}
|
||||
});
|
||||
if(!node.isDir()) {
|
||||
inv.setItem(6, node.getSchemtype().getMaterial(), SchematicSystem.MESSAGE.parse("GUI_INFO_TYPE", player, node.getSchemtype().name()), Arrays.asList(SchematicSystem.MESSAGE.parse("CHANGE", player), SchematicSystem.MESSAGE.parse("CLICK", player)), node.getSchemtype().fightType(), click -> {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren