Slightly decrease checkbox size

Version bump to 1.5.51.009
This commit is contained in:
drdev
2016-04-08 21:24:42 +00:00
parent de3ce937b6
commit ee61ca6ac6
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
<packaging.type>jar</packaging.type> <packaging.type>jar</packaging.type>
<build.min.memory>-Xms128m</build.min.memory> <build.min.memory>-Xms128m</build.min.memory>
<build.max.memory>-Xmx1024m</build.max.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.keystore>keystore</sign.keystore>
<sign.alias>alias</sign.alias> <sign.alias>alias</sign.alias>
<sign.storepass>storepass</sign.storepass> <sign.storepass>storepass</sign.storepass>

View File

@@ -39,7 +39,7 @@ import forge.util.FileUtil;
import forge.util.Utils; import forge.util.Utils;
public class Forge implements ApplicationListener { 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 final ApplicationListener app = new Forge();
private static Clipboard clipboard; private static Clipboard clipboard;

View File

@@ -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); 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 //draw checkbox, with it checked based on whether item is selected
float checkBoxSize = h / 2; float checkBoxSize = h * 0.4f;
float padding = checkBoxSize / 2; float padding = checkBoxSize / 2;
w -= checkBoxSize + padding; 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; 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 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