mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-10 15:05:23 +03:00
Fixed #5362
This commit is contained in:
parent
7243ae4e95
commit
151c4f13df
@ -112,7 +112,6 @@ public class LCanvas extends Table{
|
||||
|
||||
jumps.cullable = false;
|
||||
}).grow().get();
|
||||
//pane.setClip(false);
|
||||
pane.setFlickScroll(false);
|
||||
|
||||
//load old scroll percent
|
||||
|
@ -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);
|
||||
|
@ -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(){
|
||||
|
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user