mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
CogInput: UI tweaks
This commit is contained in:
@@ -84,7 +84,7 @@ void FCogWindow::Render(float DeltaTime)
|
||||
ImGui::Checkbox("Hide Menu", &bHideMenu);
|
||||
}
|
||||
|
||||
if (ImGui::Button("Reset"))
|
||||
if (ImGui::Button("Reset Settings"))
|
||||
{
|
||||
ResetConfig();
|
||||
}
|
||||
|
||||
@@ -201,15 +201,13 @@ void FCogInputWindow_Actions::RenderContent()
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("%s", ActionName.Get());
|
||||
|
||||
const ImVec4 ActiveColor(1, 0.8f, 0, 1);
|
||||
const ImVec4 InactiveColor(0.3f, 0.3f, 0.3f, 1);
|
||||
const ImVec2 ButtonSize(FCogWindowWidgets::GetFontWidth() * 10, 0);
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::BeginDisabled();
|
||||
bool Value = ActionValue.Get<bool>();
|
||||
ImGui::Checkbox("##Current", &Value);
|
||||
ImGui::EndDisabled();
|
||||
FCogWindowWidgets::PushBackColor(ImVec4(0.8f, 0.8f, 0.8f, 1));
|
||||
ImGui::Checkbox("##Current", &Value);
|
||||
FCogWindowWidgets::PopBackColor();
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
@@ -229,6 +227,12 @@ void FCogInputWindow_Actions::RenderContent()
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::BeginPopupContextItem())
|
||||
{
|
||||
ImGui::Checkbox("Repeat", &ActionInfo.bRepeat);
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort))
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
@@ -324,7 +328,9 @@ void FCogInputWindow_Actions::DrawAxis(const char* Format, const char* ActionNam
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::SetNextItemWidth(-1);
|
||||
ImGui::BeginDisabled();
|
||||
FCogWindowWidgets::PushBackColor(ImVec4(0.8f, 0.8f, 0.8f, 1));
|
||||
ImGui::SliderFloat("##Value", &CurrentValue, -1.0f, 1.0f, "%0.2f");
|
||||
FCogWindowWidgets::PopBackColor();
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
Reference in New Issue
Block a user