feat: add BootStatusUIView for loading progress display with text feedback
- Create new BootStatusUIView MonoBehaviour component with StatusText and ProgressSlider fields - Implement SetStatus() and SetProgress() methods for updating UI elements - Replace Transform-based ProgressFill in LoadingUIView with Slider component for better UX - Integrate BootStatusUIView into LoadState with real-time status updates during loading steps - Display formatted progress text (e.g., 'Loading 50%') alongside slider updates - Add SceneTemplateSettings.json to ProjectSettings for scene template configuration
This commit is contained in:
@@ -10,16 +10,21 @@ namespace QuizPleaseTest.Boot.States
|
||||
public class MenuState : IState
|
||||
{
|
||||
private readonly MenuUIView _view;
|
||||
private readonly BootStatusUIView _statusView;
|
||||
private readonly IMenuRestartSignal _restartSignal;
|
||||
|
||||
public MenuState(MenuUIView view, IMenuRestartSignal restartSignal)
|
||||
public MenuState(MenuUIView view, BootStatusUIView statusView, IMenuRestartSignal restartSignal)
|
||||
{
|
||||
_view = view;
|
||||
_statusView = statusView;
|
||||
_restartSignal = restartSignal;
|
||||
}
|
||||
|
||||
public async UniTask EnterAsync(CancellationToken ct)
|
||||
{
|
||||
_statusView.SetStatus("Menu");
|
||||
_statusView.SetProgress(1f);
|
||||
|
||||
_view.Bind(new MenuUIViewModel(_restartSignal));
|
||||
_view.Initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user