From 1ed1bc2e0db760bc2eeda7198aab22ca41900b8d Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 12 Dec 2014 11:34:34 +0100 Subject: [PATCH] * Added a color indication in the tooltip window. --- .../mage/client/util/gui/GuiDisplayUtil.java | 18 ++++++++++++++++++ .../main/resources/card/color_ind_black.png | Bin 0 -> 440 bytes .../main/resources/card/color_ind_blue.png | Bin 0 -> 300 bytes .../main/resources/card/color_ind_green.png | Bin 0 -> 323 bytes .../src/main/resources/card/color_ind_red.png | Bin 0 -> 374 bytes .../main/resources/card/color_ind_white.png | Bin 0 -> 304 bytes 6 files changed, 18 insertions(+) create mode 100644 Mage.Client/src/main/resources/card/color_ind_black.png create mode 100644 Mage.Client/src/main/resources/card/color_ind_blue.png create mode 100644 Mage.Client/src/main/resources/card/color_ind_green.png create mode 100644 Mage.Client/src/main/resources/card/color_ind_red.png create mode 100644 Mage.Client/src/main/resources/card/color_ind_white.png diff --git a/Mage.Client/src/main/java/mage/client/util/gui/GuiDisplayUtil.java b/Mage.Client/src/main/java/mage/client/util/gui/GuiDisplayUtil.java index 3c861fc89c..ed4d9c1f28 100644 --- a/Mage.Client/src/main/java/mage/client/util/gui/GuiDisplayUtil.java +++ b/Mage.Client/src/main/java/mage/client/util/gui/GuiDisplayUtil.java @@ -199,6 +199,24 @@ public class GuiDisplayUtil { } buffer.append(""); buffer.append("
"); + if(card.getColor().isWhite()) { + buffer.append("W"); + } + if(card.getColor().isBlue()) { + buffer.append("U"); + } + if(card.getColor().isBlack()) { + buffer.append("B"); + } + if(card.getColor().isRed()) { + buffer.append("R"); + } + if(card.getColor().isGreen()) { + buffer.append("G"); + } + if(!card.getColor().isColorless()) { + buffer.append("  "); + } buffer.append(getTypes(card)); buffer.append(""); switch (card.getRarity()) { diff --git a/Mage.Client/src/main/resources/card/color_ind_black.png b/Mage.Client/src/main/resources/card/color_ind_black.png new file mode 100644 index 0000000000000000000000000000000000000000..11f06f2cafef79534b47b38b7b0e7aeccb1a0c1d GIT binary patch literal 440 zcmV;p0Z0CcP)8v~BxJ za=+W{F1@A#fX!wT&1{iU`l_n)5JDYe1b~x>9A>lGlZZSYk4KLHKyu;kTL4P{;}F6C zzyQD)z|!5fX0`x;!D_V{l~TT`YLjyY$$vKIjIQg(Bp-&u;rFWRx<*y!F-E8=a?Z#( zLsg-wFf*7LRCTVZP1UyTU5v2~A;8_Q07-}lM5KpnRlTn+mkUA&=z;zUNpxLzwUu** zh@eU-y#hFe5XSBfGlPg+#XTS*Cslo^NbXhj0AN{4>HYo}UPKONwhsU>olZZy`_|n* z^&xMwko;|CkM90!004De|54Q+Bp*nAB>914A^Dbb{%K}kN-56(O1Q1YWHK3X2)?H7{)0vduEn3uhaz%vj9K{_J5* z`nkP_Z`?2B-*~Xx^TFCn39r)Gq^%Zbr$kKmuvo6X^Y;w3*DWdz#@6D+s|`#xSMqy* z7MoPscfxXCNB+GhxOf1S;9FI_0j<*#{A_ZNaa~^1Mx= unIhNboruY*4|H6lA8Gu(!BO?>4^}D9M-#j5gj554%HZkh=d#Wzp$Py{ZFqnH literal 0 HcmV?d00001 diff --git a/Mage.Client/src/main/resources/card/color_ind_green.png b/Mage.Client/src/main/resources/card/color_ind_green.png new file mode 100644 index 0000000000000000000000000000000000000000..d8abfb69a3a6872bde70c9dc09d517c05e2d2fe4 GIT binary patch literal 323 zcmV-J0lfZ+P)B3k(QI=AE7b1x`VV5O)FGTCnhMwOA8dl!=?B+MqEHO?Z;*^hGHxlW1tvAApqbD Vt*mEyL?8eF002ovPDHLkV1j|*hduxR literal 0 HcmV?d00001 diff --git a/Mage.Client/src/main/resources/card/color_ind_red.png b/Mage.Client/src/main/resources/card/color_ind_red.png new file mode 100644 index 0000000000000000000000000000000000000000..0e5f832676971c663b4f8af2e3cfa2819efc7b01 GIT binary patch literal 374 zcmV-+0g3*JP)Z+jvQB;K8WkGE>H>wc;Pyu9|^^#byvJH1VYx80wqor`K_9RwzK*E(UwK{6s`& z5rBfx{{o1>58+qI{H||_^G@jgIUUI?qidDWvI`U-{K`NUd=_A+*TW&)PuFl`uHoET z#c_5S2Tnc~c-pPBaW8I<5`jZ!!WXh|H(Ns6DaP=xfYtTn@k;VCGn+XRXTlxZ#r_1w zcyW33xg6(2K*peR0`|u(bsSf*xt`-LY7u%lWpW@Wini?w@S(y)>;8)UOYf_Nfk&u*eW4C`nL_II-*?`d4 zyFJTdPnr1M{cLl%G`2aeTKo34ud7xqDwIi`rS@`{-zS^t3LHwOH+_+=lxRD@EqBwp z)n`8I)ZX{LY%(czW=rA^%g%zfKWZM6Tx#z3homJru$j}9QCt%V9~d*koS%PW7Ub&NUiUa8w{VUd0oYBSg>zWs7lvmMW*maj9X2P zp0v0tEO_T!RYyVMmwKLic~4$nPq6&(#dM!hXPomF^_=BE-!gc*`njxgN@xNA!?AhN literal 0 HcmV?d00001