void SellHouseButton_OnMouseClick(BaseScreenComponent sender, Vector2 position) { if (DaggerfallBankManager.OwnsHouse) { BuildingDirectory buildingDirectory = GameManager.Instance.StreamingWorld.GetCurrentBuildingDirectory(); if (buildingDirectory) { BuildingSummary house; if (buildingDirectory.GetBuildingSummary(DaggerfallBankManager.OwnedHouseKey, out house)) { GeneratePopup(TransactionResult.SELL_HOUSE_OFFER, DaggerfallBankManager.GetHouseSellPrice(house)); } } } }