mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 12:00:53 +00:00
highlight parameter added
This commit is contained in:
@@ -43,7 +43,7 @@ public class WhileItem extends LoopItem implements Block {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(List<Object> localData) {
|
||||
public String toString(boolean highlight, List<Object> localData) {
|
||||
String ret = "";
|
||||
ret += "loop" + loop.id + ":\r\n";
|
||||
String expStr = "";
|
||||
@@ -54,15 +54,15 @@ public class WhileItem extends LoopItem implements Block {
|
||||
if (!expStr.equals("")) {
|
||||
expStr += ", ";
|
||||
}
|
||||
expStr += expression.get(i).toString(localData);
|
||||
expStr += expression.get(i).toString(highlight, localData);
|
||||
}
|
||||
ret += hilight("while(") + expStr + hilight(")") + "\r\n{\r\n";
|
||||
ret += hilight("while(", highlight) + expStr + hilight(")", highlight) + "\r\n{\r\n";
|
||||
for (GraphTargetItem ti : commands) {
|
||||
if (!ti.isEmpty()) {
|
||||
ret += ti.toStringSemicoloned(localData) + "\r\n";
|
||||
ret += ti.toStringSemicoloned(highlight, localData) + "\r\n";
|
||||
}
|
||||
}
|
||||
ret += hilight("}") + "\r\n";
|
||||
ret += hilight("}", highlight) + "\r\n";
|
||||
ret += ":loop" + loop.id;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user