mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-24 05:22:07 +00:00
Add splash to game loading screen.
This commit is contained in:
parent
9d9e554226
commit
cd4256bd86
3 changed files with 17 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ namespace Ryujinx.Common
|
|||
_Final_Splash = _Main_Splashes.GetRandomElement();
|
||||
}
|
||||
|
||||
return _Final_Splash;
|
||||
return $"{_Final_Splash}";
|
||||
}
|
||||
|
||||
// This list contains all splashes. Additions are welcome to this list : ) - Awesomeangotti
|
||||
|
|
@ -94,6 +94,7 @@ namespace Ryujinx.Common
|
|||
"Please connect a controller!",
|
||||
"Never gonna give you up!",
|
||||
"The game was rigged from the start",
|
||||
"Ganon is watching you!",
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -76,6 +76,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
[ObservableProperty] public partial string LoadHeading { get; set; }
|
||||
|
||||
[ObservableProperty] public partial string CacheLoadStatus { get; set; }
|
||||
|
||||
[ObservableProperty] public partial string Splash { get; set; }
|
||||
|
||||
[ObservableProperty] public partial string DockedStatusText { get; set; }
|
||||
|
||||
|
|
@ -1194,12 +1196,12 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
break;
|
||||
case ShaderCacheLoadingState shaderCacheState:
|
||||
CacheLoadStatus = $"{current} / {total}";
|
||||
Splash = SplashTextHelper.GetSplash();
|
||||
switch (shaderCacheState)
|
||||
{
|
||||
case ShaderCacheLoadingState.Start:
|
||||
case ShaderCacheLoadingState.Loading:
|
||||
//LoadHeading = LocaleManager.Instance[LocaleKeys.CompilingShaders]; This is the original line. Leaving it here until done.
|
||||
LoadHeading = $"{LocaleManager.Instance[LocaleKeys.CompilingShaders]} - {SplashTextHelper.GetSplash()}";
|
||||
LoadHeading = LocaleManager.Instance[LocaleKeys.CompilingShaders];
|
||||
IsLoadingIndeterminate = false;
|
||||
break;
|
||||
case ShaderCacheLoadingState.Packaging:
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@
|
|||
Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
IsVisible="{Binding ShowLoadProgress}" RowDefinitions="Auto,Auto,Auto">
|
||||
IsVisible="{Binding ShowLoadProgress}" RowDefinitions="Auto,Auto,Auto,Auto">
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
Margin="10"
|
||||
|
|
@ -175,6 +175,16 @@
|
|||
Text="{Binding CacheLoadStatus}"
|
||||
TextAlignment="Start"
|
||||
MaxWidth="500" />
|
||||
<TextBlock
|
||||
Grid.Row="3"
|
||||
Margin="10"
|
||||
FontSize="14"
|
||||
FontStyle="Oblique"
|
||||
IsVisible="{Binding ShowLoadProgress}"
|
||||
Text="{Binding Splash}"
|
||||
Foreground="LightGray"
|
||||
TextAlignment="Start"
|
||||
MaxWidth="500" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
|
|
|||
Loading…
Reference in a new issue