From 02a47d4793d0e2204b43eec8425d529e043f775b Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 8 Aug 2018 12:08:57 +0500 Subject: Added to HUD id of selected block --- src/Render.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Render.cpp b/src/Render.cpp index 7e770fc..ae9814d 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -410,6 +410,11 @@ void Render::RenderGui() { ImGui::Text("Selected block light: %d (%d)", world->GameStatePtr()->world.GetBlockLight(world->GameStatePtr()->selectedBlock), world->GameStatePtr()->world.GetBlockSkyLight(world->GameStatePtr()->selectedBlock)); + + ImGui::Text("Selected block id: %d:%d (%s)", + world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).id, + world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).state, + AssetManager::GetAssetNameByBlockId(BlockId{ world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).id,0 }).c_str()); } ImGui::End(); -- cgit v1.2.3