Skip to content

Commit

Permalink
Add shiny lock option to Event Manaphy research (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Real96 authored Sep 15, 2024
1 parent 1a84eea commit 183adbf
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/Form/Gen4/Static4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ Static4::Static4(QWidget *parent) : QWidget(parent), ui(new Ui::Static4)
connect(seedToTime, &QAction::triggered, this, &Static4::seedToTime);
ui->tableViewSearcher->addAction(seedToTime);

ui->comboBoxGeneratorShiny->setup({ toInt(Shiny::Never), toInt(Shiny::Random) });
ui->comboBoxSearcherShiny->setup({ toInt(Shiny::Never), toInt(Shiny::Random) });

connect(ui->pushButtonGenerate, &QPushButton::clicked, this, &Static4::generate);
connect(ui->pushButtonSearch, &QPushButton::clicked, this, &Static4::search);
connect(ui->pushButtonProfileManager, &QPushButton::clicked, this, &Static4::profileManager);
Expand Down Expand Up @@ -209,6 +212,8 @@ void Static4::generatorPokemonIndexChanged(int index)
ui->labelGeneratorLead->setVisible(true);
ui->comboMenuGeneratorLead->setVisible(true);
}

ui->comboBoxGeneratorShiny->setCurrentIndex(ui->comboBoxGeneratorShiny->findData(toInt(staticTemplate->getShiny())));
}
}

Expand Down Expand Up @@ -330,6 +335,8 @@ void Static4::searcherPokemonIndexChanged(int index)
ui->labelSearcherLead->setVisible(true);
ui->comboMenuSearcherLead->setVisible(true);
}

ui->comboBoxSearcherShiny->setCurrentIndex(ui->comboBoxSearcherShiny->findData(toInt(staticTemplate->getShiny())));
}
}

Expand Down
50 changes: 50 additions & 0 deletions Source/Form/Gen4/Static4.ui
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,30 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="labelGeneratorShiny">
<property name="text">
<string>Shiny</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="ComboBox" name="comboBoxGeneratorShiny">
<property name="enabled">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>Never</string>
</property>
</item>
<item>
<property name="text">
<string>Random</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down Expand Up @@ -461,6 +485,30 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="labelSearcherShiny">
<property name="text">
<string>Shiny</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="ComboBox" name="comboBoxSearcherShiny">
<property name="enabled">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>Never</string>
</property>
</item>
<item>
<property name="text">
<string>Random</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down Expand Up @@ -539,6 +587,7 @@
<tabstop>comboBoxGeneratorCategory</tabstop>
<tabstop>comboBoxGeneratorPokemon</tabstop>
<tabstop>spinBoxGeneratorLevel</tabstop>
<tabstop>comboBoxGeneratorShiny</tabstop>
<tabstop>tableViewGenerator</tabstop>
<tabstop>comboMenuSearcherLead</tabstop>
<tabstop>textBoxSearcherMinDelay</tabstop>
Expand All @@ -550,6 +599,7 @@
<tabstop>comboBoxSearcherCategory</tabstop>
<tabstop>comboBoxSearcherPokemon</tabstop>
<tabstop>spinBoxSearcherLevel</tabstop>
<tabstop>comboBoxSearcherShiny</tabstop>
<tabstop>tableViewSearcher</tabstop>
</tabstops>
<resources/>
Expand Down

0 comments on commit 183adbf

Please sign in to comment.