|
|
@@ -3,6 +3,7 @@ package org.leumasjaffe.charsheet.view.magic;
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
|
import org.leumasjaffe.charsheet.controller.inventory.PopClickListener;
|
|
|
+import org.leumasjaffe.charsheet.model.DDCharacterClass;
|
|
|
import org.leumasjaffe.charsheet.model.magic.DDSpell;
|
|
|
|
|
|
import java.awt.GridBagLayout;
|
|
|
@@ -19,7 +20,7 @@ public class SpellLine extends JPanel {
|
|
|
*/
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
- public SpellLine(final DDSpell spell) {
|
|
|
+ public SpellLine(final DDCharacterClass dclass, final DDSpell spell) {
|
|
|
GridBagLayout gridBagLayout = new GridBagLayout();
|
|
|
gridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
|
|
gridBagLayout.rowHeights = new int[]{0, 0};
|
|
|
@@ -100,7 +101,7 @@ public class SpellLine extends JPanel {
|
|
|
gbc_lblAction_1.gridy = 0;
|
|
|
add(lblRange, gbc_lblAction_1);
|
|
|
|
|
|
- addMouseListener(new PopClickListener(new SpellMenu(spell)));
|
|
|
+ addMouseListener(new PopClickListener(new SpellMenu(dclass, spell)));
|
|
|
}
|
|
|
|
|
|
}
|