Skip to content

Commit

Permalink
Fixing the submit
Browse files Browse the repository at this point in the history
resolves #454
  • Loading branch information
t0xxxic committed Jan 28, 2024
1 parent dd77205 commit 4ecf838
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Engine/Source/Runtime/ImGui/ImGuiUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static bool ImGuiBoolProperty(const char* pName, bool& value)
return ImGui::Checkbox(pName, &value);
}

static void Text(const char *pText, float fontScale)
static void Text(const char *pText, float fontScale = 1.0f)
{
float old_fontScale = ImGui::GetFont()->Scale;
ImGui::GetFont()->Scale *= fontScale;
Expand Down Expand Up @@ -145,9 +145,9 @@ static bool ImGuiVectorProperty(const char* pName, T& value, cd::Unit unit = cd:

constexpr float labelIndetation = 10.0f;

ImGui::Indent(label_indetation);
ImGui::Indent(labelIndetation);
ImGuiUtils::Text(pName, 0.8f);
ImGui::Unindent(label_indetation);
ImGui::Unindent(labelIndetation);
ImGui::PushItemWidth(350);
ImGui::SameLine(100.0f);

Expand Down Expand Up @@ -199,13 +199,13 @@ static bool ImGuiTransformProperty(const char* pName, cd::Transform& value)
value.SetRotation(cd::Quaternion::FromPitchYawRoll(pitch, eularAngles.y(), eularAngles.z()));
dirty = true;
}
constexpr float label_indetation = 10.0f;
constexpr float labelIndetation = 10.0f;

cd::Vec3f originScale = value.GetScale();
cd::Vec3f scale = originScale;
ImGui::Indent(label_indetation);
ImGui::Indent(labelIndetation);
ImGuiUtils::Text("Scale", 0.8f);
ImGui::Unindent(label_indetation);
ImGui::Unindent(labelIndetation);
bool UniformScaleEnabled = engine::TransformComponent::DoUseUniformScale();

ImGui::NextColumn();
Expand Down

0 comments on commit 4ecf838

Please sign in to comment.