Chat on Minimap Implementation (#2092)
* chat on minimap implementation * add braces
This commit is contained in:
@@ -62,7 +62,7 @@ public class ChatFragment extends Table{
|
|||||||
|
|
||||||
update(() -> {
|
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();
|
toggle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,8 +43,10 @@ public class MinimapFragment extends Fragment{
|
|||||||
|
|
||||||
elem.visible(() -> shown);
|
elem.visible(() -> shown);
|
||||||
elem.update(() -> {
|
elem.update(() -> {
|
||||||
elem.requestKeyboard();
|
if(!ui.chatfrag.shown()){
|
||||||
elem.requestScroll();
|
elem.requestKeyboard();
|
||||||
|
elem.requestScroll();
|
||||||
|
}
|
||||||
elem.setFillParent(true);
|
elem.setFillParent(true);
|
||||||
elem.setBounds(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());
|
elem.setBounds(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user