mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 03:59:26 +02:00
test2
This commit is contained in:
@@ -49,8 +49,8 @@ public class Main extends Mod {
|
||||
OverDrawer.setEvent();
|
||||
if(jsonGen) ContentJSON.save();
|
||||
|
||||
|
||||
scene.add(new ElementDisplay());
|
||||
/*
|
||||
for(Dialog dialog : new Dialog[]{
|
||||
ui.picker, ui.editor, ui.controls, ui.restart, ui.join, ui.discord,
|
||||
ui.load, ui.custom, ui.language, ui.database, ui.settings, ui.host,
|
||||
@@ -59,6 +59,8 @@ public class Main extends Mod {
|
||||
dialog.add(new ElementDisplay(dialog));
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
Events.on(WorldLoadEvent.class, e -> {
|
||||
|
||||
@@ -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