mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 01:45:07 +00:00
Server-side dialog data fixes.
This commit is contained in:
1 parent
799d54a4dc
commit
c99a4f8439
3 files changed
+18
-8
No files matched your search
+2
-2
@@ -15,7 +15,7 @@ import noppes.npcs.controllers.data.DialogImage;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
public class SubGuiNpcVisualOptions extends SubGuiInterface implements ISubGuiListener, ITextfieldListener, ICustomScrollListener {
|
||||
public class SubGuiNpcDialogVisual extends SubGuiInterface implements ISubGuiListener, ITextfieldListener, ICustomScrollListener {
|
||||
private final Dialog dialog;
|
||||
public GuiScreen parent2;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class SubGuiNpcVisualOptions extends SubGuiInterface implements ISubGuiLi
|
||||
private int selected = -1;
|
||||
private int lastColorClicked = -1;
|
||||
|
||||
public SubGuiNpcVisualOptions(Dialog dialog, GuiScreen parent) {
|
||||
public SubGuiNpcDialogVisual(Dialog dialog, GuiScreen parent) {
|
||||
this.parent2 = parent;
|
||||
this.dialog = dialog;
|
||||
setBackground("menubg.png");
|
||||
@@ -182,7 +182,7 @@ public class GuiNPCManageDialogs extends GuiNPCInterface2 implements IScrollData
|
||||
setSubGui(new SubGuiNpcDialogExtra(dialog, this));
|
||||
}
|
||||
if(id == 11){
|
||||
setSubGui(new SubGuiNpcVisualOptions(dialog, this));
|
||||
setSubGui(new SubGuiNpcDialogVisual(dialog, this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,11 +34,6 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
public boolean disableEsc = false;
|
||||
public boolean darkenScreen = true;
|
||||
|
||||
|
||||
/**
|
||||
* Add these variables to NBT reads & writes
|
||||
*/
|
||||
|
||||
public boolean renderGradual = false;
|
||||
public boolean showPreviousBlocks = true;
|
||||
|
||||
@@ -229,6 +224,21 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
dialog.showWheel = showWheel;
|
||||
dialog.disableEsc = disableEsc;
|
||||
dialog.darkenScreen = darkenScreen;
|
||||
dialog.renderGradual = renderGradual;
|
||||
dialog.showPreviousBlocks = showPreviousBlocks;
|
||||
dialog.textSound = textSound;
|
||||
dialog.textPitch = textPitch;
|
||||
dialog.textWidth = textWidth;
|
||||
dialog.textHeight = textHeight;
|
||||
dialog.textOffsetX = textOffsetX;
|
||||
dialog.textOffsetY = textOffsetY;
|
||||
dialog.titleOffsetX = titleOffsetX;
|
||||
dialog.titleOffsetY = titleOffsetY;
|
||||
dialog.optionOffsetX = optionOffsetX;
|
||||
dialog.optionOffsetY = optionOffsetY;
|
||||
dialog.optionSpaceX = optionSpaceX;
|
||||
dialog.optionSpaceY = optionSpaceY;
|
||||
dialog.dialogImages = dialogImages;
|
||||
|
||||
for(int slot : options.keySet()){
|
||||
DialogOption option = options.get(slot);
|
||||
|
||||
Reference in new issue
Block a user