Apply BASE attribute methods improvements
This commit is contained in:
BIN
data.mv.db
BIN
data.mv.db
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -78,13 +78,12 @@ public class ItemIconView extends IconView {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Attribute("placeholder")
|
||||
public void setPlaceholderIcon(String icon) {
|
||||
@Attribute(value = "placeholder", separator = ",")
|
||||
public void setPlaceholderIcon(String icon, int row, int column) {
|
||||
this.placeholderIconPaint = gui.createPaint();
|
||||
var parts = icon.split(",");
|
||||
this.placeholderIconSet = gui.getIconSet(A.iconsets.get(parts[0]).uid);
|
||||
this.placeholderIconSetRow = Integer.parseInt(parts[1]);
|
||||
this.placeholderIconSetColumn = Integer.parseInt(parts[2]);
|
||||
this.placeholderIconSet = gui.getIconSet(A.iconsets.get(icon).uid);
|
||||
this.placeholderIconSetRow = row;
|
||||
this.placeholderIconSetColumn = column;
|
||||
}
|
||||
|
||||
private void handleKeyEvent(KeyEvent event) {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</base:BorderLayout-TopLeft>
|
||||
|
||||
<base:BorderLayout-TopRight>
|
||||
<base:FPSMonitor monitor="5|40" padding="15f" width="150" height="100f"/>
|
||||
<base:FPSMonitor monitor="5,40" padding="15f" width="150" height="100f"/>
|
||||
</base:BorderLayout-TopRight>
|
||||
|
||||
<base:BorderLayout-BottomLeft>
|
||||
|
||||
Reference in New Issue
Block a user