mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-11 15:56:21 +02:00
test2
This commit is contained in:
@@ -6,6 +6,7 @@ import arc.scene.Element;
|
||||
import arc.scene.Group;
|
||||
import arc.scene.event.Touchable;
|
||||
import arc.struct.SnapshotSeq;
|
||||
import arc.util.Log;
|
||||
import arc.util.Tmp;
|
||||
import mindustry.graphics.Layer;
|
||||
import mindustry.graphics.Pal;
|
||||
@@ -31,11 +32,14 @@ public class ElementDisplay extends Element {
|
||||
if(!settings.getBool("elementdebug")) return;
|
||||
Draw.z(Layer.max);
|
||||
Lines.stroke(1);
|
||||
Log.info("draw method called");
|
||||
addRect(root.getChildren());
|
||||
}
|
||||
|
||||
void addRect(SnapshotSeq<Element> elements) {
|
||||
Log.info("addRect method called");
|
||||
elements.forEach(elem-> {
|
||||
Log.info("addRect method called in forEach");
|
||||
elem.updateVisibility();
|
||||
if(elem.visible || settings.getBool("hiddenElem")) {
|
||||
elem.localToStageCoordinates(Tmp.v1.set(0, 0));
|
||||
|
||||
Reference in New Issue
Block a user