cheats and window menu persistence

This commit is contained in:
Arnaud Jamin
2023-10-10 02:10:18 -04:00
parent c9a3013bb9
commit 2d5e764e19
32 changed files with 154 additions and 85 deletions
@@ -20,9 +20,9 @@ void UCogInputWindow_Actions::RenderHelp()
}
//--------------------------------------------------------------------------------------------------------------------------
void UCogInputWindow_Actions::PreRender(ImGuiWindowFlags& WindowFlags)
UCogInputWindow_Actions::UCogInputWindow_Actions()
{
WindowFlags = ImGuiWindowFlags_MenuBar;
bHasMenu = true;
}
//--------------------------------------------------------------------------------------------------------------------------
@@ -237,10 +237,6 @@ void UCogInputWindow_Gamepad::RenderContent()
}
}
}
else
{
ImGui::Text("No Actions in Action Asset");
}
}
else
{
@@ -15,14 +15,14 @@ class COGINPUT_API UCogInputWindow_Actions : public UCogWindow
public:
TWeakObjectPtr<UCogInputDataAsset_Actions> ActionsAsset;
UCogInputWindow_Actions();
TWeakObjectPtr<UCogInputDataAsset_Actions> ActionsAsset;
protected:
void RenderHelp();
virtual void PreRender(ImGuiWindowFlags& WindowFlags) override;
virtual void RenderContent() override;
virtual void RenderTick(float DeltaSeconds) override;
@@ -13,10 +13,13 @@ class COGINPUT_API UCogInputWindow_Gamepad : public UCogWindow
GENERATED_BODY()
public:
UCogInputWindow_Gamepad();
virtual void PreRender(ImGuiWindowFlags& WindowFlags) override;
virtual void RenderContent() override;
virtual void RenderTick(float DeltaSeconds) override;
TWeakObjectPtr<UCogInputDataAsset_Actions> ActionsAsset;