private void Flash_ScoreAlert_Score(spTICK_ScoreAlerts_Get_FTL_Result scorealert, int number_of_times) { string possession_arrow = ""; for (int j = 1; j <= number_of_times - 1; j++) { // fade off: for (int i = 0; i < 8; i++) { if (scorealert.VisitorsScore != scorealert.LastVisitorsScore) { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "V") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.VisitorsRanking > 0) { Ventuz_Property("GAME_TEAM1RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM1RANKING", ""); } Ventuz_Property("GAMETEAM1", scorealert.VisitorsNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.LastVisitorsScore + "</SCOREFADE" + i + ">"); } else { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "H") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.HomeRanking > 0) { Ventuz_Property("GAME_TEAM2RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM2RANKING", ""); } Ventuz_Property("GAMETEAM2", scorealert.HomeNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.LastHomeScore + "</SCOREFADE" + i + ">"); } Ventuz_Method("GAME_UPDATETEAMS"); System.Threading.Thread.Sleep(50); } // fade on: for (int i = 7; i >= 0; i--) { if (scorealert.VisitorsScore != scorealert.LastVisitorsScore) { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "V") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.VisitorsRanking > 0) { Ventuz_Property("GAME_TEAM1RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM1RANKING", ""); } Ventuz_Property("GAMETEAM1", scorealert.VisitorsNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.LastVisitorsScore + "</SCOREFADE" + i + ">"); } else { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "H") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.HomeRanking > 0) { Ventuz_Property("GAME_TEAM2RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM2RANKING", ""); } Ventuz_Property("GAMETEAM2", scorealert.HomeNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.LastHomeScore + "</SCOREFADE" + i + ">"); } Ventuz_Method("GAME_UPDATETEAMS"); System.Threading.Thread.Sleep(50); } } // finally, fade off for (int i = 0; i < 8; i++) { if (scorealert.VisitorsScore != scorealert.LastVisitorsScore) { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "V") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.VisitorsRanking > 0) { Ventuz_Property("GAME_TEAM1RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM1RANKING", ""); } Ventuz_Property("GAMETEAM1", scorealert.VisitorsNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.LastVisitorsScore + "</SCOREFADE" + i + ">"); } else { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "H") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.HomeRanking > 0) { Ventuz_Property("GAME_TEAM2RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM2RANKING", ""); } Ventuz_Property("GAMETEAM2", scorealert.HomeNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.LastHomeScore + "</SCOREFADE" + i + ">"); } Ventuz_Method("GAME_UPDATETEAMS"); System.Threading.Thread.Sleep(50); } // fade on with new sore: for (int i = 7; i >= 0; i--) { if (scorealert.VisitorsScore != scorealert.LastVisitorsScore) { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "V") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.VisitorsRanking > 0) { Ventuz_Property("GAME_TEAM1RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM1RANKING", ""); } Ventuz_Property("GAMETEAM1", scorealert.VisitorsNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.VisitorsScore + "</SCOREFADE" + i + ">"); } else { if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "H") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } if (scorealert.HomeRanking > 0) { Ventuz_Property("GAME_TEAM2RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM2RANKING", ""); } Ventuz_Property("GAMETEAM2", scorealert.HomeNickName.Trim() + possession_arrow + "<SCOREFADE" + i + ">" + scorealert.HomeScore + "</SCOREFADE" + i + ">"); } Ventuz_Method("GAME_UPDATETEAMS"); System.Threading.Thread.Sleep(50); } }
public override void Ticker_ScoreAlert_Insert(spTICK_ScoreAlerts_Get_FTL_Result scorealert)//object gameobject) { Ventuz_Property("INTRO_FILENAME", "file:///C:\\Fox Ticker\\Clients\\FSN\\Elements\\GroupIntros\\Score Alert.avi"); #if DEBUG System.Threading.Thread.Sleep(500); #endif Ventuz_Method("INTRO_PLAY"); // Note: use gameobject instead of hardcoded values: // Delay behind scenes and then update data with game with score alert.... System.Threading.Thread.Sleep(1000); // Note: use game object instead of hard-coded values: string possession_arrow = "<YELLOW>∞</YELLOW> "; Ventuz_Property("GAME_TYPE", "11"); // 2 = MLB with AB, 11 = AB Ventuz_Property("1QUALIFIER_TEXT", scorealert.SportType); Tab = scorealert.SportType; if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "V") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } Ventuz_Property("GAMETEAM1", scorealert.VisitorsNickName.Trim() + possession_arrow + "<SCORECOLOR>" + scorealert.LastVisitorsScore + "</SCORECOLOR>"); if (scorealert.VisitorsRanking > 0) { Ventuz_Property("GAME_TEAM1RANKING", scorealert.VisitorsRanking.ToString()); } else { Ventuz_Property("GAME_TEAM1RANKING", ""); } if (Details_Get(scorealert.DetailsPreScore, "possession").ToUpper() == "H") { possession_arrow = " <YELLOW>∞</YELLOW> "; } else { possession_arrow = " "; } Ventuz_Property("GAMETEAM2", scorealert.HomeNickName.Trim() + possession_arrow + "<SCORECOLOR>" + scorealert.LastHomeScore + "</SCORECOLOR>"); if (scorealert.HomeRanking > 0) { Ventuz_Property("GAME_TEAM2RANKING", scorealert.HomeRanking.ToString()); } else { Ventuz_Property("GAME_TEAM2RANKING", ""); } Ventuz_Property("GAMEDETAILS_STATUS", scorealert.StatusPreScore + " " + "<WHITE>" + scorealert.Clock + "</WHITE>"); // 4th <WHITE>1:52</WHITE> // Show Ball Spot? if (Details_Get(scorealert.DetailsPreScore, "ballspot") != "") { Ventuz_Property("GAME_SEPARATORALPHA", "100"); Ventuz_Property("GAMEDETAILS_ATBAT", Details_Get(scorealert.DetailsPreScore, "ballspot")); Ventuz_Property("GAMEDETAILS_HIDEATBAT", "False"); if (Convert.ToBoolean(Details_Get(scorealert.DetailsPreScore, "redzone"))) { Ventuz_Property("GAMEDETAILS_BACKDROPALPHA", "100"); // 100 will show bg color if red zone. } else { Ventuz_Property("GAMEDETAILS_BACKDROPALPHA", "0"); // 100 will show bg color if red zone. } } else { Ventuz_Property("GAME_SEPARATORALPHA", "0"); Ventuz_Property("GAMEDETAILS_ATBAT", ""); Ventuz_Property("GAMEDETAILS_HIDEATBAT", "True"); Ventuz_Property("GAMEDETAILS_BACKDROPALPHA", "0"); // 100 will show bg color if red zone. } if (!IsAtBatVisible) { Ventuz_Method("ATBATTEXT_IN"); } else { Ventuz_Method("ATBAT_NEXT"); } Ventuz_Method("GAME_NEXT"); IsAtBatVisible = true; // Flash score of team that changes: System.Threading.Thread.Sleep(2000); Flash_ScoreAlert_Score(scorealert, 3); // Now show how team scored: Ventuz_Property("GAME_SEPARATORALPHA", "100"); Ventuz_Property("GAMEDETAILS_ATBAT", scorealert.ScoreDescription); Ventuz_Property("GAMEDETAILS_HIDEATBAT", "False"); Ventuz_Property("GAMEDETAILS_BACKDROPALPHA", "100"); // 100 will show bg color if red zone. Ventuz_Method("ATBAT_INSTANTUPDATE"); System.Threading.Thread.Sleep(4000); }