@@ -351,7 +351,17 @@ class GameTab
351351
352352 ImGui::Columns (1 );
353353
354- std::string chosenInstalock = " Instalock champ \t\t Chosen: " + Misc::ChampIdToName (S.gameTab .instalockId ) + " ###AnimatedInstalock" ;
354+ static bool isStillDownloading = true ;
355+ if (!champSkins.empty ())
356+ isStillDownloading = false ;
357+
358+ static std::string chosenInstalock = " Instalock champ \t\t Chosen: " + Misc::ChampIdToName (S.gameTab .instalockId ) + " ###AnimatedInstalock" ;
359+ static int lastInstalockId = 0 ;
360+ if ((lastInstalockId != S.gameTab .instalockId ) && !isStillDownloading)
361+ {
362+ lastInstalockId = S.gameTab .instalockId ;
363+ chosenInstalock = " Instalock champ \t\t Chosen: " + Misc::ChampIdToName (S.gameTab .instalockId ) + " ###AnimatedInstalock" ;
364+ }
355365 if (ImGui::CollapsingHeader (chosenInstalock.c_str ()))
356366 {
357367 std::vector<std::pair<int , std::string>>instalockChamps = GetInstalockChamps ();
@@ -365,7 +375,13 @@ class GameTab
365375 }
366376 }
367377
368- std::string chosenBackup = " Backup pick \t\t\t Chosen: " + Misc::ChampIdToName (S.gameTab .backupId ) + " ###AnimatedBackup" ;
378+ static std::string chosenBackup = " Backup pick \t\t\t Chosen: " + Misc::ChampIdToName (S.gameTab .backupId ) + " ###AnimatedBackup" ;
379+ static int lastBackupId = 0 ;
380+ if ((lastBackupId != S.gameTab .backupId ) && !isStillDownloading)
381+ {
382+ lastBackupId = S.gameTab .backupId ;
383+ chosenBackup = " Backup pick \t\t\t Chosen: " + Misc::ChampIdToName (S.gameTab .backupId ) + " ###AnimatedBackup" ;
384+ }
369385 if (ImGui::CollapsingHeader (chosenBackup.c_str ()))
370386 {
371387 ImGui::Text (" None" );
@@ -382,7 +398,13 @@ class GameTab
382398 }
383399 }
384400
385- std::string chosenAutoban = " Auto ban\t\t\t\t Chosen: " + Misc::ChampIdToName (S.gameTab .autoBanId ) + " ###AnimatedAutoban" ;
401+ static std::string chosenAutoban = " Auto ban\t\t\t\t Chosen: " + Misc::ChampIdToName (S.gameTab .autoBanId ) + " ###AnimatedAutoban" ;
402+ static int lastAutoban = 0 ;
403+ if ((lastAutoban != S.gameTab .autoBanId ) && !isStillDownloading)
404+ {
405+ lastAutoban = S.gameTab .autoBanId ;
406+ chosenAutoban = " Auto ban\t\t\t\t Chosen: " + Misc::ChampIdToName (S.gameTab .autoBanId ) + " ###AnimatedAutoban" ;
407+ }
386408 if (ImGui::CollapsingHeader (chosenAutoban.c_str ()))
387409 {
388410 if (champSkins.empty ())
0 commit comments