Rename CogWindow plugin to Cog.

Fix Config saving not working
This commit is contained in:
Arnaud Jamin
2025-02-12 13:56:06 -05:00
parent 6d9494b685
commit 32ca4dc2ba
79 changed files with 993 additions and 802 deletions
@@ -25,7 +25,7 @@ public class CogCommonUI : ModuleRules
"CogCommon",
"CogImgui",
"CogDebug",
"CogWindow",
"Cog",
"CommonUI",
"InputCore",
}
@@ -4,11 +4,15 @@
ERouteUIInputResult UCogCommonUI_ActionRouter::ProcessInput(FKey Key, EInputEvent InputEvent) const
{
UWorld* World = GetWorld();
if (FCogImguiInputHelper::IsTopPriorityKey(World, Key))
if (const UWorld* World = GetWorld())
{
return ERouteUIInputResult::Unhandled;
if (const UPlayerInput* PlayerInput = FCogImguiInputHelper::GetPlayerInput(*World))
{
if (FCogImguiInputHelper::IsTopPriorityKey(*PlayerInput, Key))
{
return ERouteUIInputResult::Unhandled;
}
}
}
return UCommonUIActionRouterBase::ProcessInput(Key, InputEvent);