mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 13:07:29 +00:00
Changed alignment to a byte type, will add a centered alignment later.
This commit is contained in:
1 parent
8fe331d621
commit
327fa061cc
2 files changed
+8
-5
No files matched your search
@@ -38,7 +38,9 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
public boolean disableEsc = false;
|
||||
public boolean darkenScreen = true;
|
||||
public boolean showOptionLine = true;
|
||||
public boolean bottomAligned = false;
|
||||
|
||||
//0 - Top, 1 - Bottom, 2 (Not implemented yet) - Center
|
||||
public byte alignment = 0;
|
||||
|
||||
public boolean renderGradual = false;
|
||||
public boolean showPreviousBlocks = true;
|
||||
@@ -97,7 +99,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
darkenScreen = true;
|
||||
}
|
||||
|
||||
bottomAligned = compound.getBoolean("DialogScrollUpwards");
|
||||
alignment = compound.getByte("DialogAlignment");
|
||||
|
||||
|
||||
NBTTagList options = compound.getTagList("Options", 10);
|
||||
@@ -263,6 +265,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
dialog.renderGradual = renderGradual;
|
||||
dialog.showPreviousBlocks = showPreviousBlocks;
|
||||
dialog.showOptionLine = showOptionLine;
|
||||
dialog.alignment = alignment;
|
||||
dialog.textSound = textSound;
|
||||
dialog.textPitch = textPitch;
|
||||
dialog.textWidth = textWidth;
|
||||
|
||||
Reference in new issue
Block a user