Merge pull request #20 from StillGreen-san/fix-selected-block-text
fix "Selected Block" text display
This commit is contained in:
commit
ccacb3088f
@ -511,7 +511,7 @@ int main(int argc, char *argv[])
|
||||
ImGui::Text("Chunks: %d (%d rendered)", Planet::planet->numChunks, Planet::planet->numChunksRendered);
|
||||
ImGui::Text("Position: x: %f, y: %f, z: %f", camera.Position.x, camera.Position.y, camera.Position.z);
|
||||
ImGui::Text("Direction: x: %f, y: %f, z: %f", camera.Front.x, camera.Front.y, camera.Front.z);
|
||||
ImGui::Text("Selected Block: %s", Blocks::blocks[selectedBlock].blockName);
|
||||
ImGui::Text("Selected Block: %s", Blocks::blocks[selectedBlock].blockName.c_str());
|
||||
if (ImGui::SliderInt("Render Distance", &Planet::planet->renderDistance, 0, 30))
|
||||
Planet::planet->ClearChunkQueue();
|
||||
if (ImGui::SliderInt("Render Height", &Planet::planet->renderHeight, 0, 10))
|
||||
|
@ -23,7 +23,7 @@ namespace Blocks
|
||||
|
||||
Block(0, 2, 1, 3, Block::LEAVES, "Leaves"), // Leaves
|
||||
Block(1, 2, 2, 3, Block::BILLBOARD, "Grass"), // Grass
|
||||
Block(3, 0, 4, 1, Block::BILLBOARD, "Tall Grass Bot"), // Tall Grass Bottom
|
||||
Block(3, 0, 4, 1, Block::BILLBOARD, "Tall Grass Bottom"), // Tall Grass Bottom
|
||||
Block(3, 1, 4, 2, Block::BILLBOARD, "Tall Grass Top"), // Tall Grass Top
|
||||
Block(0, 3, 1, 4, Block::BILLBOARD, "Poppy"), // Poppy
|
||||
Block(2, 2, 3, 3, Block::BILLBOARD, "White Tulip"), // White Tulip
|
||||
|
Loading…
Reference in New Issue
Block a user