Fix for cursor not being displayed when asked to display (#1574)

This commit is contained in:
michabr
2021-06-24 22:19:52 -07:00
committed by GitHub
parent 8530e783ca
commit 03138f4936
5 changed files with 2 additions and 37 deletions
@@ -18,11 +18,6 @@ public:
// Public functions
//! Initialize the UI system. This should be called when all other systems that the UI
//! system depends upon are initialized. Once the engine is fully modularized this
//! function will be unnecessary.
virtual void InitializeSystem() {}
//! Register a component type with the UI system.
//! The order in which component types are registered is the order that they show up in
//! the add component and in the properties pane.
-1
View File
@@ -431,7 +431,6 @@ private:
bool InitFileSystem();
bool InitFileSystem_LoadEngineFolders(const SSystemInitParams& initParams);
bool InitAudioSystem(const SSystemInitParams& initParams);
bool InitShine(const SSystemInitParams& initParams);
//@}
-24
View File
@@ -852,16 +852,6 @@ bool CSystem::InitVTuneProfiler()
return true;
}
/////////////////////////////////////////////////////////////////////////////////
bool CSystem::InitShine([[maybe_unused]] const SSystemInitParams& initParams)
{
LOADING_TIME_PROFILE_SECTION(GetISystem());
EBUS_EVENT(UiSystemBus, InitializeSystem);
return true;
}
//////////////////////////////////////////////////////////////////////////
void CSystem::InitLocalization()
{
@@ -1550,20 +1540,6 @@ AZ_POP_DISABLE_WARNING
}
m_Time.ResetTimer();
//////////////////////////////////////////////////////////////////////////
// UI. Should be after input and hardware mouse
//////////////////////////////////////////////////////////////////////////
if (!m_bDedicatedServer)
{
AZ_Printf(AZ_TRACE_SYSTEM_WINDOW, "UI system initialization");
INDENT_LOG_DURING_SCOPE();
if (!InitShine(startupParams))
{
return false;
}
}
InlineInitializationProcessing("CSystem::Init InitShine");
// CONSOLE
//////////////////////////////////////////////////////////////////////////
if (!InitConsole())
@@ -202,12 +202,6 @@ namespace LyShine
LyShineAllocatorScope::DeactivateAllocators();
}
////////////////////////////////////////////////////////////////////////////////////////////////////
void LyShineSystemComponent::InitializeSystem()
{
BroadcastCursorImagePathname();
}
////////////////////////////////////////////////////////////////////////////////////////////////////
void LyShineSystemComponent::RegisterComponentTypeForMenuOrdering(const AZ::Uuid& typeUuid)
{
@@ -379,6 +373,8 @@ namespace LyShine
#endif
m_pLyShine = new CLyShine(gEnv->pSystem);
gEnv->pLyShine = m_pLyShine;
BroadcastCursorImagePathname();
}
void LyShineSystemComponent::OnCrySystemShutdown([[maybe_unused]] ISystem& system)
@@ -60,7 +60,6 @@ namespace LyShine
////////////////////////////////////////////////////////////////////////
// UiSystemBus interface implementation
void InitializeSystem() override;
void RegisterComponentTypeForMenuOrdering(const AZ::Uuid& typeUuid) override;
const AZStd::vector<AZ::Uuid>* GetComponentTypesForMenuOrdering() override;
const AZStd::list<AZ::ComponentDescriptor*>* GetLyShineComponentDescriptors();