mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
TODO: adjust settings page description bounds
This commit is contained in:
committed by
Anthony Calosa
parent
70bd959ca9
commit
fbdeb3953b
@@ -94,7 +94,7 @@ public class SplashScreen extends FContainer {
|
|||||||
String disclaimer = "Forge is not affiliated in any way with Wizards of the Coast.\n"
|
String disclaimer = "Forge is not affiliated in any way with Wizards of the Coast.\n"
|
||||||
+ "Forge is open source software, released under the GNU Public License.";
|
+ "Forge is open source software, released under the GNU Public License.";
|
||||||
g.drawText(disclaimer, disclaimerFont, FProgressBar.SEL_FORE_COLOR,
|
g.drawText(disclaimer, disclaimerFont, FProgressBar.SEL_FORE_COLOR,
|
||||||
x, y, w, disclaimerHeight, true, Align.center, true);
|
x, y, w, disclaimerHeight, false, Align.center, true);
|
||||||
|
|
||||||
float padding = 20f / 450f * w;
|
float padding = 20f / 450f * w;
|
||||||
float pbHeight = 57f / 450f * h;
|
float pbHeight = 57f / 450f * h;
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ public class SettingsPage extends TabPage<SettingsScreen> {
|
|||||||
|
|
||||||
g.drawText(value.label, font, foreColor, x, y, w, h, false, Align.left, false);
|
g.drawText(value.label, font, foreColor, x, y, w, h, false, Align.left, false);
|
||||||
value.drawPrefValue(g, font, foreColor, x, y, w, h);
|
value.drawPrefValue(g, font, foreColor, x, y, w, h);
|
||||||
h += SettingsScreen.SETTING_PADDING;
|
h += SettingsScreen.SETTING_PADDING;//TODO: adjust settings page description bounds
|
||||||
g.drawText(value.description, SettingsScreen.DESC_FONT, SettingsScreen.DESC_COLOR, x, y + h, w, totalHeight - h + SettingsScreen.getInsets(w), true, Align.left, false);
|
g.drawText(value.description, SettingsScreen.DESC_FONT, SettingsScreen.DESC_COLOR, x, y + h, w, totalHeight - h + SettingsScreen.getInsets(w), true, Align.left, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user