diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-08 09:08:57 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-08 09:08:57 +0200 |
commit | 02a47d4793d0e2204b43eec8425d529e043f775b (patch) | |
tree | df7e7d2ad1fa3a34fb438e72a60a444535e9bac8 | |
parent | Basic BlockState support (diff) | |
download | AltCraft-02a47d4793d0e2204b43eec8425d529e043f775b.tar AltCraft-02a47d4793d0e2204b43eec8425d529e043f775b.tar.gz AltCraft-02a47d4793d0e2204b43eec8425d529e043f775b.tar.bz2 AltCraft-02a47d4793d0e2204b43eec8425d529e043f775b.tar.lz AltCraft-02a47d4793d0e2204b43eec8425d529e043f775b.tar.xz AltCraft-02a47d4793d0e2204b43eec8425d529e043f775b.tar.zst AltCraft-02a47d4793d0e2204b43eec8425d529e043f775b.zip |
-rw-r--r-- | src/Render.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |