mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
prevent bazaar current shop button from becoming unselected
This commit is contained in:
@@ -186,7 +186,7 @@ public class SSubmenuQuestUtil {
|
|||||||
|
|
||||||
view0.getLblWinStreak().setText(
|
view0.getLblWinStreak().setText(
|
||||||
"<html>Win streak: " + qA.getWinStreakCurrent()
|
"<html>Win streak: " + qA.getWinStreakCurrent()
|
||||||
+ "<br> (Best:" + qA.getWinStreakBest() + ")</html>");
|
+ "<br> (Best: " + qA.getWinStreakBest() + ")</html>");
|
||||||
|
|
||||||
// Current deck message
|
// Current deck message
|
||||||
final JLabel lblCurrentDeck = view0.getLblCurrentDeck();
|
final JLabel lblCurrentDeck = view0.getLblCurrentDeck();
|
||||||
|
|||||||
@@ -219,11 +219,9 @@ public class FLabel extends JLabel implements ILocalRepaint {
|
|||||||
private final Color d50 = FSkin.stepColor(clrMain, -50);
|
private final Color d50 = FSkin.stepColor(clrMain, -50);
|
||||||
private final Color d30 = FSkin.stepColor(clrMain, -30);
|
private final Color d30 = FSkin.stepColor(clrMain, -30);
|
||||||
private final Color d10 = FSkin.stepColor(clrMain, -10);
|
private final Color d10 = FSkin.stepColor(clrMain, -10);
|
||||||
private final Color l00 = FSkin.stepColor(clrMain, 0);
|
|
||||||
private final Color l10 = FSkin.stepColor(clrMain, 10);
|
private final Color l10 = FSkin.stepColor(clrMain, 10);
|
||||||
private final Color l20 = FSkin.stepColor(clrMain, 20);
|
private final Color l20 = FSkin.stepColor(clrMain, 20);
|
||||||
private final Color l30 = FSkin.stepColor(clrMain, 30);
|
private final Color l30 = FSkin.stepColor(clrMain, 30);
|
||||||
private final Color l40 = FSkin.stepColor(clrMain, 40);
|
|
||||||
|
|
||||||
// Custom properties, assigned either at realization (using builder)
|
// Custom properties, assigned either at realization (using builder)
|
||||||
// or dynamically (using methods below).
|
// or dynamically (using methods below).
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class ViewBazaarUI extends FPanel {
|
|||||||
|
|
||||||
final FLabel lbl = new FLabel.ButtonBuilder().text(s + " ")
|
final FLabel lbl = new FLabel.ButtonBuilder().text(s + " ")
|
||||||
.fontAlign(SwingConstants.RIGHT).iconInBackground(true)
|
.fontAlign(SwingConstants.RIGHT).iconInBackground(true)
|
||||||
.fontSize(16).icon(FSkin.getIcon(bazaar.getStall(s).getIcon())).selectable().build();
|
.fontSize(16).icon(FSkin.getIcon(bazaar.getStall(s).getIcon())).build();
|
||||||
|
|
||||||
pnlAllStalls.add(lbl, "h 80px!, w 90%!, gap 0 0 10px 10px");
|
pnlAllStalls.add(lbl, "h 80px!, w 90%!, gap 0 0 10px 10px");
|
||||||
|
|
||||||
@@ -67,6 +67,7 @@ public class ViewBazaarUI extends FPanel {
|
|||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
if (previousSelected != null) { previousSelected.setSelected(false); }
|
if (previousSelected != null) { previousSelected.setSelected(false); }
|
||||||
|
lbl.setSelected(true);
|
||||||
previousSelected = lbl;
|
previousSelected = lbl;
|
||||||
control.showStall(s);
|
control.showStall(s);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user