summaryrefslogtreecommitdiffstats
path: root/src/Render.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-20 14:38:11 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-20 14:38:11 +0200
commitbc49bcbb795c45cdb91efc6b03d93e4202e766b2 (patch)
treee3c405dacff7d8d227986d73b65311dcdb3f48a2 /src/Render.cpp
parentCorrect face culling for rotated blocks (diff)
downloadAltCraft-bc49bcbb795c45cdb91efc6b03d93e4202e766b2.tar
AltCraft-bc49bcbb795c45cdb91efc6b03d93e4202e766b2.tar.gz
AltCraft-bc49bcbb795c45cdb91efc6b03d93e4202e766b2.tar.bz2
AltCraft-bc49bcbb795c45cdb91efc6b03d93e4202e766b2.tar.lz
AltCraft-bc49bcbb795c45cdb91efc6b03d93e4202e766b2.tar.xz
AltCraft-bc49bcbb795c45cdb91efc6b03d93e4202e766b2.tar.zst
AltCraft-bc49bcbb795c45cdb91efc6b03d93e4202e766b2.zip
Diffstat (limited to 'src/Render.cpp')
-rw-r--r--src/Render.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Render.cpp b/src/Render.cpp
index 7f11dd9..58cf53d 100644
--- a/src/Render.cpp
+++ b/src/Render.cpp
@@ -420,8 +420,9 @@ void Render::RenderGui() {
world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).state,
AssetManager::GetAssetNameByBlockId(BlockId{ world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).id,0 }).c_str());
- ImGui::Text("Selected block direction: %d",
- AssetManager::GetBlockModelByBlockId(world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock)).direction);
+ ImGui::Text("Selected block variant: %s:%s",
+ TransformBlockIdToBlockStateName(world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock)).first.c_str(),
+ TransformBlockIdToBlockStateName(world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock)).second.c_str());
}
ImGui::End();