mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
* Added a color indication in the tooltip window.
This commit is contained in:
parent
da31cefbf0
commit
1ed1bc2e0d
6 changed files with 18 additions and 0 deletions
|
@ -199,6 +199,24 @@ public class GuiDisplayUtil {
|
|||
}
|
||||
buffer.append("</td></tr></table>");
|
||||
buffer.append("<table cellspacing=0 cellpadding=0 border=0 width='100%'><tr><td style='margin-left: 1px'>");
|
||||
if(card.getColor().isWhite()) {
|
||||
buffer.append("<img src='file:src/main/resources/card/color_ind_white.png' alt='W'>");
|
||||
}
|
||||
if(card.getColor().isBlue()) {
|
||||
buffer.append("<img src='file:src/main/resources/card/color_ind_blue.png' alt='U'>");
|
||||
}
|
||||
if(card.getColor().isBlack()) {
|
||||
buffer.append("<img src='file:src/main/resources/card/color_ind_black.png' alt='B'>");
|
||||
}
|
||||
if(card.getColor().isRed()) {
|
||||
buffer.append("<img src='file:src/main/resources/card/color_ind_red.png' alt='R'>");
|
||||
}
|
||||
if(card.getColor().isGreen()) {
|
||||
buffer.append("<img src='file:src/main/resources/card/color_ind_green.png' alt='G'>");
|
||||
}
|
||||
if(!card.getColor().isColorless()) {
|
||||
buffer.append(" ");
|
||||
}
|
||||
buffer.append(getTypes(card));
|
||||
buffer.append("</td><td align='right'>");
|
||||
switch (card.getRarity()) {
|
||||
|
|
BIN
Mage.Client/src/main/resources/card/color_ind_black.png
Normal file
BIN
Mage.Client/src/main/resources/card/color_ind_black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 440 B |
BIN
Mage.Client/src/main/resources/card/color_ind_blue.png
Normal file
BIN
Mage.Client/src/main/resources/card/color_ind_blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 300 B |
BIN
Mage.Client/src/main/resources/card/color_ind_green.png
Normal file
BIN
Mage.Client/src/main/resources/card/color_ind_green.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 323 B |
BIN
Mage.Client/src/main/resources/card/color_ind_red.png
Normal file
BIN
Mage.Client/src/main/resources/card/color_ind_red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 374 B |
BIN
Mage.Client/src/main/resources/card/color_ind_white.png
Normal file
BIN
Mage.Client/src/main/resources/card/color_ind_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 304 B |
Loading…
Reference in a new issue