mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 13:25:10 +00:00
Added dialog option to show line above options.
This commit is contained in:
1 parent
84b7744023
commit
76106b1ea6
4 files changed
+16
-1
No files matched your search
@@ -72,6 +72,9 @@ public class SubGuiNpcDialogVisual extends SubGuiInterface implements ISubGuiLis
|
||||
addLabel(new GuiNpcLabel(16, "dialog.textPitch", guiLeft + 4, y + 5));
|
||||
getTextField(16).floatsOnly = true;
|
||||
}
|
||||
|
||||
addButton(new GuiNpcButton(17, guiLeft + 120, y += 22, 50, 20, new String[]{"display.hide", "display.show"}, dialog.showOptionLine ? 1 : 0));
|
||||
addLabel(new GuiNpcLabel(17, "dialog.optionLine", guiLeft + 4, y + 5));
|
||||
} else if (activeMenu == 2) {
|
||||
addTextField(new GuiNpcTextField(10, this, guiLeft + 120, y += 25, 40, 20, String.valueOf(dialog.textWidth)));
|
||||
addTextField(new GuiNpcTextField(11, this, guiLeft + 165, y, 40, 20, String.valueOf(dialog.textHeight)));
|
||||
@@ -264,6 +267,9 @@ public class SubGuiNpcDialogVisual extends SubGuiInterface implements ISubGuiLis
|
||||
if (button.id == 14) {
|
||||
dialog.showPreviousBlocks = button.getValue() == 1;
|
||||
}
|
||||
if (button.id == 17) {
|
||||
dialog.showOptionLine = button.getValue() == 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (activeMenu == 3) {
|
||||
|
||||
Reference in new issue
Block a user