public void Evict(FAMI family) { if (family == null) { return; } var familyName = family.ChunkParent.Get <FAMs>(family.ChunkID)?.GetString(0) ?? "selected"; UIMobileAlert evictDialog = null; evictDialog = new UIMobileAlert(new UIAlertOptions() { Title = GameFacade.Strings.GetString("131", "2"), Message = GameFacade.Strings.GetString("131", "3", new string[] { familyName.ToString(), "§" + (family.ValueInArch + family.Budget).ToString("##,#0") } ), Buttons = UIAlertButton.YesNo( (b) => { evictDialog.Close(); ((TS1GameScreen)UIScreen.Current).EvictLot(family, (short)HouseID); }, (b) => { evictDialog.Close(); } ) }); UIScreen.GlobalShowDialog(evictDialog, true); }
private void DialogResponse(byte code) { if (BlockingDialog == null || ActiveEntity == null) { return; } BlockingDialog.Close(); LastDialogID = 0; vm.SendCommand(new VMNetDialogResponseCmd { ActorUID = ActiveEntity.PersistID, ResponseCode = code, ResponseText = (BlockingDialog.ResponseText == null) ? "" : BlockingDialog.ResponseText }); BlockingDialog = null; }