Exemple #1
0
        public void OnLoad()
        {
            _prd = _prd ?? InitDisplay();
            Core.OverlayCanvas.Children.Add(_prd);

            _logic = _logic ?? InitLogic();
        }
Exemple #2
0
        private PatchesReminderLogic InitLogic()
        {
            var logic = new PatchesReminderLogic();

            logic.PatchesAttacked += (sender, args) => _prd.Hide();
            logic.PatchesEnter    += (sender, cardName) =>
            {
                Log.Info($"Attack with {cardName}");
                //prd.DisplayText = $"ATTACK WITH {cardName.ToUpper()}";
                _prd.Show();
            };

            return(logic);
        }