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