mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Added CustomPackDialog for user constructed PackTypes.
There is no UI for using these custom types yet. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1318 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -20,6 +20,19 @@ class PackTotalsPanel;
|
||||
struct CardSelectEvent;
|
||||
DECLARE_POINTER_TYPE(PackType);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Utility
|
||||
|
||||
// for lists of spin controls
|
||||
struct PackAmountPicker {
|
||||
PackTypeP pack;
|
||||
wxStaticText* label;
|
||||
wxSpinCtrl* value;
|
||||
|
||||
PackAmountPicker() {}
|
||||
PackAmountPicker(wxWindow* parent, wxFlexGridSizer* sizer, const PackTypeP& pack);
|
||||
void destroy(wxFlexGridSizer* sizer);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : RandomPackPanel
|
||||
|
||||
/// A SetWindowPanel for creating random booster packs
|
||||
@@ -59,16 +72,11 @@ class RandomPackPanel : public SetWindowPanel {
|
||||
wxButton* generate_button;
|
||||
wxRadioButton* seed_random, *seed_fixed;
|
||||
PackTotalsPanel* totals;
|
||||
|
||||
struct PackItem {
|
||||
PackTypeP pack;
|
||||
wxStaticText* label;
|
||||
wxSpinCtrl* value;
|
||||
};
|
||||
vector<PackItem> packs;
|
||||
vector<PackAmountPicker> pickers;
|
||||
|
||||
#if USE_NEW_PACK_SYSTEM
|
||||
PackGenerator generator;
|
||||
int last_seed;
|
||||
#endif
|
||||
|
||||
/// Actual intialization of the controls
|
||||
|
||||
Reference in New Issue
Block a user