mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-06 04:51:30 -07:00
dev tools save editor: change dungeon drop down to current dungeon (#5635)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
db58c3a029
commit
05a7f728e7
1 changed files with 9 additions and 0 deletions
|
@ -1305,6 +1305,15 @@ void DrawQuestStatusTab() {
|
||||||
ImGui::Text("Dungeon Items");
|
ImGui::Text("Dungeon Items");
|
||||||
|
|
||||||
static int32_t dungeonItemsScene = SCENE_DEKU_TREE;
|
static int32_t dungeonItemsScene = SCENE_DEKU_TREE;
|
||||||
|
static int32_t lastDungeonScene = -1;
|
||||||
|
if (gPlayState != nullptr) {
|
||||||
|
int32_t sceneNum = gPlayState->sceneNum;
|
||||||
|
if (sceneNum >= SCENE_DEKU_TREE && sceneNum <= SCENE_JABU_JABU_BOSS && lastDungeonScene != sceneNum) {
|
||||||
|
dungeonItemsScene = sceneNum;
|
||||||
|
lastDungeonScene = sceneNum;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PushStyleCombobox(THEME_COLOR);
|
PushStyleCombobox(THEME_COLOR);
|
||||||
if (ImGui::BeginCombo("##DungeonSelect", SohUtils::GetSceneName(dungeonItemsScene).c_str())) {
|
if (ImGui::BeginCombo("##DungeonSelect", SohUtils::GetSceneName(dungeonItemsScene).c_str())) {
|
||||||
for (int32_t dungeonIndex = SCENE_DEKU_TREE; dungeonIndex < SCENE_JABU_JABU_BOSS + 1; dungeonIndex++) {
|
for (int32_t dungeonIndex = SCENE_DEKU_TREE; dungeonIndex < SCENE_JABU_JABU_BOSS + 1; dungeonIndex++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue