Icon refactoring

This commit is contained in:
Anuken
2020-11-05 20:21:30 -05:00
parent fab282e8be
commit a18ae3ccf9
132 changed files with 124 additions and 2203 deletions

View File

@@ -183,7 +183,7 @@ public class ChatFragment extends Table{
if(!shown){
scene.setKeyboardFocus(chatfield);
shown = !shown;
shown = true;
if(mobile){
TextInput input = new TextInput();
input.maxLength = maxTextLength;
@@ -199,10 +199,13 @@ public class ChatFragment extends Table{
chatfield.fireClick();
}
}else{
scene.setKeyboardFocus(null);
shown = !shown;
scrollPos = 0;
sendMessage();
//sending chat has a delay; workaround for issue #1943
Time.run(2f, () ->{
scene.setKeyboardFocus(null);
shown = false;
scrollPos = 0;
sendMessage();
});
}
}