UI for new sprite option

This commit is contained in:
Antoine Pilote
2023-09-30 14:27:38 -04:00
parent db1ce08c42
commit 27d1af86af
4 changed files with 44 additions and 3 deletions

View File

@@ -65,6 +65,22 @@ public:
ImGui::Checkbox("##lockYRotation", &component.LockYRotation);
ImGui::TableNextColumn();
ComponentTableReset(component.LockYRotation, false);
}
ImGui::TableNextColumn();
{
ImGui::Text("Position Based");
if (ImGui::BeginItemTooltip())
{
ImGui::Text("Orientation is based on the position of the camera or the orientation of the camera.");
ImGui::EndTooltip();
}
ImGui::TableNextColumn();
ImGui::Checkbox("##positionbased", &component.PositionFacing);
ImGui::TableNextColumn();
ComponentTableReset(component.LockYRotation, false);
}
}