highlight parameter added

This commit is contained in:
Honfika
2013-08-25 15:17:58 +02:00
parent 1f6d2f0056
commit d1a0c1d463
218 changed files with 622 additions and 621 deletions
@@ -36,17 +36,17 @@ public class UniversalLoopItem 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";
ret += hilight("while(true)");
ret += hilight("while(true)", highlight);
ret += "\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;
}