mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
CogInput windows fixes
Fix CogInputWindow_Action reset button Fix CogInputWindow_Gamepad LockPosition option
This commit is contained in:
@@ -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