mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-04 14:48:45 +00:00
fix build
This commit is contained in:
@@ -218,4 +218,6 @@ void UCogEngineWindow_NetEmulation::DrawControls()
|
|||||||
"The ratio of incoming packets that will be dropped to simulate packet loss");
|
"The ratio of incoming packets that will be dropped to simulate packet loss");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //DO_ENABLE_NET_TEST
|
#endif //DO_ENABLE_NET_TEST
|
||||||
|
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
class UCogEngineWindow_OutputLog;
|
class UCogEngineWindow_OutputLog;
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
class UCogLogOutputDevice : public FOutputDevice
|
class UCogLogOutputDevice : public FOutputDevice
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -21,6 +22,7 @@ public:
|
|||||||
UCogEngineWindow_OutputLog* OutputLog = nullptr;
|
UCogEngineWindow_OutputLog* OutputLog = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
UCLASS(Config = Cog)
|
UCLASS(Config = Cog)
|
||||||
class COGENGINE_API UCogEngineWindow_OutputLog : public UCogWindow
|
class COGENGINE_API UCogEngineWindow_OutputLog : public UCogWindow
|
||||||
{
|
{
|
||||||
@@ -30,6 +32,10 @@ public:
|
|||||||
|
|
||||||
UCogEngineWindow_OutputLog();
|
UCogEngineWindow_OutputLog();
|
||||||
|
|
||||||
|
void AddLog(const TCHAR* Message, ELogVerbosity::Type Verbosity, const FName& Category);
|
||||||
|
|
||||||
|
void Clear();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual void RenderHelp() override;
|
virtual void RenderHelp() override;
|
||||||
@@ -38,10 +44,6 @@ protected:
|
|||||||
|
|
||||||
virtual void RenderContent() override;
|
virtual void RenderContent() override;
|
||||||
|
|
||||||
void Clear();
|
|
||||||
|
|
||||||
void AddLog(const TCHAR* Message, ELogVerbosity::Type Verbosity, const FName& Category);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
struct FLineInfo
|
struct FLineInfo
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ class COGENGINE_API UCogEngineWindow_Spawns : public UCogWindow
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
virtual void RenderHelp();
|
||||||
|
|
||||||
virtual void PreRender(ImGuiWindowFlags& WindowFlags) override;
|
virtual void PreRender(ImGuiWindowFlags& WindowFlags) override;
|
||||||
|
|
||||||
virtual void RenderContent() override;
|
virtual void RenderContent() override;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ void UCogInputWindow_Actions::RenderHelp()
|
|||||||
"This window display the current state of each Input Action. "
|
"This window display the current state of each Input Action. "
|
||||||
"It can also be used to inject inputs to help debugging. "
|
"It can also be used to inject inputs to help debugging. "
|
||||||
"The input action are read from a Input Mapping Context defined in '%s' data asset. "
|
"The input action are read from a Input Mapping Context defined in '%s' data asset. "
|
||||||
, TCHAR_TO_ANSI(*GetNameSafe(ActionAsset))
|
, TCHAR_TO_ANSI(*GetNameSafe(ActionsAsset.Get()))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,13 @@ class COGINPUT_API UCogInputWindow_Actions : public UCogWindow
|
|||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
TWeakObjectPtr<UCogInputDataAsset_Actions> ActionsAsset;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void RenderHelp()
|
void RenderHelp();
|
||||||
|
|
||||||
virtual void PreRender(ImGuiWindowFlags& WindowFlags) override;
|
virtual void PreRender(ImGuiWindowFlags& WindowFlags) override;
|
||||||
|
|
||||||
@@ -25,8 +29,6 @@ protected:
|
|||||||
|
|
||||||
virtual void DrawAxis(const char* Format, const char* ActionName, float CurrentValue, float* InjectValue);
|
virtual void DrawAxis(const char* Format, const char* ActionName, float CurrentValue, float* InjectValue);
|
||||||
|
|
||||||
TWeakObjectPtr<UCogInputDataAsset_Actions> ActionsAsset;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
UPROPERTY(Config)
|
UPROPERTY(Config)
|
||||||
|
|||||||
Reference in New Issue
Block a user