This commit is contained in:
Anuken
2020-08-25 15:06:09 -04:00
parent 898867db8f
commit c191dd8855
3 changed files with 3 additions and 7 deletions

View File

@@ -41,9 +41,7 @@ public class DesktopInput extends InputHandler{
/** Selected build request for movement. */
public @Nullable BuildPlan sreq;
/** Whether player is currently deleting removal requests. */
public boolean deleting = false, shouldShoot = false;
private boolean panning = false;
public boolean deleting = false, shouldShoot = false, panning = false;
@Override
public void buildUI(Group group){

View File

@@ -73,6 +73,7 @@ public class Administration{
});
//block interaction rate limit
//TODO when someone disconnects, a different player is mistakenly kicked for spamming actions
addActionFilter(action -> {
if(action.type != ActionType.breakBlock &&
action.type != ActionType.placeBlock &&

View File

@@ -2,7 +2,6 @@ package mindustry.ui.fragments;
import arc.*;
import arc.Input.*;
import arc.struct.*;
import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.math.*;
@@ -10,8 +9,8 @@ import arc.scene.*;
import arc.scene.ui.*;
import arc.scene.ui.Label.*;
import arc.scene.ui.layout.*;
import arc.struct.*;
import arc.util.*;
import mindustry.*;
import mindustry.input.*;
import mindustry.ui.*;
@@ -96,7 +95,6 @@ public class ScriptConsoleFragment extends Table{
fieldlabel.setStyle(fieldlabel.getStyle());
chatfield = new TextField("", new TextField.TextFieldStyle(scene.getStyle(TextField.TextFieldStyle.class)));
chatfield.setMaxLength(Vars.maxTextLength);
chatfield.getStyle().background = null;
chatfield.getStyle().font = Fonts.chat;
chatfield.getStyle().fontColor = Color.white;
@@ -180,7 +178,6 @@ public class ScriptConsoleFragment extends Table{
open = !open;
if(mobile){
TextInput input = new TextInput();
input.maxLength = maxTextLength;
input.accepted = text -> {
chatfield.setText(text);
sendMessage();