mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:10:06 +00:00
Smooth transition between level 3 tilts
This commit is contained in:
parent
690f60f3e3
commit
889fe698e6
8 changed files with 53 additions and 23 deletions
|
|
@ -301,7 +301,9 @@ void MapWidget::SelectRadarProduct(common::RadarProductGroup group,
|
|||
|
||||
if (radarProductView == nullptr ||
|
||||
radarProductView->GetRadarProductGroup() != group ||
|
||||
radarProductView->GetRadarProductName() != productName ||
|
||||
(radarProductView->GetRadarProductGroup() ==
|
||||
common::RadarProductGroup::Level2 &&
|
||||
radarProductView->GetRadarProductName() != productName) ||
|
||||
p->context_->radarProductCode_ != productCode)
|
||||
{
|
||||
p->RadarProductViewDisconnect();
|
||||
|
|
@ -313,6 +315,10 @@ void MapWidget::SelectRadarProduct(common::RadarProductGroup group,
|
|||
|
||||
radarProductViewCreated = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
radarProductView->SelectProduct(productName);
|
||||
}
|
||||
|
||||
p->context_->radarProductGroup_ = group;
|
||||
p->context_->radarProduct_ = productName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue