Fixed #10780
This commit is contained in:
@@ -57,6 +57,7 @@ public class DesktopInput extends InputHandler{
|
|||||||
public long lastCtrlGroupSelectMillis;
|
public long lastCtrlGroupSelectMillis;
|
||||||
|
|
||||||
private float buildPlanMouseOffsetX, buildPlanMouseOffsetY;
|
private float buildPlanMouseOffsetX, buildPlanMouseOffsetY;
|
||||||
|
private boolean changedCursor;
|
||||||
|
|
||||||
boolean showHint(){
|
boolean showHint(){
|
||||||
return ui.hudfrag.shown && Core.settings.getBool("hints") && selectPlans.isEmpty() && !player.dead() &&
|
return ui.hudfrag.shown && Core.settings.getBool("hints") && selectPlans.isEmpty() && !player.dead() &&
|
||||||
@@ -546,8 +547,13 @@ public class DesktopInput extends InputHandler{
|
|||||||
|
|
||||||
if(!Core.scene.hasMouse() && !ui.minimapfrag.shown()){
|
if(!Core.scene.hasMouse() && !ui.minimapfrag.shown()){
|
||||||
Core.graphics.cursor(cursorType);
|
Core.graphics.cursor(cursorType);
|
||||||
|
changedCursor = cursorType != SystemCursor.arrow;
|
||||||
}else{
|
}else{
|
||||||
cursorType = SystemCursor.arrow;
|
cursorType = SystemCursor.arrow;
|
||||||
|
if(changedCursor){
|
||||||
|
graphics.cursor(SystemCursor.arrow);
|
||||||
|
changedCursor = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package mindustry.ui.fragments;
|
package mindustry.ui.fragments;
|
||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.Graphics.Cursor.*;
|
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
import arc.graphics.g2d.*;
|
import arc.graphics.g2d.*;
|
||||||
import arc.input.*;
|
import arc.input.*;
|
||||||
@@ -151,8 +150,5 @@ public class MinimapFragment{
|
|||||||
}
|
}
|
||||||
|
|
||||||
shown = !shown;
|
shown = !shown;
|
||||||
if(shown && Core.app.isDesktop()){
|
|
||||||
Core.graphics.cursor(SystemCursor.arrow);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user