mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): show cursor height and position at top of Sculpt panel
This commit is contained in:
parent
ec8e3a41b5
commit
da79244fc5
1 changed files with 6 additions and 0 deletions
|
|
@ -503,6 +503,12 @@ void EditorUI::renderBrushPanel(EditorApp& app) {
|
|||
ImGui::TextColored(ImVec4(0.6f, 0.6f, 0.6f, 1.0f), "Load or create terrain first");
|
||||
ImGui::End(); return;
|
||||
}
|
||||
// Show cursor height at top of panel for quick reference
|
||||
auto& cursorBrush = app.getTerrainEditor().brush();
|
||||
auto cp = cursorBrush.getPosition();
|
||||
ImGui::TextColored(ImVec4(0.7f, 0.8f, 1.0f, 1.0f),
|
||||
"Height: %.1f (%.0f, %.0f)", cp.z, cp.x, cp.y);
|
||||
ImGui::Separator();
|
||||
auto& s = app.getTerrainEditor().brush().settings();
|
||||
const char* modes[] = {"Raise", "Lower", "Smooth", "Flatten", "Level", "Erode"};
|
||||
int idx = static_cast<int>(s.mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue