mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 09:09:08 +00:00
Made GuiNpcButtons with multiple displays i.e ("Hair","Eyes","Fur")
right clickable to select in reverse
This commit is contained in:
1 parent
ddee62f2ce
commit
93e6a92b59
5 files changed
+91
-3
No files matched your search
@@ -61,6 +61,8 @@ public class GuiButtonBiDirectional extends GuiNpcButton {
|
||||
boolean bo = super.mousePressed(minecraft, mouseX, mouseY);
|
||||
if (bo && display != null && display.length != 0) {
|
||||
boolean hoverL = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + 11 && mouseY < this.yPosition + this.height;
|
||||
if (rightClicked.get())
|
||||
hoverL = true;
|
||||
|
||||
boolean hoverR = !hoverL && mouseX >= this.xPosition + 11 && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height;
|
||||
|
||||
|
||||
Reference in new issue
Block a user