This commit is contained in:
zeruth
2019-06-16 22:31:48 -04:00
parent 2e873af898
commit 39a9ae35ab
218 changed files with 16857 additions and 16879 deletions

View File

@@ -119,21 +119,22 @@ public final class Canvas extends java.awt.Canvas {
static int method861(int var0, Script var1, boolean var2) {
int var3;
int var4;
Widget var6;
if(var0 == 100) {
class179.Interpreter_intStackSize -= 3;
var3 = Interpreter.Interpreter_intStack[class179.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[class179.Interpreter_intStackSize + 1];
int var5 = Interpreter.Interpreter_intStack[class179.Interpreter_intStackSize + 2];
int var9 = Interpreter.Interpreter_intStack[class179.Interpreter_intStackSize + 2];
if(var4 == 0) {
throw new RuntimeException();
} else {
Widget var6 = Huffman.getWidget(var3);
var6 = Huffman.getWidget(var3);
if(var6.children == null) {
var6.children = new Widget[var5 + 1];
var6.children = new Widget[var9 + 1];
}
if(var6.children.length <= var5) {
Widget[] var7 = new Widget[var5 + 1];
if(var6.children.length <= var9) {
Widget[] var7 = new Widget[var9 + 1];
for(int var8 = 0; var8 < var6.children.length; ++var8) {
var7[var8] = var6.children[var8];
@@ -142,19 +143,19 @@ public final class Canvas extends java.awt.Canvas {
var6.children = var7;
}
if(var5 > 0 && var6.children[var5 - 1] == null) {
throw new RuntimeException("" + (var5 - 1));
if(var9 > 0 && var6.children[var9 - 1] == null) {
throw new RuntimeException("" + (var9 - 1));
} else {
Widget var12 = new Widget();
var12.type = var4;
var12.parentId = var12.id = var6.id;
var12.childIndex = var5;
var12.isIf3 = true;
var6.children[var5] = var12;
Widget var10 = new Widget();
var10.type = var4;
var10.parentId = var10.id = var6.id;
var10.childIndex = var9;
var10.isIf3 = true;
var6.children[var9] = var10;
if(var2) {
WorldMapIcon1.__t_i = var12;
WorldMapIcon1.__t_i = var10;
} else {
class12.__n_n = var12;
class12.__n_n = var10;
}
class22.method295(var6);
@@ -162,27 +163,27 @@ public final class Canvas extends java.awt.Canvas {
}
}
} else {
Widget var9;
Widget var5;
if(var0 == 101) {
var9 = var2?WorldMapIcon1.__t_i:class12.__n_n;
Widget var10 = Huffman.getWidget(var9.id);
var10.children[var9.childIndex] = null;
class22.method295(var10);
var5 = var2?WorldMapIcon1.__t_i:class12.__n_n;
var6 = Huffman.getWidget(var5.id);
var6.children[var5.childIndex] = null;
class22.method295(var6);
return 1;
} else if(var0 == 102) {
var9 = Huffman.getWidget(Interpreter.Interpreter_intStack[--class179.Interpreter_intStackSize]);
var9.children = null;
class22.method295(var9);
var5 = Huffman.getWidget(Interpreter.Interpreter_intStack[--class179.Interpreter_intStackSize]);
var5.children = null;
class22.method295(var5);
return 1;
} else if(var0 != 200) {
if(var0 == 201) {
var9 = Huffman.getWidget(Interpreter.Interpreter_intStack[--class179.Interpreter_intStackSize]);
if(var9 != null) {
var5 = Huffman.getWidget(Interpreter.Interpreter_intStack[--class179.Interpreter_intStackSize]);
if(var5 != null) {
Interpreter.Interpreter_intStack[++class179.Interpreter_intStackSize - 1] = 1;
if(var2) {
WorldMapIcon1.__t_i = var9;
WorldMapIcon1.__t_i = var5;
} else {
class12.__n_n = var9;
class12.__n_n = var5;
}
} else {
Interpreter.Interpreter_intStack[++class179.Interpreter_intStackSize - 1] = 0;
@@ -196,13 +197,13 @@ public final class Canvas extends java.awt.Canvas {
class179.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[class179.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[class179.Interpreter_intStackSize + 1];
Widget var11 = class204.getWidgetChild(var3, var4);
if(var11 != null && var4 != -1) {
var6 = class204.getWidgetChild(var3, var4);
if(var6 != null && var4 != -1) {
Interpreter.Interpreter_intStack[++class179.Interpreter_intStackSize - 1] = 1;
if(var2) {
WorldMapIcon1.__t_i = var11;
WorldMapIcon1.__t_i = var6;
} else {
class12.__n_n = var11;
class12.__n_n = var6;
}
} else {
Interpreter.Interpreter_intStack[++class179.Interpreter_intStackSize - 1] = 0;