mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Allow selected card from random pack to be exported
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1076 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -316,10 +316,15 @@ void RandomPackPanel::generate() {
|
||||
|
||||
// ----------------------------------------------------------------------------- : Selection
|
||||
|
||||
CardP RandomPackPanel::selectedCard() const {
|
||||
return card_list->getCard();
|
||||
}
|
||||
|
||||
void RandomPackPanel::selectCard(const CardP& card) {
|
||||
preview->setCard(card);
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : Clipboard
|
||||
|
||||
bool RandomPackPanel::canCopy() const { return card_list->canCopy(); }
|
||||
|
||||
@@ -36,6 +36,7 @@ class RandomPackPanel : public SetWindowPanel {
|
||||
virtual void onCommand(int id);
|
||||
|
||||
// --------------------------------------------------- : Selection
|
||||
virtual CardP selectedCard() const;
|
||||
virtual void selectCard(const CardP& card);
|
||||
|
||||
// --------------------------------------------------- : Clipboard
|
||||
|
||||
Reference in New Issue
Block a user