Files
LuckerGame/code/UI/MainMenu/LoadingScreen.razor
2023-08-03 12:22:24 -04:00

32 lines
683 B
Plaintext

@using Sandbox;
@using Sandbox.UI;
@using System.Linq;
@using System.Threading.Tasks;
@using Sandbox.Menu;
@inherits RootPanel
@implements Sandbox.Menu.ILoadingScreenPanel
@attribute [StyleSheet]
@namespace LuckerGame.UI.MainMenu
<root style="flex-direction: column;">
<div class="background" />
<div style="flex-grow: 1;" />
<div class="controls" style="flex-direction: row; justify-content: center;">
<a class="button">@( Progress.Title ?? "Loading..." )</a>
</div>
</root>
@code
{
public LoadingProgress Progress;
public void OnLoadingProgress( LoadingProgress progress )
{
Progress = progress;
StateHasChanged();
}
}