save works!
This commit is contained in:
@@ -511,6 +511,7 @@ namespace Game
|
||||
if (ImGui::Begin("Puzzles"))
|
||||
{
|
||||
ImGui::Text("List");
|
||||
ImGui::Separator();
|
||||
for (int32_t i = 0; i < BX_COUNTOF(level.Puzzles); ++i)
|
||||
{
|
||||
auto& puzzleData = level.Puzzles[i].Data;
|
||||
@@ -524,10 +525,10 @@ namespace Game
|
||||
if (isSelected)
|
||||
{
|
||||
ImGui::PushID("edit field");
|
||||
ImGui::InputText("", puzzleData.PuzzleName, sizeof(Puzzle::PuzzleData::PuzzleName));
|
||||
ImGui::InputText("", puzzleData.PuzzleName, sizeof(Generated::PuzzleData::PuzzleName));
|
||||
ImGui::PopID();
|
||||
|
||||
if (!puzzleData.RenderDebugUI())
|
||||
if (!Generated::RenderDebugUI(puzzleData))
|
||||
{
|
||||
debug.SelectedDebugLevel = UINT16_MAX;
|
||||
}
|
||||
@@ -540,13 +541,6 @@ namespace Game
|
||||
GetInstance().GameLevel.Update();
|
||||
GetInstance().GameLevel.Render(MainViewID, Models, Materials);
|
||||
|
||||
// bgfx::dbgTextPrintf(1, 1, 0x0F, "Time: %.1fs", GetInstance().Time.Now);
|
||||
// for (int32_t i = 0; i < (int32_t)PerfCounterType::COUNT; ++i)
|
||||
// {
|
||||
// bgfx::dbgTextPrintf(
|
||||
// 1, 2 + i, 0x0F, "%s Max: %.3fs", PerfCounterNames[i], shared.Window.PerfCounters[i].GetMax());
|
||||
// }
|
||||
|
||||
// Finish Frame
|
||||
imguiEndFrame();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user