mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
Slightly decrease checkbox size
Version bump to 1.5.51.009
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<packaging.type>jar</packaging.type>
|
||||
<build.min.memory>-Xms128m</build.min.memory>
|
||||
<build.max.memory>-Xmx1024m</build.max.memory>
|
||||
<alpha-version>1.5.51.008</alpha-version>
|
||||
<alpha-version>1.5.51.009</alpha-version>
|
||||
<sign.keystore>keystore</sign.keystore>
|
||||
<sign.alias>alias</sign.alias>
|
||||
<sign.storepass>storepass</sign.storepass>
|
||||
|
||||
@@ -39,7 +39,7 @@ import forge.util.FileUtil;
|
||||
import forge.util.Utils;
|
||||
|
||||
public class Forge implements ApplicationListener {
|
||||
public static final String CURRENT_VERSION = "1.5.51.008";
|
||||
public static final String CURRENT_VERSION = "1.5.51.009";
|
||||
|
||||
private static final ApplicationListener app = new Forge();
|
||||
private static Clipboard clipboard;
|
||||
|
||||
@@ -249,10 +249,10 @@ public final class ItemListView<T extends InventoryItem> extends ItemView<T> {
|
||||
g.fillRect(SEL_COLOR, x - FList.PADDING, y - FList.PADDING, w + 2 * FList.PADDING, h + 2 * FList.PADDING);
|
||||
}
|
||||
//draw checkbox, with it checked based on whether item is selected
|
||||
float checkBoxSize = h / 2;
|
||||
float checkBoxSize = h * 0.4f;
|
||||
float padding = checkBoxSize / 2;
|
||||
w -= checkBoxSize + padding;
|
||||
FCheckBox.drawCheckBox(g, selectedIndices.contains(index), x + w, y + padding, checkBoxSize, checkBoxSize);
|
||||
FCheckBox.drawCheckBox(g, selectedIndices.contains(index), x + w, y + (h - checkBoxSize) / 2, checkBoxSize, checkBoxSize);
|
||||
w -= padding;
|
||||
}
|
||||
renderer.drawValue(g, value, font, foreColor, backColor, pressed, x + 1, y, w - 2, h); //x + 1 and w - 2 to account for left and right borders
|
||||
|
||||
Reference in New Issue
Block a user