Application: tweak decal editor layout.

This commit is contained in:
Guillaume Jacquemin 2023-12-04 13:44:57 +01:00
parent 132c46da89
commit ca7b71fb36
Signed by: williamjcm
SSH Key Fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A
1 changed files with 2 additions and 0 deletions

View File

@ -468,6 +468,7 @@ Application::drawDecalEditor(GameObjects::Decal& decal) {
ImGui::SameLine();
ImGui::BeginGroup();
ImGui::PushItemWidth(-1.0f);
ImGui::PushMultiItemsWidths(3, ImGui::CalcItemWidth());
ImGui::DragFloat("##PosX", &decal.position.x(), 1.0f, -FLT_MAX, +FLT_MAX, "X: %.3f");
ImGui::PopItemWidth();
@ -497,6 +498,7 @@ Application::drawDecalEditor(GameObjects::Decal& decal) {
ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x);
ImGui::DragFloat("##VZ", &decal.vAxis.z(), 1.0f, -FLT_MAX, +FLT_MAX, "Z: %.3f");
ImGui::PopItemWidth();
ImGui::PopItemWidth();
ImGui::EndGroup();
}