public static void SaveSceneObjects() { if (ProjectData.GameMode == GameMode.Edit) { SaveObjectsSystem.Execute(); var message = SmartLocalization.LanguageManager.Instance.GetTextValue("SAVED"); NotificationWindowManager.Show(message, 1f); } }
public bool IsValidDrag(object value) { if (FightCastManager.currentCastType != 0) { return(false); } ReserveCompanionStatus companionStatus = (ReserveCompanionStatus)value; if (CastValidityHelper.ComputeCompanionCostCastValidity(m_playerStatus, companionStatus) != 0) { return(false); } CastValidity castValidity = CastValidityHelper.ComputeCompanionCastValidity(m_playerStatus, companionStatus); if (castValidity != 0) { NotificationWindowManager.DisplayNotification(TextCollectionUtility.GetFormattedText(castValidity)); } return(castValidity == CastValidity.SUCCESS); }
public LocalServiceFactory(INotificationSettings notificationSettings) { var monitors = new Monitors(); EventAggregator = new EventAggregator(); NotificationFactory = new NotificationFactory(() => new Notification(EventAggregator)); var viewModelFactory = new ViewModelFactory( EventAggregator, () => new UserConfigurationWindowViewModel( monitors, notificationSettings, EventAggregator, NotificationFactory), () => new NotificationWindowViewModel( monitors, notificationSettings, EventAggregator)); NotificationWindowManager = new NotificationWindowManager(viewModelFactory); NotificationService = new NotificationService(() => NotificationWindowManager); }
public void Show(string message, Action retry = null) { NotificationWindowManager.Show(message, 5.0f); }