project: rev 199
This commit is contained in:
@@ -2,48 +2,47 @@ import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("mk")
|
||||
@ObfuscatedName("nu")
|
||||
@Implements("FontName")
|
||||
public class FontName {
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmk;"
|
||||
descriptor = "Lnu;"
|
||||
)
|
||||
@Export("FontName_plain11")
|
||||
public static final FontName FontName_plain11;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmk;"
|
||||
descriptor = "Lnu;"
|
||||
)
|
||||
@Export("FontName_plain12")
|
||||
public static final FontName FontName_plain12;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmk;"
|
||||
descriptor = "Lnu;"
|
||||
)
|
||||
@Export("FontName_bold12")
|
||||
public static final FontName FontName_bold12;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmk;"
|
||||
descriptor = "Lnu;"
|
||||
)
|
||||
@Export("FontName_verdana11")
|
||||
public static final FontName FontName_verdana11;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmk;"
|
||||
descriptor = "Lnu;"
|
||||
)
|
||||
@Export("FontName_verdana13")
|
||||
public static final FontName FontName_verdana13;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmk;"
|
||||
descriptor = "Lnu;"
|
||||
)
|
||||
@Export("FontName_verdana15")
|
||||
public static final FontName FontName_verdana15;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("z")
|
||||
@Export("name")
|
||||
String name;
|
||||
|
||||
@@ -60,191 +59,12 @@ public class FontName {
|
||||
this.name = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(IB)V",
|
||||
garbageValue = "13"
|
||||
descriptor = "(IIIB)I",
|
||||
garbageValue = "-80"
|
||||
)
|
||||
public static void method6374(int var0) {
|
||||
if (class234.musicPlayerStatus != 0) {
|
||||
HorizontalAlignment.musicTrackVolume = var0;
|
||||
} else {
|
||||
class234.midiPcmStream.setPcmStreamVolume(var0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILbd;ZS)I",
|
||||
garbageValue = "3144"
|
||||
)
|
||||
static int method6376(int var0, Script var1, boolean var2) {
|
||||
boolean var3 = true;
|
||||
Widget var4;
|
||||
if (var0 >= 2000) {
|
||||
var0 -= 1000;
|
||||
var4 = UrlRequester.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
var3 = false;
|
||||
} else {
|
||||
var4 = var2 ? GrandExchangeOffer.scriptDotWidget : Interpreter.scriptActiveWidget;
|
||||
}
|
||||
|
||||
int var11;
|
||||
if (var0 == ScriptOpcodes.CC_SETOP) {
|
||||
var11 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] - 1;
|
||||
if (var11 >= 0 && var11 <= 9) {
|
||||
var4.setAction(var11, Interpreter.Interpreter_stringStack[--class1.Interpreter_stringStackSize]);
|
||||
return 1;
|
||||
} else {
|
||||
--class1.Interpreter_stringStackSize;
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
int var6;
|
||||
if (var0 == ScriptOpcodes.CC_SETDRAGGABLE) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var11 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var6 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
var4.parent = ObjectSound.getWidgetChild(var11, var6);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETDRAGGABLEBEHAVIOR) {
|
||||
var4.isScrollBar = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETDRAGDEADZONE) {
|
||||
var4.dragZoneSize = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETDRAGDEADTIME) {
|
||||
var4.dragThreshold = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETOPBASE) {
|
||||
var4.dataText = Interpreter.Interpreter_stringStack[--class1.Interpreter_stringStackSize];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETTARGETVERB) {
|
||||
var4.spellActionName = Interpreter.Interpreter_stringStack[--class1.Interpreter_stringStackSize];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_CLEAROPS) {
|
||||
var4.actions = null;
|
||||
return 1;
|
||||
} else if (var0 == 1308) {
|
||||
var4.prioritizeMenuEntry = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
|
||||
return 1;
|
||||
} else if (var0 == 1309) {
|
||||
--Interpreter.Interpreter_intStackSize;
|
||||
return 1;
|
||||
} else {
|
||||
int var7;
|
||||
byte[] var8;
|
||||
if (var0 != ScriptOpcodes.CC_SETOPKEY) {
|
||||
byte var5;
|
||||
if (var0 == ScriptOpcodes.CC_SETOPTKEY) {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var5 = 10;
|
||||
var8 = new byte[]{(byte)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize]};
|
||||
byte[] var9 = new byte[]{(byte)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]};
|
||||
ItemComposition.Widget_setKey(var4, var5, var8, var9);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETOPKEYRATE) {
|
||||
Interpreter.Interpreter_intStackSize -= 3;
|
||||
var11 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize] - 1;
|
||||
var6 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
var7 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2];
|
||||
if (var11 >= 0 && var11 <= 9) {
|
||||
WorldMapSectionType.Widget_setKeyRate(var4, var11, var6, var7);
|
||||
return 1;
|
||||
} else {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
} else if (var0 == ScriptOpcodes.CC_SETOPTKEYRATE) {
|
||||
var5 = 10;
|
||||
var6 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
WorldMapSectionType.Widget_setKeyRate(var4, var5, var6, var7);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETOPKEYIGNOREHELD) {
|
||||
--Interpreter.Interpreter_intStackSize;
|
||||
var11 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize] - 1;
|
||||
if (var11 >= 0 && var11 <= 9) {
|
||||
StructComposition.Widget_setKeyIgnoreHeld(var4, var11);
|
||||
return 1;
|
||||
} else {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
} else if (var0 == ScriptOpcodes.CC_SETOPTKEYIGNOREHELD) {
|
||||
var5 = 10;
|
||||
StructComposition.Widget_setKeyIgnoreHeld(var4, var5);
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
byte[] var10 = null;
|
||||
var8 = null;
|
||||
if (var3) {
|
||||
Interpreter.Interpreter_intStackSize -= 10;
|
||||
|
||||
for (var7 = 0; var7 < 10 && Interpreter.Interpreter_intStack[var7 + Interpreter.Interpreter_intStackSize] >= 0; var7 += 2) {
|
||||
}
|
||||
|
||||
if (var7 > 0) {
|
||||
var10 = new byte[var7 / 2];
|
||||
var8 = new byte[var7 / 2];
|
||||
|
||||
for (var7 -= 2; var7 >= 0; var7 -= 2) {
|
||||
var10[var7 / 2] = (byte)Interpreter.Interpreter_intStack[var7 + Interpreter.Interpreter_intStackSize];
|
||||
var8[var7 / 2] = (byte)Interpreter.Interpreter_intStack[var7 + Interpreter.Interpreter_intStackSize + 1];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var10 = new byte[]{(byte)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize]};
|
||||
var8 = new byte[]{(byte)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]};
|
||||
}
|
||||
|
||||
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] - 1;
|
||||
if (var7 >= 0 && var7 <= 9) {
|
||||
ItemComposition.Widget_setKey(var4, var7, var10, var8);
|
||||
return 1;
|
||||
} else {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILbd;ZI)I",
|
||||
garbageValue = "1821361801"
|
||||
)
|
||||
static int method6375(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = UrlRequester.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
if (var0 == ScriptOpcodes.IF_GETTARGETMASK) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = class103.Widget_unpackTargetMask(MusicPatchNode.getWidgetFlags(var3));
|
||||
return 1;
|
||||
} else if (var0 != ScriptOpcodes.IF_GETOP) {
|
||||
if (var0 == ScriptOpcodes.IF_GETOPBASE) {
|
||||
if (var3.dataText == null) {
|
||||
Interpreter.Interpreter_stringStack[++class1.Interpreter_stringStackSize - 1] = "";
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++class1.Interpreter_stringStackSize - 1] = var3.dataText;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
int var4 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
--var4;
|
||||
if (var3.actions != null && var4 < var3.actions.length && var3.actions[var4] != null) {
|
||||
Interpreter.Interpreter_stringStack[++class1.Interpreter_stringStackSize - 1] = var3.actions[var4];
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++class1.Interpreter_stringStackSize - 1] = "";
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
static int method6551(int var0, int var1, int var2) {
|
||||
return var0 << 28 | var1 << 14 | var2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user