示例#1
0
 private new void SetupMapTags()
 {
     if (mInfo != null)
     {
         if (mInfo.LotId == ulong.MaxValue)
         {
             if (GameUtils.IsOnVacation() || GameUtils.IsUniversityWorld())
             {
                 mModel.ShowMaptags(MaptagTypes.Fraternity | MaptagTypes.Sorority | MaptagTypes.Dormitory | MaptagTypes.UnoccupiedPort | MaptagTypes.Apartment | MaptagTypes.DontShowActiveEver | MaptagTypes.SelectedApartment | MaptagTypes.SelectedHousehold | MaptagTypes.AvailableHousehold | MaptagTypes.AvailableEmptyHouse | MaptagTypes.SelectedEmptyHouse | MaptagTypes.UnavailableEmptyHouse | MaptagTypes.UnavailableHousehold);
             }
             else
             {
                 // Custom
                 mModel.ShowMaptags(MaptagTypes.UnoccupiedPort | MaptagTypes.Apartment | MaptagTypes.SelectedApartment /*| MaptagTypes.DontShowOwnedEver*/ | MaptagTypes.SelectedHousehold | MaptagTypes.AvailableHousehold | MaptagTypes.AvailableEmptyHouse | MaptagTypes.ActiveHousehold | MaptagTypes.SelectedEmptyHouse | MaptagTypes.UnavailableEmptyHouse | MaptagTypes.UnavailableHousehold);
             }
         }
         else if (mModel.IsPlaceLotsWizardFlow)
         {
             mModel.ShowMaptags(MaptagTypes.SelectedOwnableLot | MaptagTypes.Last | MaptagTypes.Apartment | MaptagTypes.SelectedApartment | MaptagTypes.SelectedCommunity | MaptagTypes.AvailableEmptyLot | MaptagTypes.SelectedEmptyLot | MaptagTypes.EmptyCommunityLot | MaptagTypes.OwnableLot | MaptagTypes.CommunityLot);
         }
         else if (mInfo.LotTypeFilter == 0x8)
         {
             if (mInfo.CommercialLotSubType == CommercialLotSubType.kEP10_Diving)
             {
                 mModel.ShowMaptags(MaptagTypes.DivingLot);
             }
             else
             {
                 EditTownMaptagController.Instance.ShowEmptyCommunityLots();
             }
         }
         else if (mInfo.HouseholdId == ulong.MaxValue)
         {
             // Custom
             MaptagTypes filter = MaptagTypes.SelectedOwnableLot | MaptagTypes.UnavailableOwnableLot | MaptagTypes.DontShowMismatchedHouseboatLots /*| MaptagTypes.DontShowOwnedEver*/ | MaptagTypes.AvailableEmptyLot | MaptagTypes.SelectedEmptyLot | MaptagTypes.OwnableLot | MaptagTypes.UnavailableEmptyLot;
             if (mInfo.IsHouseboatLot)
             {
                 filter |= MaptagTypes.UnoccupiedPort;
             }
             mModel.ShowMaptags(filter);
         }
         else
         {
             // Custom
             MaptagTypes types2 = MaptagTypes.DontShowMismatchedHouseboatLots /*| MaptagTypes.DontShowOwnedEver*/ | MaptagTypes.AvailableEmptyLot | MaptagTypes.SelectedEmptyLot | MaptagTypes.UnavailableEmptyLot;
             if (mInfo.IsHouseboatLot)
             {
                 types2 |= MaptagTypes.UnoccupiedPort;
             }
             mModel.ShowMaptags(types2);
         }
         mModel.AllowLockedLots = true;
     }
 }
示例#2
0
 public override void OnMaptagSelection(ulong id, MaptagTypes maptagType, Vector2 mouseClickScreen)
 {
     try
     {
         UIBinInfo info = FindBinInfoForLot(id, maptagType);
         if (info != null)
         {
             OnSelection(info);
         }
     }
     catch (Exception e)
     {
         Common.Exception("OnMaptagSelection", e);
     }
 }
示例#3
0
 public override void OnMaptagSelection(ulong id, MaptagTypes maptagType, Vector2 mouseClickScreen)
 {
     try
     {
         UIBinInfo info = FindBinInfoForLot(id, maptagType);
         if (info != null)
         {
             OnSelection(info);
         }
     }
     catch (Exception e)
     {
         Common.Exception("OnMaptagSelection", e);
     }
 }