mirror of
https://github.com/MilkBarModding/MilkBarLauncher.git
synced 2025-07-27 16:16:24 +00:00
36 lines
953 B
C#
36 lines
953 B
C#
using Breath_of_the_Wild_Multiplayer.MVVM.Model;
|
|
using Breath_of_the_Wild_Multiplayer.Source_files;
|
|
|
|
namespace Breath_of_the_Wild_Multiplayer.MVVM.ViewModel
|
|
{
|
|
public class LoadingModel : ObservableObject
|
|
{
|
|
private string _Message;
|
|
|
|
public string Message
|
|
{
|
|
get { return _Message; }
|
|
set
|
|
{
|
|
_Message = value;
|
|
OnPropertyChanged(nameof(this.Message));
|
|
}
|
|
}
|
|
|
|
public LoadingModel()
|
|
{
|
|
// The ViewModel is loaded multiple times which can cause issues with messages. With this, we make sure that the first message doesn't disappear
|
|
if (SharedData.LoadingMessage != null)
|
|
this.Message = SharedData.LoadingMessage.Message;
|
|
|
|
SharedData.LoadingMessage = this;
|
|
}
|
|
|
|
public void UpdateMessage(string msg)
|
|
{
|
|
this.Message = msg;
|
|
}
|
|
|
|
}
|
|
}
|