Esempio n. 1
0
        public override void Ticker_Final_Insert(spTICK_Games_GetByEntryID_Result gameobject)
        {
            Ventuz_Property("GAME_SEPARATORALPHA", "0");
            Ventuz_Property("GAME_TYPE", "0");
            Ventuz_Property("GAMETEAM1", gameobject.VisitorsNickName.Trim() + Format_Record(gameobject.VisitorWins, gameobject.VisitorLoss, gameobject.VisitorTie) + " <SCORECOLOR>" + gameobject.VisitorsScore + "</SCORECOLOR>");
            if (gameobject.VisitorsRanking > 0)
            {
                Ventuz_Property("GAME_TEAM1RANKING", gameobject.VisitorsRanking.ToString());
            }
            else
            {
                Ventuz_Property("GAME_TEAM1RANKING", "");
            }

            Ventuz_Property("GAMETEAM2", gameobject.HomeNickName.Trim() + Format_Record(gameobject.HomeWins, gameobject.HomeLoss, gameobject.HomeTie) + " <SCORECOLOR>" + gameobject.HomeScore + "</SCORECOLOR>");
            if (gameobject.HomeRanking > 0)
            {
                Ventuz_Property("GAME_TEAM2RANKING", gameobject.HomeRanking.ToString());
            }
            else
            {
                Ventuz_Property("GAME_TEAM2RANKING", "");
            }

            Ventuz_Property("GAMEDETAILS_STATUS", gameobject.Status);
            Ventuz_Property("GAMEDETAILS_HIDEATBAT", "True");
            System.Threading.Thread.Sleep(400);

            Ventuz_Method("GAME_NEXT");

            IsAtBatVisible = false;
        }
Esempio n. 2
0
        //public override void Ticker_Note_Insert(string header, string text)
        //{
        //    Ticker_Note_Insert(header, "10,30,97", "255,255,255", text);
        //}



        //public override void Ticker_Note_Insert(string header, string headerRGB, string textRGB, string text)
        //{
        //    Ventuz_Property("GAME_TYPE", "7");
        //    Ventuz_Property("NOTE_HEADERTEXT", header);
        //    Ventuz_Property("NOTE_HEADERTEXTCOLOR", textRGB);
        //    Ventuz_Property("NOTE_HEADERBACKDROPCOLOR", headerRGB);
        //    Ventuz_Property("NOTE_TEXT", text);
        //    Ventuz_Property("NOTE_WIDTHCALCTEXT", DateTime.Now.ToString());

        //    System.Threading.Thread.Sleep(400);

        //    Ventuz_Method("GAME_NEXT");
        //}



        public override void Ticker_Schedule_Insert(spTICK_Games_GetByEntryID_Result gameobject)
        {
            // Note:  use game object instead of hard-coded values:

            Ventuz_Property("GAME_SEPARATORALPHA", "0");
            Ventuz_Property("GAME_TYPE", "3"); // 15 would be if there is a network associated with the game.
            Ventuz_Property("GAMETEAM1", gameobject.VisitorsNickName);
            if (gameobject.VisitorsRanking > 0)
            {
                Ventuz_Property("GAME_TEAM1RANKING", gameobject.VisitorsRanking.ToString());
            }
            else
            {
                Ventuz_Property("GAME_TEAM1RANKING", "");
            }

            Ventuz_Property("GAMETEAM2", gameobject.HomeNickName);
            if (gameobject.HomeRanking > 0)
            {
                Ventuz_Property("GAME_TEAM2RANKING", gameobject.HomeRanking.ToString());
            }
            else
            {
                Ventuz_Property("GAME_TEAM2RANKING", "");
            }

            Ventuz_Property("GAMEDETAILS_STATUS", DateTime.Parse(gameobject.GameDateTime.ToString()).ToString("dddd h:mmtt") + " EST"); //"4:00pm");
            Ventuz_Property("GAMEDETAILS_HIDEATBAT", "True");

            System.Threading.Thread.Sleep(400);

            Ventuz_Method("ATBAT_NEXT");
            Ventuz_Method("GAME_NEXT");
        }
Esempio n. 3
0
        public void Ticker_InProgress_Update(spTICK_Games_GetByEntryID_Result gameobject, string status, string clock)
        {
            if (bTransitioning)
            {
                return;
            }

            // Note:  use game object instead of hard-coded values:
            string possession_arrow = "<YELLOW>&#8734;</YELLOW> ";

            Ventuz_Property("GAME_TYPE", "11"); // 2 = MLB with AB, 11 = AB

            if (Details_Get(gameobject.Details, "possession").ToUpper() == "V")
            {
                possession_arrow = " <YELLOW>&#8734;</YELLOW> ";
            }
            else
            {
                possession_arrow = " ";
            }

            Ventuz_Property("GAMETEAM1", gameobject.VisitorsNickName.Trim() + possession_arrow + "<SCORECOLOR>" + gameobject.VisitorsScore + "</SCORECOLOR>");
            if (gameobject.VisitorsRanking > 0)
            {
                Ventuz_Property("GAME_TEAM1RANKING", gameobject.VisitorsRanking.ToString());
            }
            else
            {
                Ventuz_Property("GAME_TEAM1RANKING", "");
            }

            if (Details_Get(gameobject.Details, "possession").ToUpper() == "H")
            {
                possession_arrow = " <YELLOW>&#8734;</YELLOW> ";
            }
            else
            {
                possession_arrow = " ";
            }

            Ventuz_Property("GAMETEAM2", gameobject.HomeNickName.Trim() + possession_arrow + "<SCORECOLOR>" + gameobject.HomeScore + "</SCORECOLOR>");
            if (gameobject.HomeRanking > 0)
            {
                Ventuz_Property("GAME_TEAM2RANKING", gameobject.HomeRanking.ToString());
            }
            else
            {
                Ventuz_Property("GAME_TEAM2RANKING", "");
            }

            Ventuz_Property("GAMEDETAILS_STATUS", status.Trim() + "    " + "<WHITE>" + clock.Trim() + "</WHITE>");   // 4th    <WHITE>1:52</WHITE>

            Ventuz_Method("GAMEDETAILS_STATUSINSTANTUPDATE");
        }
Esempio n. 4
0
        public override void Ticker_InProgress_Insert(spTICK_Games_GetByEntryID_Result gameobject)
        {
            // Note:  use game object instead of hard-coded values:
            string possession_arrow = "<YELLOW>&#8734;</YELLOW> ";
            string clock            = "";
            string status           = "";

            bTransitioning = true;

            try
            {
                Ventuz_Property("GAME_TYPE", "11"); // 2 = MLB with AB, 11 = AB

                if (Details_Get(gameobject.Details, "possession").ToUpper() == "V")
                {
                    possession_arrow = " <YELLOW>&#8734;</YELLOW> ";
                }
                else
                {
                    possession_arrow = " ";
                }

                Ventuz_Property("GAMETEAM1", gameobject.VisitorsNickName.Trim() + possession_arrow + "<SCORECOLOR>" + gameobject.VisitorsScore + "</SCORECOLOR>");
                if (gameobject.VisitorsRanking > 0)
                {
                    Ventuz_Property("GAME_TEAM1RANKING", gameobject.VisitorsRanking.ToString());
                }
                else
                {
                    Ventuz_Property("GAME_TEAM1RANKING", "");
                }

                if (Details_Get(gameobject.Details, "possession").ToUpper() == "H")
                {
                    possession_arrow = " <YELLOW>&#8734;</YELLOW> ";
                }
                else
                {
                    possession_arrow = " ";
                }

                Ventuz_Property("GAMETEAM2", gameobject.HomeNickName.Trim() + possession_arrow + "<SCORECOLOR>" + gameobject.HomeScore + "</SCORECOLOR>");
                if (gameobject.HomeRanking > 0)
                {
                    Ventuz_Property("GAME_TEAM2RANKING", gameobject.HomeRanking.ToString());
                }
                else
                {
                    Ventuz_Property("GAME_TEAM2RANKING", "");
                }

                if ((css == null) || (css.CurrentGame == null))
                {
                    clock  = gameobject.Clock.Trim();
                    status = gameobject.Status.Trim();
                }
                else if (gameobject.CSSID == css.CurrentGame.CSSID)
                {
                    clock  = gameobject.Clock.Trim();
                    status = gameobject.Status.Trim();
                }
                else
                {
                    clock  = gameobject.Clock.Trim();
                    status = gameobject.Status.Trim();
                }

                Ventuz_Property("GAMEDETAILS_STATUS", status + "    " + "<WHITE>" + clock + "</WHITE>");   // 4th    <WHITE>1:52</WHITE>

                // Show Ball Spot?
                if (Details_Get(gameobject.Details, "ballspot") != "")
                {
                    Ventuz_Property("GAME_SEPARATORALPHA", "100");
                    Ventuz_Property("GAMEDETAILS_ATBAT", Details_Get(gameobject.Details, "ballspot"));
                    Ventuz_Property("GAMEDETAILS_HIDEATBAT", "False");

                    if (Convert.ToBoolean(Details_Get(gameobject.Details, "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.
                }

                //System.Threading.Thread.Sleep(400);

                if (!IsAtBatVisible)
                {
                    Ventuz_Method("ATBATTEXT_IN");
                }
                else
                {
                    Ventuz_Method("ATBAT_NEXT");
                }

                Ventuz_Method("GAME_NEXT");
                bTransitioning = false;

                IsAtBatVisible = true;
            }
            catch (Exception)
            {
                bTransitioning = false;
            }
        }