mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 23:54:31 +00:00
Limited config NpcNavRange to 96. Added darken screen option to dialogs.
This commit is contained in:
1 parent
6a6548845b
commit
4f38edc147
4 files changed
+13
-1
No files matched your search
@@ -55,6 +55,9 @@ public class SubGuiNpcDialogExtra extends SubGuiInterface implements ISubGuiList
|
||||
|
||||
addButton(new GuiNpcButtonYesNo(15, guiLeft + 120, y += 22, dialog.disableEsc));
|
||||
addLabel(new GuiNpcLabel(15, "dialog.disableEsc", guiLeft + 4, y + 5));
|
||||
|
||||
addButton(new GuiNpcButtonYesNo(16, guiLeft + 120, y += 22, dialog.darkenScreen));
|
||||
addLabel(new GuiNpcLabel(16, "Darken Screen", guiLeft + 4, y + 5));
|
||||
|
||||
this.addButton(new GuiNpcButton(66, guiLeft + 82, guiTop + 192,98, 20, "gui.done"));
|
||||
|
||||
@@ -76,6 +79,9 @@ public class SubGuiNpcDialogExtra extends SubGuiInterface implements ISubGuiList
|
||||
if(button.id == 15){
|
||||
dialog.disableEsc = button.getValue() == 1;
|
||||
}
|
||||
if(button.id == 15){
|
||||
dialog.darkenScreen = button.getValue() == 1;
|
||||
}
|
||||
if(button.id == 13){
|
||||
setSubGui(new SubGuiMailmanSendSetup(dialog.mail, getParent()));
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
|
||||
grabMouse(dialog.showWheel);
|
||||
guiTop = (height - ySize);
|
||||
calculateRowHeight();
|
||||
this.drawDefaultBackground = dialog.darkenScreen;
|
||||
}
|
||||
|
||||
public void grabMouse(boolean grab){
|
||||
|
||||
Reference in new issue
Block a user