diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-02-03 18:42:25 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-02-03 18:42:25 +0100 |
commit | 7492187ad2e16c7398ca4ed812a57045c3d42d68 (patch) | |
tree | 0bfc9a274bf1616b5220b9567ff1c422f4391b12 /src/Render.cpp | |
parent | Implemented basic digging (diff) | |
download | AltCraft-7492187ad2e16c7398ca4ed812a57045c3d42d68.tar AltCraft-7492187ad2e16c7398ca4ed812a57045c3d42d68.tar.gz AltCraft-7492187ad2e16c7398ca4ed812a57045c3d42d68.tar.bz2 AltCraft-7492187ad2e16c7398ca4ed812a57045c3d42d68.tar.lz AltCraft-7492187ad2e16c7398ca4ed812a57045c3d42d68.tar.xz AltCraft-7492187ad2e16c7398ca4ed812a57045c3d42d68.tar.zst AltCraft-7492187ad2e16c7398ca4ed812a57045c3d42d68.zip |
Diffstat (limited to 'src/Render.cpp')
-rw-r--r-- | src/Render.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Render.cpp b/src/Render.cpp index f53cc91..534782e 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -291,7 +291,7 @@ void Render::RenderGui() { ImGui::Text("Player pos: %.1f %.1f %.1f OnGround=%d", world->GameStatePtr()->player->pos.x, world->GameStatePtr()->player->pos.y, world->GameStatePtr()->player->pos.z, world->GameStatePtr()->player->onGround); ImGui::Text("Player vel: %.1f %.1f %.1f", world->GameStatePtr()->player->vel.x, world->GameStatePtr()->player->vel.y, world->GameStatePtr()->player->vel.z); ImGui::Text("Player health: %.1f/%.1f", world->GameStatePtr()->g_PlayerHealth, 20.0f); - ImGui::Text("Selected block: %d %d %d",world->GameStatePtr()->selectedBlock.x,world->GameStatePtr()->selectedBlock.y,world->GameStatePtr()->selectedBlock.z); + ImGui::Text("Selected block: %d %d %d : %.1f",world->GameStatePtr()->selectedBlock.x,world->GameStatePtr()->selectedBlock.y,world->GameStatePtr()->selectedBlock.z,world->GameStatePtr()->distanceToSelectedBlock); } ImGui::End(); @@ -476,6 +476,12 @@ void Render::RenderGui() { } case State::InitialLoading: break; + case State::Playing: { + ImGui::SetNextWindowPosCenter(); + ImGui::Begin("",0,windowFlags); + ImGui::End(); + break; + } } ImGui::Render(); |