We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Portrait.java
2 parents 0d05b47 + 21443ac commit 2184b64Copy full SHA for 2184b64
megamek/src/megamek/common/icons/Portrait.java
@@ -55,7 +55,9 @@ public class Portrait extends AbstractIcon {
55
@Serial
56
private static final long serialVersionUID = -7562297705213174435L;
57
public static final String DEFAULT_PORTRAIT_FILENAME = "default.gif";
58
+ public static final String NO_PORTRAIT_NAME = "None";
59
public static final String XML_TAG = "portrait";
60
+ public static final int DEFAULT_IMAGE_WIDTH = 72;
61
// endregion Variable Declarations
62
63
// region Constructors
@@ -100,7 +102,7 @@ public boolean hasDefaultFilename() {
100
102
*/
101
103
@Override
104
public Image getImage() {
- return getImage(72);
105
+ return getImage(DEFAULT_IMAGE_WIDTH);
106
}
107
108
0 commit comments