Added new top alignment feature for dialogs.

This commit is contained in:
Luis C.M committed 2023-06-07 18:11:26 -05:00
1 parent 5e1fdce39b
commit e0375c251e
2 files changed
+38 -7

No files matched your search

@@ -38,6 +38,7 @@ public class Dialog implements ICompatibilty, IDialog {
public boolean disableEsc = false;
public boolean darkenScreen = true;
public boolean showOptionLine = true;
public boolean bottomAligned = false;
public boolean renderGradual = false;
public boolean showPreviousBlocks = true;
@@ -96,6 +97,8 @@ public class Dialog implements ICompatibilty, IDialog {
darkenScreen = true;
}
bottomAligned = compound.getBoolean("DialogScrollUpwards");
NBTTagList options = compound.getTagList("Options", 10);
HashMap<Integer,DialogOption> newoptions = new HashMap<Integer,DialogOption>();