Minor preloader on skin changer update.

This commit is contained in:
Doublestrike
2012-01-31 04:40:48 +00:00
parent 7e5777a094
commit 5da3735fbe
2 changed files with 7 additions and 4 deletions

View File

@@ -94,12 +94,14 @@ public class QuestFileLister extends JPanel {
this.add(rowTitle, "w 98%!, h 30px!, gapleft 1%"); this.add(rowTitle, "w 98%!, h 30px!, gapleft 1%");
RowPanel row; RowPanel row;
String mode;
for (QuestData qd : sorted) { for (QuestData qd : sorted) {
mode = qd.getMode().equals("Realistic") ? "Classic" : qd.getMode();
row = new RowPanel(qd); row = new RowPanel(qd);
row.add(new DeleteButton(row), "w 15%!, h 20px!, gap 0 0 5px 0"); row.add(new DeleteButton(row), "w 15%!, h 20px!, gap 0 0 5px 0");
row.add(new EditButton(row), "w 15%!, h 20px!, gaptop 5px"); row.add(new EditButton(row), "w 15%!, h 20px!, gaptop 5px");
row.add(new FLabel(qd.getName()), "w 40%!, h 20px!, gap 0 0 5px 0"); row.add(new FLabel(qd.getName()), "w 40%!, h 20px!, gap 0 0 5px 0");
row.add(new FLabel(qd.getMode(), SwingConstants.CENTER), "w 15%!, h 20px!, gap 0 0 5px 0"); row.add(new FLabel(mode, SwingConstants.CENTER), "w 15%!, h 20px!, gap 0 0 5px 0");
row.add(new FLabel(qd.getWin() + "/" + qd.getLost(), SwingConstants.CENTER), "w 15%!, h 20px!, gap 0 0 5px 0"); row.add(new FLabel(qd.getWin() + "/" + qd.getLost(), SwingConstants.CENTER), "w 15%!, h 20px!, gap 0 0 5px 0");
this.add(row, "w 98%!, h 30px!, gap 1% 0 0 0"); this.add(row, "w 98%!, h 30px!, gap 1% 0 0 0");
tempRows.add(row); tempRows.add(row);

View File

@@ -62,7 +62,7 @@ public class ViewSettings extends JScrollPane {
private JRadioButton radCardTiny, radCardSmaller, radCardSmall, private JRadioButton radCardTiny, radCardSmaller, radCardSmall,
radCardMedium, radCardLarge, radCardHuge; radCardMedium, radCardLarge, radCardHuge;
private final FLabel lblTitleSkin; private final JLabel lblTitleSkin;
/** /**
* *
* Assembles swing components for "Settings" mode menu. * Assembles swing components for "Settings" mode menu.
@@ -141,8 +141,9 @@ public class ViewSettings extends JScrollPane {
final JLabel lblTitleGraphics = new SectionLabel("Graphic Options"); final JLabel lblTitleGraphics = new SectionLabel("Graphic Options");
viewport.add(lblTitleGraphics, sectionConstraints); viewport.add(lblTitleGraphics, sectionConstraints);
lblTitleSkin = new FLabel("Choose Skin"); lblTitleSkin = new JLabel("Choose Skin");
lblTitleSkin.setFontStyle(Font.BOLD); lblTitleSkin.setFont(skin.getBoldFont(14));
lblTitleSkin.setForeground(skin.getColor(FSkin.Colors.CLR_TEXT));
final JLabel lblNoteSkin = new NoteLabel("Various user-created themes for Forge backgrounds, fonts, and colors."); final JLabel lblNoteSkin = new NoteLabel("Various user-created themes for Forge backgrounds, fonts, and colors.");
viewport.add(lblTitleSkin, regularConstraints); viewport.add(lblTitleSkin, regularConstraints);
viewport.add(lblNoteSkin, regularConstraints); viewport.add(lblNoteSkin, regularConstraints);