Remove legacy renderer dependencies in LyShine and move LyShine headers to gem (#6049)
* Remove CryRenderer dependencies Signed-off-by: abrmich <abrmich@amazon.com> * Fix non-unity compile error Signed-off-by: abrmich <abrmich@amazon.com> * Remove ITexture.h reference Signed-off-by: abrmich <abrmich@amazon.com> * Simple file moves from CryCommon to LyShine Gem Signed-off-by: abrmich <abrmich@amazon.com> * More simple file moves from CryCommon to LyShine Gem Signed-off-by: abrmich <abrmich@amazon.com> * Move more headers from CryCommon to LyShine Gem Signed-off-by: abrmich <abrmich@amazon.com> * Add LyShine gem module as a build dependency to fix compile error in some gems Signed-off-by: abrmich <abrmich@amazon.com>
This commit is contained in:
@@ -103,6 +103,7 @@ namespace LyShineEditor
|
||||
void LyShineEditorSystemComponent::Activate()
|
||||
{
|
||||
AzToolsFramework::EditorEventsBus::Handler::BusConnect();
|
||||
AzToolsFramework::EditorEntityContextNotificationBus::Handler::BusConnect();
|
||||
LyShine::LyShineRequestBus::Handler::BusConnect();
|
||||
}
|
||||
|
||||
@@ -118,6 +119,7 @@ namespace LyShineEditor
|
||||
}
|
||||
LyShine::LyShineRequestBus::Handler::BusDisconnect();
|
||||
AzToolsFramework::EditorEventsBus::Handler::BusDisconnect();
|
||||
AzToolsFramework::EditorEntityContextNotificationBus::Handler::BusDisconnect();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -204,4 +206,14 @@ namespace LyShineEditor
|
||||
UiEditorDLLBus::Broadcast(&UiEditorDLLInterface::OpenSourceCanvasFile, absoluteName);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
void LyShineEditorSystemComponent::OnStopPlayInEditor()
|
||||
{
|
||||
// reset UI system
|
||||
if (gEnv->pLyShine)
|
||||
{
|
||||
gEnv->pLyShine->Reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user