mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Fixed #5362
This commit is contained in:
parent
7243ae4e95
commit
151c4f13df
4 changed files with 12 additions and 6 deletions
|
|
@ -112,7 +112,6 @@ public class LCanvas extends Table{
|
||||||
|
|
||||||
jumps.cullable = false;
|
jumps.cullable = false;
|
||||||
}).grow().get();
|
}).grow().get();
|
||||||
//pane.setClip(false);
|
|
||||||
pane.setFlickScroll(false);
|
pane.setFlickScroll(false);
|
||||||
|
|
||||||
//load old scroll percent
|
//load old scroll percent
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import arc.func.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import arc.util.async.*;
|
import arc.util.async.*;
|
||||||
import arc.util.serialization.*;
|
import arc.util.serialization.*;
|
||||||
|
import mindustry.*;
|
||||||
import mindustry.core.*;
|
import mindustry.core.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.graphics.*;
|
import mindustry.graphics.*;
|
||||||
|
|
@ -39,7 +40,7 @@ public class BeControl{
|
||||||
public BeControl(){
|
public BeControl(){
|
||||||
if(active()){
|
if(active()){
|
||||||
Timer.schedule(() -> {
|
Timer.schedule(() -> {
|
||||||
if(checkUpdates && !mobile){
|
if(Vars.clientLoaded && checkUpdates && !mobile){
|
||||||
checkUpdate(t -> {});
|
checkUpdate(t -> {});
|
||||||
}
|
}
|
||||||
}, updateInterval, updateInterval);
|
}, updateInterval, updateInterval);
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import arc.*;
|
||||||
import arc.scene.ui.*;
|
import arc.scene.ui.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import mindustry.core.GameState.*;
|
import mindustry.core.GameState.*;
|
||||||
|
import mindustry.game.EventType.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.graphics.*;
|
import mindustry.graphics.*;
|
||||||
|
|
||||||
|
|
@ -43,7 +44,12 @@ public class BaseDialog extends Dialog{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onResize(Runnable run){
|
protected void onResize(Runnable run){
|
||||||
resized(run);
|
Events.on(ResizeEvent.class, event -> {
|
||||||
|
if(isShown() && Core.scene.getDialog() == this){
|
||||||
|
run.run();
|
||||||
|
updateScrollFocus();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addCloseListener(){
|
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.mainClassName = "mindustry.desktop.DesktopLauncher"
|
||||||
project.ext.assetsDir = new File("../core/assets")
|
project.ext.assetsDir = new File("../core/assets")
|
||||||
|
|
@ -70,9 +70,9 @@ task steamtest(dependsOn: dist){
|
||||||
}
|
}
|
||||||
|
|
||||||
//required templates:
|
//required templates:
|
||||||
//- Windows64
|
//- Windows32: Not provided by Packr! This uses Java 8
|
||||||
//- Windows32 (not provided by Packr!)
|
|
||||||
//required JDKs:
|
//required JDKs:
|
||||||
|
//- Windows64
|
||||||
//- Linux64
|
//- Linux64
|
||||||
//- Mac
|
//- Mac
|
||||||
platforms.each{ platform ->
|
platforms.each{ platform ->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue