mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 20:19:26 +02:00
test2
This commit is contained in:
@@ -6,6 +6,7 @@ import UnitInfo.ui.windows.*;
|
||||
import arc.*;
|
||||
import arc.scene.ui.Dialog;
|
||||
import arc.struct.Seq;
|
||||
import arc.util.Log;
|
||||
import mindustry.*;
|
||||
import mindustry.game.EventType.*;
|
||||
import mindustry.mod.*;
|
||||
|
||||
@@ -38,8 +38,10 @@ public class ElementDisplay extends Element {
|
||||
|
||||
void addRect(SnapshotSeq<Element> elements) {
|
||||
Log.info("addRect method called");
|
||||
elements.forEach(elem-> {
|
||||
Element[] items = elements.begin();
|
||||
for (int i = 0, n = elements.size; i < n; i++) {
|
||||
Log.info("addRect method called in forEach");
|
||||
Element elem = items[i];
|
||||
elem.updateVisibility();
|
||||
if(elem.visible || settings.getBool("hiddenElem")) {
|
||||
elem.localToStageCoordinates(Tmp.v1.set(0, 0));
|
||||
@@ -60,6 +62,6 @@ public class ElementDisplay extends Element {
|
||||
Lines.stroke(1);
|
||||
if(elem instanceof Group group) addRect(group.getChildren());
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user