Pulls in FPS menu so we can make edits
This commit is contained in:
31
code/UI/MainMenu/LoadingScreen.razor
Normal file
31
code/UI/MainMenu/LoadingScreen.razor
Normal file
@@ -0,0 +1,31 @@
|
||||
@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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user