mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 23:37:32 +00:00
Distribute Button Info
This commit is contained in:
1 parent
e85c4c9259
commit
a8f5fd3b87
3 files changed
+8
-3
No files matched your search
@@ -434,11 +434,12 @@ public class SubGuiPlayerData extends SubGuiInterface implements IPlayerDataInfo
|
||||
addButton(new GuiNpcButton(70, arrowX, addY, arrowWidth, arrowHeight, ">"));
|
||||
addButton(new GuiNpcButton(71, arrowX, removeY, arrowWidth, arrowHeight, "<"));
|
||||
|
||||
// Standardize button: evenly distribute 1.0 amongst all selected magics.
|
||||
// Distribute button: evenly distribute 1.0 amongst all selected magics.
|
||||
int stdWidth = 80, stdHeight = 20;
|
||||
int stdX = paddedLeft;
|
||||
int stdY = guiTop + ySize - stdHeight - 6;
|
||||
addButton(new GuiNpcButton(72, stdX, stdY + 4, stdWidth, stdHeight, "Standardize"));
|
||||
addButton(new GuiNpcButton(72, stdX, stdY + 4, stdWidth, stdHeight, "magic.distribute"));
|
||||
getButton(72).setHoverText("magic.distInfo");
|
||||
|
||||
// If a magic is selected in the right scroll, add text fields for split and damage.
|
||||
int tfY = getTextFieldY();
|
||||
|
||||
@@ -72,7 +72,8 @@ public class GuiNPCMagic extends GuiNPCInterface2 implements IScrollData, ICusto
|
||||
addButton(new GuiNpcButton(71, guiLeft + 185, guiTop + 112, 55, 20, "<")); // Remove
|
||||
|
||||
// Standardize button: evenly distribute split value among all magic entries.
|
||||
addButton(new GuiNpcButton(72, guiLeft + 185, guiTop + 140, 55, 20, "Std"));
|
||||
addButton(new GuiNpcButton(72, guiLeft + 185, guiTop + 140, 55, 20, "magic.dist"));
|
||||
getButton(72).setHoverText("magic.distInfo");
|
||||
|
||||
// Add Split and Bonus Damage text fields.
|
||||
int tfY = guiTop + 24 + 155;
|
||||
|
||||
Reference in new issue
Block a user