Exemplo n.º 1
0
        public static void SaveSceneObjects()
        {
            if (ProjectData.GameMode == GameMode.Edit)
            {
                SaveObjectsSystem.Execute();

                var message = SmartLocalization.LanguageManager.Instance.GetTextValue("SAVED");
                NotificationWindowManager.Show(message, 1f);
            }
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public void Show(string message, Action retry = null)
 {
     NotificationWindowManager.Show(message, 5.0f);
 }