mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
the former black screen at match start: understood how it happens but don't know how to fix yet.
This commit is contained in:
@@ -110,8 +110,9 @@ public enum VMatchUI implements IVTopLevelUI {
|
|||||||
// Add extra hands to existing hand panel.
|
// Add extra hands to existing hand panel.
|
||||||
for (int i = 0; i < lstHands.size(); i++) {
|
for (int i = 0; i < lstHands.size(); i++) {
|
||||||
// If already in layout, no need to add again.
|
// If already in layout, no need to add again.
|
||||||
if (lstHands.get(i).getParentCell() == null) {
|
if (lstHands.get(i).getParentCell() == null) { // if i == 0, we get NPE in two lines
|
||||||
lstHands.get(0).getParentCell().addDoc(lstHands.get(i));
|
DragCell cellWithHand = lstHands.get(0).getParentCell();
|
||||||
|
cellWithHand.addDoc(lstHands.get(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,11 +152,6 @@ public enum VMatchUI implements IVTopLevelUI {
|
|||||||
this.lstHands = lst0;
|
this.lstHands = lst0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return {@link java.util.List}<{@link forge.gui.match.nonsigleton.VHand}> */
|
|
||||||
public List<VHand> getHandViews() {
|
|
||||||
return lstHands;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @return {@link javax.swing.JButton} */
|
/** @return {@link javax.swing.JButton} */
|
||||||
public JButton getBtnCancel() {
|
public JButton getBtnCancel() {
|
||||||
return VMessage.SINGLETON_INSTANCE.getBtnCancel();
|
return VMessage.SINGLETON_INSTANCE.getBtnCancel();
|
||||||
|
|||||||
Reference in New Issue
Block a user