mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fix custom select screen
This commit is contained in:
@@ -243,11 +243,17 @@ public class SettingsScreen extends FScreen {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawValue(Graphics g, String value, FSkinFont font, FSkinColor foreColor, boolean pressed, float x, float y, float w, float h) {
|
public void drawValue(Graphics g, String value, FSkinFont font, FSkinColor foreColor, boolean pressed, float x, float y, float w, float h) {
|
||||||
|
float offset = w * INSETS_FACTOR - FList.PADDING; //increase padding for settings items
|
||||||
|
x += offset;
|
||||||
|
y += offset;
|
||||||
|
w -= 2 * offset;
|
||||||
|
h -= 2 * offset;
|
||||||
|
|
||||||
g.drawText(value, font, foreColor, x, y, w, h, false, HAlignment.LEFT, true);
|
g.drawText(value, font, foreColor, x, y, w, h, false, HAlignment.LEFT, true);
|
||||||
|
|
||||||
float radius = h / 5;
|
float radius = h / 3;
|
||||||
x += w - radius;
|
x += w - radius;
|
||||||
y = h / 2;
|
y += h / 2;
|
||||||
g.drawCircle(1, DESC_COLOR, x, y, radius);
|
g.drawCircle(1, DESC_COLOR, x, y, radius);
|
||||||
if (value.equals(currentValue)) {
|
if (value.equals(currentValue)) {
|
||||||
g.fillCircle(foreColor, x, y, radius / 2);
|
g.fillCircle(foreColor, x, y, radius / 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user