mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
GUI: chats code upgraded to use new popup hint code;
This commit is contained in:
parent
5725e15771
commit
c328c71ef9
7 changed files with 96 additions and 53 deletions
|
|
@ -15,11 +15,12 @@ public class TransferData {
|
|||
|
||||
private MageCard component; // real card panel (it may lie under multiple layer panels, so use getTopPanelRef for top)
|
||||
private TextPopup popupText;
|
||||
private Point locationOnScreen; // must contains REAL card location (e.g. without outer/draw spaces), so use getCardLocationOnScreen to update it
|
||||
private Point locationOnScreen; // must contain REAL card location (e.g. without outer/draw spaces), so use getCardLocationOnScreen to update it
|
||||
private int popupOffsetX;
|
||||
private int popupOffsetY;
|
||||
private UUID gameId;
|
||||
private CardView card;
|
||||
private int tooltipDelay; // custom delay, set non-zero to overwrite preferences settings
|
||||
|
||||
/**
|
||||
* If you use it with cards then call top layer panel like data.getComponent().getTopPanelRef()
|
||||
|
|
@ -81,4 +82,12 @@ public class TransferData {
|
|||
public void setCard(CardView card) {
|
||||
this.card = card;
|
||||
}
|
||||
|
||||
public int getTooltipDelay() {
|
||||
return tooltipDelay;
|
||||
}
|
||||
|
||||
public void setTooltipDelay(int tooltipDelay) {
|
||||
this.tooltipDelay = tooltipDelay;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue