mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
Implemented seed controls on random pack panel;
seed settings and pack amounts are stored in settings git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1044 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -23,6 +23,7 @@ DECLARE_POINTER_TYPE(PackType);
|
||||
class RandomPackPanel : public SetWindowPanel {
|
||||
public:
|
||||
RandomPackPanel(Window* parent, int id);
|
||||
~RandomPackPanel();
|
||||
|
||||
// --------------------------------------------------- : UI
|
||||
|
||||
@@ -44,6 +45,8 @@ class RandomPackPanel : public SetWindowPanel {
|
||||
wxTextCtrl* seed; ///< Seed value
|
||||
wxFlexGridSizer* packsSizer;
|
||||
wxFlexGridSizer* totalsSizer;
|
||||
wxButton* generate_button;
|
||||
wxRadioButton* seed_random, *seed_fixed;
|
||||
|
||||
struct PackItem {
|
||||
PackTypeP pack;
|
||||
@@ -55,9 +58,17 @@ class RandomPackPanel : public SetWindowPanel {
|
||||
struct TotalItem {
|
||||
};
|
||||
vector<TotalItem> totals;
|
||||
int total_packs;
|
||||
|
||||
/// Update the total count of each card type
|
||||
void updateTotals();
|
||||
/// Get a seed value
|
||||
int getSeed();
|
||||
void setSeed(int seed);
|
||||
/// Generate the cards
|
||||
void generate();
|
||||
/// Store the settings
|
||||
void storeSettings();
|
||||
public:
|
||||
typedef PackItem PackItem_for_typeof;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user