mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Added count of stack to tab.
This commit is contained in:
@@ -152,6 +152,9 @@ public class ViewTabber {
|
|||||||
|
|
||||||
this.pnlStack.removeAll();
|
this.pnlStack.removeAll();
|
||||||
this.vtpTabber.showTab(0);
|
this.vtpTabber.showTab(0);
|
||||||
|
|
||||||
|
this.vtpTabber.getAllVTabs().get(0).setText("Stack : " + stack.size());
|
||||||
|
|
||||||
final Font font = this.skin.getFont1().deriveFont(Font.PLAIN, 14);
|
final Font font = this.skin.getFont1().deriveFont(Font.PLAIN, 14);
|
||||||
final Border border = new MatteBorder(0, 0, 1, 0, this.skin.getClrBorders());
|
final Border border = new MatteBorder(0, 0, 1, 0, this.skin.getClrBorders());
|
||||||
|
|
||||||
|
|||||||
@@ -148,9 +148,9 @@ public class FVerticalTabPanel extends FPanel {
|
|||||||
* provide vertical-ness. Also manages root level hover and click effects.
|
* provide vertical-ness. Also manages root level hover and click effects.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private class VTab extends JPanel {
|
public class VTab extends JPanel {
|
||||||
private final String msg;
|
private String msg;
|
||||||
private final int id;
|
private int id;
|
||||||
private int w;
|
private int w;
|
||||||
|
|
||||||
// ID is used to retrieve this tab from the list of allVTabs.
|
// ID is used to retrieve this tab from the list of allVTabs.
|
||||||
@@ -211,5 +211,14 @@ public class FVerticalTabPanel extends FPanel {
|
|||||||
at.rotate(Math.toRadians(-90), 0, 0);
|
at.rotate(Math.toRadians(-90), 0, 0);
|
||||||
g2d.setTransform(at);
|
g2d.setTransform(at);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @param txt0   String */
|
||||||
|
public void setText(String txt0) {
|
||||||
|
this.msg = txt0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<VTab> getAllVTabs() {
|
||||||
|
return allVTabs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user