GUI: chats code upgraded to use new popup hint code;

This commit is contained in:
Oleg Agafonov 2021-08-15 10:47:19 +04:00
parent 5725e15771
commit c328c71ef9
7 changed files with 96 additions and 53 deletions

View file

@ -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;
}
}