forked from External/mage
Face down images and cards rework (#11873)
Face down changes: * GUI: added visible face down type and real card name for controller/owner (opponent can see it after game ends); * GUI: added day/night button to view real card for controller/owner (opponent can see it after game ends); * game: fixed that faced-down card can render symbols, abilities and other hidden data from a real card; * images: added image support for normal faced-down cards; * images: added image support for morph and megamorph faced-down cards; * images: added image support for foretell faced-down cards; Other changes: * images: fixed missing tokens from DDD set; * images: no more client restart to apply newly downloaded images or render settings; * images: improved backface image quality (use main menu -> symbols to download it);
This commit is contained in:
parent
4901de12c1
commit
e38a79f231
104 changed files with 2178 additions and 1495 deletions
|
|
@ -1517,7 +1517,11 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
|
||||
public void setConnectButtonText(String status) {
|
||||
this.btnConnect.setText(status);
|
||||
changeGUISize(); // Needed to layout the tooltbar after text length change
|
||||
|
||||
// Needed to layout the tooltbar after text length change
|
||||
// TODO: need research, is it actual?
|
||||
GUISizeHelper.refreshGUIAndCards();
|
||||
|
||||
this.btnConnect.repaint();
|
||||
this.btnConnect.revalidate();
|
||||
}
|
||||
|
|
@ -1741,8 +1745,13 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
}
|
||||
}
|
||||
|
||||
public void changeGUISize() {
|
||||
ImageCaches.flush();
|
||||
/**
|
||||
* Refresh whole GUI including cards and card images.
|
||||
* Use it after new images downloaded, new fonts or theme settings selected.
|
||||
*/
|
||||
public void refreshGUIAndCards() {
|
||||
ImageCaches.clearAll();
|
||||
|
||||
setGUISize();
|
||||
|
||||
setGUISizeTooltipContainer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue