44 lines
1.0 KiB
Java
44 lines
1.0 KiB
Java
package mindustry.ui.dialogs;
|
|
|
|
import arc.*;
|
|
import arc.scene.ui.layout.*;
|
|
import mindustry.gen.*;
|
|
import mindustry.net.Administration.*;
|
|
|
|
public class TraceDialog extends BaseDialog{
|
|
|
|
public TraceDialog(){
|
|
super("@trace");
|
|
|
|
addCloseButton();
|
|
setFillParent(false);
|
|
}
|
|
|
|
public void show(Player player, TraceInfo info){
|
|
cont.clear();
|
|
|
|
Table table = new Table(Tex.clear);
|
|
table.margin(14);
|
|
table.defaults().pad(1);
|
|
|
|
table.defaults().left();
|
|
table.add(Core.bundle.format("trace.playername", player.name));
|
|
table.row();
|
|
table.add(Core.bundle.format("trace.ip", info.ip));
|
|
table.row();
|
|
table.add(Core.bundle.format("trace.id", info.uuid));
|
|
table.row();
|
|
table.add(Core.bundle.format("trace.modclient", info.modded));
|
|
table.row();
|
|
table.add(Core.bundle.format("trace.mobile", info.mobile));
|
|
table.row();
|
|
|
|
table.add().pad(5);
|
|
table.row();
|
|
|
|
cont.add(table);
|
|
|
|
show();
|
|
}
|
|
}
|