CogInput windows fixes
Fix CogInputWindow_Action reset button Fix CogInputWindow_Gamepad LockPosition option
This commit is contained in:
1 parent
f1478019e1
commit
25690a4103
2 files changed
+2
-2
No files matched your search
@@ -66,7 +66,7 @@ void FCogInputWindow_Actions::RenderContent()
|
||||
|
||||
if (ImGui::MenuItem("Reset"))
|
||||
{
|
||||
for (FCogInputMappingContextInfo Mapping : Mappings)
|
||||
for (FCogInputMappingContextInfo& Mapping : Mappings)
|
||||
{
|
||||
for (FCogInputActionInfo& Action : Mapping.Actions)
|
||||
{
|
||||
|
||||
@@ -500,7 +500,7 @@ void FCogInputWindow_Gamepad::RenderMainContextMenu()
|
||||
{
|
||||
ImGui::Checkbox("Overlay", &Config->bShowAsOverlay);
|
||||
ImGui::Checkbox("Lock Position", &Config->bLockPosition);
|
||||
ImGui::BeginDisabled(Config->bLockPosition);
|
||||
ImGui::BeginDisabled(!Config->bLockPosition);
|
||||
FCogWidgets::SetNextItemToShortWidth();
|
||||
ImGui::SliderFloat2("Alignment", &Config->Alignment.X, 0, 1.0f, "%.2f");
|
||||
FCogWidgets::SetNextItemToShortWidth();
|
||||
|
||||
Reference in new issue
Block a user