1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-10 15:05:23 +03:00
This commit is contained in:
Anuken 2021-06-05 08:57:25 -04:00
parent 7243ae4e95
commit 151c4f13df
4 changed files with 12 additions and 6 deletions

View File

@ -112,7 +112,6 @@ public class LCanvas extends Table{
jumps.cullable = false;
}).grow().get();
//pane.setClip(false);
pane.setFlickScroll(false);
//load old scroll percent

View File

@ -7,6 +7,7 @@ import arc.func.*;
import arc.util.*;
import arc.util.async.*;
import arc.util.serialization.*;
import mindustry.*;
import mindustry.core.*;
import mindustry.gen.*;
import mindustry.graphics.*;
@ -39,7 +40,7 @@ public class BeControl{
public BeControl(){
if(active()){
Timer.schedule(() -> {
if(checkUpdates && !mobile){
if(Vars.clientLoaded && checkUpdates && !mobile){
checkUpdate(t -> {});
}
}, updateInterval, updateInterval);

View File

@ -4,6 +4,7 @@ import arc.*;
import arc.scene.ui.*;
import arc.util.*;
import mindustry.core.GameState.*;
import mindustry.game.EventType.*;
import mindustry.gen.*;
import mindustry.graphics.*;
@ -43,7 +44,12 @@ public class BaseDialog extends Dialog{
}
protected void onResize(Runnable run){
resized(run);
Events.on(ResizeEvent.class, event -> {
if(isShown() && Core.scene.getDialog() == this){
run.run();
updateScrollFocus();
}
});
}
public void addCloseListener(){

View File

@ -1,4 +1,4 @@
sourceSets.main.java.srcDirs = ["src/" ]
sourceSets.main.java.srcDirs = ["src/"]
project.ext.mainClassName = "mindustry.desktop.DesktopLauncher"
project.ext.assetsDir = new File("../core/assets")
@ -70,9 +70,9 @@ task steamtest(dependsOn: dist){
}
//required templates:
//- Windows64
//- Windows32 (not provided by Packr!)
//- Windows32: Not provided by Packr! This uses Java 8
//required JDKs:
//- Windows64
//- Linux64
//- Mac
platforms.each{ platform ->