Cleanup
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user