mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Chat on Minimap Implementation (#2092)
* chat on minimap implementation * add braces
This commit is contained in:
parent
daa80955ac
commit
7030f69bc6
2 changed files with 5 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ public class ChatFragment extends Table{
|
|||
|
||||
update(() -> {
|
||||
|
||||
if(net.active() && input.keyTap(Binding.chat) && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null)){
|
||||
if(net.active() && input.keyTap(Binding.chat) && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null || ui.minimapfrag.shown())){
|
||||
toggle();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,8 +43,10 @@ public class MinimapFragment extends Fragment{
|
|||
|
||||
elem.visible(() -> shown);
|
||||
elem.update(() -> {
|
||||
elem.requestKeyboard();
|
||||
elem.requestScroll();
|
||||
if(!ui.chatfrag.shown()){
|
||||
elem.requestKeyboard();
|
||||
elem.requestScroll();
|
||||
}
|
||||
elem.setFillParent(true);
|
||||
elem.setBounds(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue