mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Fix padding for settings screen
This commit is contained in:
@@ -282,6 +282,12 @@ public class SettingsScreen extends FScreen {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawValue(Graphics g, Setting value, FSkinFont font, FSkinColor color, boolean pressed, float x, float y, float w, float h) {
|
public void drawValue(Graphics g, Setting value, FSkinFont font, FSkinColor color, 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;
|
||||||
|
|
||||||
float totalHeight = h;
|
float totalHeight = h;
|
||||||
h = font.getFont().getMultiLineBounds(value.label).height + 5;
|
h = font.getFont().getMultiLineBounds(value.label).height + 5;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user