forked from External/mage
GUI: fixed not working card popup near screen border, improved card popup for chat and choose dialogs;
This commit is contained in:
parent
7475ee922a
commit
63290d3ed6
8 changed files with 85 additions and 15 deletions
|
|
@ -43,6 +43,7 @@ import mage.interfaces.callback.CallbackClient;
|
|||
import mage.interfaces.callback.ClientCallback;
|
||||
import mage.remote.Connection;
|
||||
import mage.remote.Connection.ProxyType;
|
||||
import mage.util.DebugUtil;
|
||||
import mage.utils.MageVersion;
|
||||
import mage.view.GameEndView;
|
||||
import mage.view.UserRequestMessage;
|
||||
|
|
@ -417,6 +418,9 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
popupContainer.setLayout(null);
|
||||
popupContainer.add(cardInfoPane);
|
||||
popupContainer.setVisible(false);
|
||||
if (DebugUtil.GUI_POPUP_CONTAINER_DRAW_DEBUG_BORDER) {
|
||||
popupContainer.setBorder(BorderFactory.createLineBorder(Color.red));
|
||||
}
|
||||
desktopPane.add(popupContainer, JLayeredPane.POPUP_LAYER);
|
||||
UI.addComponent(MageComponents.POPUP_CONTAINER, popupContainer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue