Beispiel #1
0
 private void Vm_OnGenericVMEvent(VMEventType type, object data)
 {
     switch (type)
     {
     case VMEventType.TS1BuildBuyChange:
         Frontend.ModeSwitcher.UpdateBuildBuy();
         break;
     }
 }
Beispiel #2
0
        private void ReloadUpgrades(VMEventType type, object data)
        {
            if (type != VMEventType.TSOUpgraded)
            {
                return;
            }
            (Parent.Parent as UIQueryPanel)?.ReloadEntityInfo(false);
            PopulateUpgrades();
            var vm = LotParent.vm;

            if (vm != null)
            {
                vm.OnGenericVMEvent -= ReloadUpgrades;
            }
        }
Beispiel #3
0
        private void Vm_OnGenericVMEvent(VMEventType type, object data)
        {
            switch (type)
            {
            case VMEventType.TSOUnignore:
                PersonPage.ToggleBookmark(Common.DataService.Model.BookmarkType.IGNORE_AVATAR, null, (uint)data);
                break;

            case VMEventType.TSOTimeout:
                var dialog = new UITimeOutDialog(vm, (int)data);
                UIScreen.GlobalShowDialog(dialog, true);
                var rnd = new Random();
                dialog.Position = new Vector2(rnd.Next(ScreenWidth - 500), rnd.Next(ScreenHeight - 500));
                break;
            }
        }
Beispiel #4
0
 private void Vm_OnGenericVMEvent(VMEventType type, object data)
 {
     //hmm...
 }
Beispiel #5
0
 public void SignalGenericVMEvt(VMEventType type, object data)
 {
     OnGenericVMEvent?.Invoke(type, data);
 }