mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 08:02:23 -07:00
Rename CogWindow plugin to Cog.
Fix Config saving not working
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#if ENABLE_COG
|
||||
#include "CogAll.h"
|
||||
#include "CogSampleWindow_Team.h"
|
||||
#include "CogWindowManager.h"
|
||||
#include "CogSubsystem.h"
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -14,10 +14,12 @@ void UCogSampleGameInstance::Init()
|
||||
Super::Init();
|
||||
|
||||
#if ENABLE_COG
|
||||
if (UCogWindowManager* CogSubSystem = GetSubsystem<UCogWindowManager>())
|
||||
if (UCogSubsystem* CogSubSystem = GetSubsystem<UCogSubsystem>())
|
||||
{
|
||||
Cog::AddAllWindows(*CogSubSystem);
|
||||
CogSubSystem->AddWindow<FCogSampleWindow_Team>("Gameplay.Team");
|
||||
|
||||
CogSubSystem->Activate();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user