Fix Quest Type Dialog Selection

This commit is contained in:
Kam committed 2024-02-20 01:17:51 -05:00
1 parent 32aca44443
commit 69185de3f3
2 files changed
+17 -18

No files matched your search

@@ -26,15 +26,15 @@ public class GuiNPCDialogSelection extends GuiNPCInterface implements IScrollDat
title = "Select Dialog Category";
this.parent = parent;
this.dialog = dialog;
if(dialog >= 0){
Client.sendData(EnumPacketServer.DialogsGetFromDialog, dialog);
selectCategory = false;
title = "Select Dialog";
}else
Client.sendData(EnumPacketServer.DialogCategoriesGet, dialog);
if(parent instanceof GuiSelectionListener){
listener = (GuiSelectionListener) parent;
}
@@ -48,7 +48,6 @@ public class GuiNPCDialogSelection extends GuiNPCInterface implements IScrollDat
slot = new GuiNPCStringSlot(list,this,false,18);
slot.registerScrollButtons(4, 5);
this.addButton(new GuiNpcButton(2, width / 2 -100, height - 41,98, 20, "gui.back"));
this.addButton(new GuiNpcButton(4, width / 2 + 2, height - 41,98, 20, "gui.select"));
}
@@ -92,7 +91,7 @@ public class GuiNPCDialogSelection extends GuiNPCInterface implements IScrollDat
close();
NoppesUtil.openGUI(player, parent);
}
}
public void save() {
if(dialog >= 0){
@@ -113,7 +112,7 @@ public class GuiNPCDialogSelection extends GuiNPCInterface implements IScrollDat
@Override
public void setSelected(String selected) {
}