mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 14:23:44 -07:00
Fix locations and tricks tabs not updating live when applying preset with new system.
This commit is contained in:
parent
ff9575ac12
commit
78e7061247
1 changed files with 7 additions and 2 deletions
|
@ -3644,14 +3644,15 @@ bool GenerateRandomizer(std::string seed /*= ""*/) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool locationsTabOpen = false;
|
||||||
|
static bool tricksTabOpen = false;
|
||||||
|
|
||||||
void RandomizerSettingsWindow::DrawElement() {
|
void RandomizerSettingsWindow::DrawElement() {
|
||||||
auto ctx = Rando::Context::GetInstance();
|
auto ctx = Rando::Context::GetInstance();
|
||||||
if (generated) {
|
if (generated) {
|
||||||
generated = 0;
|
generated = 0;
|
||||||
randoThread.join();
|
randoThread.join();
|
||||||
}
|
}
|
||||||
static bool locationsTabOpen = false;
|
|
||||||
static bool tricksTabOpen = false;
|
|
||||||
bool disableEditingRandoSettings =
|
bool disableEditingRandoSettings =
|
||||||
CVarGetInteger(CVAR_GENERAL("RandoGenerating"), 0) || CVarGetInteger(CVAR_GENERAL("OnFileSelectNameEntry"), 0);
|
CVarGetInteger(CVAR_GENERAL("RandoGenerating"), 0) || CVarGetInteger(CVAR_GENERAL("OnFileSelectNameEntry"), 0);
|
||||||
|
|
||||||
|
@ -4322,7 +4323,11 @@ void RandomizerSettingsWindow::SetNeedsUpdate() {
|
||||||
|
|
||||||
void RandomizerSettingsWindow::UpdateElement() {
|
void RandomizerSettingsWindow::UpdateElement() {
|
||||||
if (mNeedsUpdate) {
|
if (mNeedsUpdate) {
|
||||||
|
RandomizerCheckObjects::UpdateImGuiVisibility();
|
||||||
mSettings->UpdateOptionProperties();
|
mSettings->UpdateOptionProperties();
|
||||||
|
locationsTabOpen = false;
|
||||||
|
tricksTabOpen = false;
|
||||||
|
mNeedsUpdate = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue