[CLEANUP] Moved title and slogan to Configuration

This commit is contained in:
Emmastone
2016-04-28 02:14:11 +01:00
parent 800727a727
commit 83b7696ac1
2 changed files with 5 additions and 4 deletions
@@ -26,4 +26,7 @@ public class Configuration {
public static final String BUGSNAG_API = "d79752cf94dd4beb24c3d312a8609f53";
public static final Version BOT_VERSION = ProjectProperties.getProjectVersion();
public static final String BOT_TITLE = "Parabot";
public static final String BOT_SLOGAN = "The best RuneScape private server bot";
}
@@ -32,8 +32,6 @@ public class VerboseLoader extends JPanel implements ProgressListener {
public static final int STATE_LOADING = 1;
private static final int STATE_SERVER_SELECT = 2;
private int currentState;
private static final String titleName = "Parabot";
private static final String sloganText = "The best RuneScape private server bot";
private static AccountManager manager;
@@ -216,11 +214,11 @@ public class VerboseLoader extends JPanel implements ProgressListener {
g.setFont(Fonts.getResource("leelawadee.ttf", 30));
g.getFont().deriveFont(Font.BOLD);
g.drawString(titleName, 20, 50);
g.drawString(Configuration.BOT_TITLE, 20, 50);
g.setFont(Fonts.getResource("leelawadee.ttf", 15));
g.getFont().deriveFont(Font.ITALIC);
g.drawString(sloganText, 20, 85);
g.drawString(Configuration.BOT_SLOGAN, 20, 85);
if (fontMetrics == null) {
fontMetrics = g.getFontMetrics();