mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Generated packs can now be selected for printing.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1107 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -39,6 +39,8 @@ class RandomCardList : public CardListBase {
|
||||
|
||||
using CardListBase::rebuild;
|
||||
|
||||
const vector<CardP>* getCardsPtr() const { return &cards; }
|
||||
|
||||
protected:
|
||||
virtual void getItems(vector<VoidP>& out) const;
|
||||
virtual void onChangeSet();
|
||||
@@ -328,6 +330,12 @@ void RandomPackPanel::selectCard(const CardP& card) {
|
||||
preview->setCard(card);
|
||||
}
|
||||
|
||||
void RandomPackPanel::selectionChoices(ExportCardSelectionChoices& out) {
|
||||
out.push_back(new_intrusive2<ExportCardSelectionChoice>(
|
||||
_BUTTON_("export generated packs"),
|
||||
card_list->getCardsPtr()
|
||||
));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Clipboard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user