fixed build issues, added binaries, and updated the AsyncLoadingScreen plugin directory

This commit is contained in:
Devrim Yasar
2025-04-14 13:03:05 -05:00
parent b91d8c9412
commit cc50ba0c39
2200 changed files with 910483 additions and 318 deletions

View File

@ -0,0 +1,64 @@
/************************************************************************************
* *
* Copyright (C) 2020 Truong Bui. *
* Website: https://github.com/truong-bui/AsyncLoadingScreen *
* Licensed under the MIT License. See 'LICENSE' file for full license information. *
* *
************************************************************************************/
#include "AsyncLoadingScreenLibrary.h"
#include "MoviePlayer.h"
#include "AsyncLoadingScreen.h"
int32 UAsyncLoadingScreenLibrary::DisplayBackgroundIndex = -1;
int32 UAsyncLoadingScreenLibrary::DisplayTipTextIndex = -1;
int32 UAsyncLoadingScreenLibrary::DisplayMovieIndex = -1;
bool UAsyncLoadingScreenLibrary::bShowLoadingScreen = true;
void UAsyncLoadingScreenLibrary::SetDisplayBackgroundIndex(int32 BackgroundIndex)
{
UAsyncLoadingScreenLibrary::DisplayBackgroundIndex = BackgroundIndex;
}
void UAsyncLoadingScreenLibrary::SetDisplayTipTextIndex(int32 TipTextIndex)
{
UAsyncLoadingScreenLibrary::DisplayTipTextIndex = TipTextIndex;
}
void UAsyncLoadingScreenLibrary::SetDisplayMovieIndex(int32 MovieIndex)
{
UAsyncLoadingScreenLibrary::DisplayMovieIndex = MovieIndex;
}
void UAsyncLoadingScreenLibrary::SetEnableLoadingScreen(bool bIsEnableLoadingScreen)
{
bShowLoadingScreen = bIsEnableLoadingScreen;
}
void UAsyncLoadingScreenLibrary::StopLoadingScreen()
{
GetMoviePlayer()->StopMovie();
}
void UAsyncLoadingScreenLibrary::PreloadBackgroundImages()
{
if (FAsyncLoadingScreenModule::IsAvailable())
{
FAsyncLoadingScreenModule& LoadingScreenModule = FAsyncLoadingScreenModule::Get();
if (LoadingScreenModule.IsPreloadBackgroundImagesEnabled())
{
LoadingScreenModule.LoadBackgroundImages();
}
}
}
void UAsyncLoadingScreenLibrary::RemovePreloadedBackgroundImages()
{
if (FAsyncLoadingScreenModule::IsAvailable())
{
FAsyncLoadingScreenModule& LoadingScreenModule = FAsyncLoadingScreenModule::Get();
LoadingScreenModule.RemoveAllBackgroundImages();
}
}