mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 22:33:43 -07:00
start implementing menu
This commit is contained in:
parent
3c06b3a6b4
commit
39a76db485
1 changed files with 11 additions and 0 deletions
|
@ -2064,6 +2064,17 @@ void DrawRandoEditor(bool& open) {
|
|||
return;
|
||||
}
|
||||
|
||||
bool doubleDefense = gSaveContext.doubleDefense != 0;
|
||||
if (ImGui::Checkbox("Double Defense", &doubleDefense)) {
|
||||
gSaveContext.doubleDefense = doubleDefense;
|
||||
gSaveContext.inventory.defenseHearts =
|
||||
gSaveContext.doubleDefense ? 20 : 0; // Set to get the border drawn in the UI
|
||||
}
|
||||
|
||||
if (ImGui::Button("Noon")) {
|
||||
gSaveContext.dayTime = 0x8000;
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue