Beispiel #1
0
        public void MessageEnemyCreator(string hero, string spell, float GameTime)
        {
            if (MenuManager.SideMessageItem.Value)
            {
                SideMessage = new SideMessage(
                    hero + spell + GameTime,
                    new Vector2(MsgX, MsgY),
                    stayTime: 6000);

                SideMessage.AddElement(
                    new Vector2(0, 0),
                    new Vector2(MsgX, MsgY),
                    Drawing.GetTexture("ensage_ui/other/msg1_" + MenuManager.LangList[Lang]));

                SideMessage.AddElement(
                    new Vector2(HeroX, HerospellY),
                    new Vector2(SizeheroX, SizeheroYspell),
                    Drawing.GetTexture("ensage_ui/heroes_horizontal/" + hero + ".vmat"));

                SideMessage.AddElement(
                    new Vector2(SpellX, HerospellY),
                    new Vector2(SizeheroYspell, SizeheroYspell),
                    Drawing.GetTexture("ensage_ui/spellicons/" + spell + ".vmat"));

                SideMessage.CreateMessage();
            }
        }
Beispiel #2
0
 static void MessageItemCreator(string saitama, string punch)
 {
     informationmessage = new SideMessage("Items", new Vector2(180, 48));
     informationmessage.AddElement(new Vector2(006, 06), new Vector2(72, 36), Drawing.GetTexture("ensage_ui/heroes_horizontal/" + saitama));
     informationmessage.AddElement(new Vector2(078, 12), new Vector2(64, 32), Drawing.GetTexture("ensage_ui/other/arrow_usual"));
     informationmessage.AddElement(new Vector2(142, 06), new Vector2(72, 36), Drawing.GetTexture("ensage_ui/items/" + punch));
     informationmessage.CreateMessage();
 }
Beispiel #3
0
 static void MessageRuneCreator(string saitama, string onepunch)
 {
     informationmessage = new SideMessage("Rune", new Vector2(180, 50));
     informationmessage.AddElement(new Vector2(10, 10), new Vector2(54, 30), Drawing.GetTexture("ensage_ui/heroes_horizontal/" + saitama));
     informationmessage.AddElement(new Vector2(70, 12), new Vector2(62, 31), Drawing.GetTexture("ensage_ui/other/arrow_usual"));
     informationmessage.AddElement(new Vector2(140, 10), new Vector2(30, 30), Drawing.GetTexture("ensage_ui/modifier_textures/" + onepunch));
     informationmessage.CreateMessage();
 }
Beispiel #4
0
        private static void GenerateSideMessage(string hero, string item)
        {
            var sideMessage = new SideMessage(hero, new Vector2(200, 50));

            sideMessage.AddElement(new Vector2(10, 10), new Vector2(72, 40), Drawing.GetTexture("materials/ensage_ui/heroes_horizontal" + hero + ".vmat"));
            sideMessage.AddElement(new Vector2(85, 1), new Vector2(62, 61), Drawing.GetTexture("materials/ensage_ui/statpop_question.vmat"));
            sideMessage.AddElement(new Vector2(140, 13), new Vector2(70, 35), Drawing.GetTexture("materials/ensage_ui/items" + item + ".vmat"));
        }
 internal static void MessageRoshanMBAliveCreator(string roshan_mb_alive)
 {
     if (MenuManager.Menu.Item("enable_msg").GetValue <bool>())
     {
         informationmessage = new SideMessage("roshan_mb_alive", new Vector2(msgX, msgY), stayTime: 5000);
         informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg7_" + BeAwarePlus.Addition[BeAwarePlus.GetLangId]));
         informationmessage.CreateMessage();
     }
 }
Beispiel #6
0
        public static void GenerateSideMessage(string hero, string spellName)
        {
            var msg = new SideMessage(hero, new Vector2(200, 60));

            msg.AddElement(new Vector2(006, 06), new Vector2(72, 36), Drawing.GetTexture("materials/ensage_ui/heroes_horizontal/" + hero + ".vmat"));
            msg.AddElement(new Vector2(078, 12), new Vector2(64, 32), Drawing.GetTexture("materials/ensage_ui/other/arrow_usual.vmat"));
            msg.AddElement(new Vector2(142, 06), new Vector2(72, 36), Drawing.GetTexture("materials/ensage_ui/spellicons/" + spellName + ".vmat"));
            msg.CreateMessage();
        }
Beispiel #7
0
        // --→ Function: Create Side Message
        private static void GenerateSideMessage(string unit)
        {
            var sideMessage = new SideMessage(unit, new Vector2(200, 60));

            sideMessage.AddElement(new Vector2(10, 10), new Vector2(72, 40), Drawing.GetTexture("materials/ensage_ui/heroes_horizontal/" + unit + ".vmat"));
            sideMessage.AddElement(new Vector2(85, 16), new Vector2(62, 31), Drawing.GetTexture("materials/ensage_ui/other/arrow_usual.vmat"));
            sideMessage.AddElement(new Vector2(145, 10), new Vector2(70, 40), Drawing.GetTexture("materials/ensage_ui/items/hand_of_midas.vmat"));
            sideMessage.CreateMessage();
        }
        private static void GenerateSideMessage(string hero, string item)
        {
            var sideMSG = new SideMessage(hero, new Vector2(200, 48));

            sideMSG.AddElement(new Vector2(006, 06), new Vector2(72, 36), Drawing.GetTexture("materials/ensage_ui/heroes_horizontal/" + hero + ".vmat"));
            sideMSG.AddElement(new Vector2(078, 12), new Vector2(64, 32), Drawing.GetTexture("materials/ensage_ui/other/arrow_item_bought.vmat"));
            sideMSG.AddElement(new Vector2(142, 06), new Vector2(72, 36), Drawing.GetTexture("materials/ensage_ui/items/" + item + ".vmat"));
            sideMSG.CreateMessage();
        }
Beispiel #9
0
        public static void GenerateSideMessage(string hero, string spellName)
        {
            var msg = new SideMessage(hero, new Vector2(226, 59));

            msg.AddElement(new Vector2(9, 9), new Vector2(73, 41), Drawing.GetTexture("materials/ensage_ui/heroes_horizontal/" + hero + ".vmat"));
            msg.AddElement(new Vector2(97, 2), new Vector2(50, 50), Drawing.GetTexture("materials/ensage_ui/other/arrow_usual.vmat"));
            msg.AddElement(new Vector2(163, 9), new Vector2(75, 41), Drawing.GetTexture("materials/ensage_ui/spellicons/" + spellName + ".vmat"));
            msg.CreateMessage();
        }
Beispiel #10
0
 internal static void MessageItemCreator(string hero, string item)
 {
     if (MenuManager.Menu.Item("enable_msg").GetValue <bool>())
     {
         informationmessage = new SideMessage(hero + item, new Vector2(msgX, msgY), stayTime: 5000);
         informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg3_" + BeAwarePlus.Addition[BeAwarePlus.GetLangId]));
         informationmessage.AddElement(new Vector2(heroX, herospellY), new Vector2(sizeheroX, sizeheroYspell), Drawing.GetTexture("ensage_ui/heroes_horizontal/" + hero));
         informationmessage.AddElement(new Vector2(itemX, herospellY), new Vector2(sizeitemX, sizeheroYspell), Drawing.GetTexture("ensage_ui/items/" + item));
         informationmessage.CreateMessage();
     }
 }
        public static void Tick(EventArgs args)
        {
            me = ObjectMgr.LocalHero;
            if (!Game.IsInGame || Game.IsPaused || Game.IsWatchingGame)
            {
                return;
            }
            if (me == null)
            {
                return;
            }
            //day
            int tempo_day = 190;

            for (int i = 0; i <= 15; i++)
            {
                if ((int)Game.GameTime == tempo_day)
                {
                    tempo = tempo_day;
                }
                tempo_day += 480;
            }
            //night
            int tempo_night = 480;

            for (int i = 0; i <= 15; i++)
            {
                if ((int)Game.GameTime == tempo_night)
                {
                    tempo = tempo_night;
                }
                else
                {
                    tempo_night += 480;
                }
            }
            if ((((int)(Game.GameTime)) == tempo))
            {
                if (stage == 0)
                {
                    stage        = 1;
                    balanartimer = new SideMessage("Use your ultimate!", new Vector2(200, 48));
                    balanartimer.AddElement(new Vector2(142, 06), new Vector2(72, 36), Drawing.GetTexture("materials/ensage_ui/spellicons/night_stalker_darkness.vmat_c"));
                    balanartimer.AddElement("USE ULT!", new Vector2(20, 10), new Vector2(30, 20), Color.Red, FontFlags.DropShadow);
                    balanartimer.CreateMessage();
                    Utils.Sleep(10000, "time");
                }
                else if (Utils.SleepCheck("time") && stage == 1)
                {
                    stage = 0;
                }
            }
        }
Beispiel #12
0
 public static void GenerateTpCatcherSideMessage(string hero, string itemName, int d)
 {
     try
     {
         var msg = new SideMessage(hero, new Vector2(170, 59), stayTime: d);
         msg.AddElement(new Vector2(9, 9), new Vector2(73, 41), Textures.GetHeroTexture(hero));
         msg.AddElement(new Vector2(110, 9), new Vector2(73, 41), Textures.GetItemTexture(itemName));
         msg.CreateMessage();
     }
     catch (Exception)
     {
     }
 }
Beispiel #13
0
 public static void GenerateTpCatcherSideMessage(string hero, string itemName)
 {
     try
     {
         var msg = new SideMessage(hero, new Vector2(170, 59));
         msg.AddElement(new Vector2(9, 9), new Vector2(73, 41), Textures.GetHeroTexture(hero));
         msg.AddElement(new Vector2(110, 9), new Vector2(73, 41), Textures.GetItemTexture(itemName));
         msg.CreateMessage();
     }
     catch (Exception)
     {
         Printer.Print($"[TpCatcher.SideMessage]: {hero} -> {itemName}");
     }
 }
Beispiel #14
0
 public static void GenerateSideMessage(string hero, string spellName)
 {
     try
     {
         var msg = new SideMessage(hero, new Vector2(226, 59), stayTime: 2000);
         msg.AddElement(new Vector2(9, 9), new Vector2(73, 41), Textures.GetHeroTexture(hero));
         msg.AddElement(new Vector2(97, 2), new Vector2(50, 50), Textures.GetTexture("materials/ensage_ui/other/arrow_usual.vmat"));
         msg.AddElement(new Vector2(163, 9), new Vector2(75, 41), Textures.GetSpellTexture(spellName));
         msg.CreateMessage();
     }
     catch (Exception)
     {
     }
 }
Beispiel #15
0
 public static void GenerateSideMessage(string hero, string spellName)
 {
     try
     {
         var msg = new SideMessage(hero, new Vector2(226, 59), stayTime: 2000);
         msg.AddElement(new Vector2(9, 9), new Vector2(73, 41), Textures.GetTexture("materials/ensage_ui/heroes_horizontal/" + hero + ".vmat"));
         msg.AddElement(new Vector2(97, 2), new Vector2(50, 50), Textures.GetTexture("materials/ensage_ui/other/arrow_usual.vmat"));
         msg.AddElement(new Vector2(163, 9), new Vector2(75, 41), Textures.GetTexture("materials/ensage_ui/spellicons/" + spellName + ".vmat"));
         msg.CreateMessage();
     }
     catch (Exception)
     {
         Printer.Print($"[SideMessage]: {hero} -> {spellName}");
     }
 }
Beispiel #16
0
        private MapWard(Entity hero, ClassID wardID)
        {
            var texture = "materials/ensage_ui/items/";

            switch (wardID)
            {
            case ClassID.CDOTA_NPC_Observer_Ward: {
                EndTime = Game.GameTime + 360;
                var time = TimeSpan.FromSeconds(EndTime - Game.GameTime);
                TimeLeftString = time.ToString(@"m\:ss");
                texture       += "ward_observer.vmat";
                break;
            }

            case ClassID.CDOTA_NPC_Observer_Ward_TrueSight: {
                EndTime = Game.GameTime + 240;
                var time = TimeSpan.FromSeconds(EndTime - Game.GameTime);
                TimeLeftString = time.ToString(@"m\:ss");
                texture       += "ward_sentry.vmat";
                break;
            }
            }

            WardType = wardID;
            Show     = true;
            Texture  = Drawing.GetTexture(texture);
            Position = new Vector3(hero.Position.X + 300 * (float)Math.Cos(hero.RotationRad),
                                   hero.Position.Y + 300 * (float)Math.Sin(hero.RotationRad),
                                   hero.Position.Z);
            MinimapPosition = WorldToMiniMap(Position, Program.Menu.Item("minimapSize").GetValue <Slider>().Value);
            DrawRange();

            if (!Program.Menu.Item("notification").GetValue <bool>())
            {
                return;
            }

            var notification = new SideMessage("VC.enemyPlacedWard", new Vector2(226, 59));

            notification.AddElement(new Vector2(9, 9), new Vector2(73, 41),
                                    Drawing.GetTexture("materials/ensage_ui/heroes_horizontal/" +
                                                       hero.StoredName().Substring("npc_dota_hero_".Length) + ".vmat"));
            notification.AddElement(new Vector2(97, 2), new Vector2(50, 50),
                                    Drawing.GetTexture("materials/ensage_ui/other/arrow_usual_left.vmat"));
            notification.AddElement(new Vector2(163, 9), new Vector2(75, 41), Texture);

            notification.CreateMessage();
        }
Beispiel #17
0
        public void MessageRoshanMBAliveCreator(string roshan_mb_alive)
        {
            if (MenuManager.SideMessageItem.Value)
            {
                SideMessage = new SideMessage(
                    "roshan_mb_alive",
                    new Vector2(MsgX, MsgY),
                    stayTime: 6000);

                SideMessage.AddElement(
                    new Vector2(0, 0),
                    new Vector2(MsgX, MsgY),
                    Drawing.GetTexture("ensage_ui/other/msg7_" + MenuManager.LangList[Lang] + ".vmat"));

                SideMessage.CreateMessage();
            }
        }
Beispiel #18
0
        public void MessageCheckRuneCreator(string check_rune)
        {
            if (MenuManager.SideMessageItem.Value)
            {
                SideMessage = new SideMessage(
                    "check_rune",
                    new Vector2(MsgX, MsgY),
                    stayTime: 6000);

                SideMessage.AddElement(
                    new Vector2(0, 0),
                    new Vector2(MsgX, MsgY),
                    Drawing.GetTexture("ensage_ui/other/msg4_" + MenuManager.LangList[Lang] + ".vmat"));

                SideMessage.CreateMessage();
            }
        }
Beispiel #19
0
        public void MessageUseMidasCreator(string use_midas)
        {
            if (MenuManager.SideMessageItem.Value)
            {
                SideMessage = new SideMessage(
                    "use_midas",
                    new Vector2(MsgX, MsgY),
                    stayTime: 6000);

                SideMessage.AddElement(
                    new Vector2(0, 0),
                    new Vector2(MsgX, MsgY),
                    Drawing.GetTexture("ensage_ui/other/msg5_" + MenuManager.LangList[Lang] + ".vmat"));

                SideMessage.CreateMessage();
            }
        }
Beispiel #20
0
 
        static void MessageCreator(string saitama, string onepunch)
        {
            informationmessage = new SideMessage("Skills", new Vector2(180, 50));
            informationmessage.AddElement(new Vector2(10, 10), new Vector2(54, 30), Drawing.GetTexture("ensage_ui/heroes_horizontal/" + saitama));
            informationmessage.AddElement(new Vector2(70, 12), new Vector2(62, 31), Drawing.GetTexture("ensage_ui/other/arrow_usual"));
            informationmessage.AddElement(new Vector2(140, 10), new Vector2(30, 30), Drawing.GetTexture("ensage_ui/spellicons/"+onepunch));
            informationmessage.CreateMessage();
        }
        static void MessageItemCreator(string saitama, string punch)
        {
            informationmessage = new SideMessage("Items", new Vector2(180, 48));
            informationmessage.AddElement(new Vector2(006, 06), new Vector2(72, 36), Drawing.GetTexture("ensage_ui/heroes_horizontal/" + saitama));
            informationmessage.AddElement(new Vector2(078, 12), new Vector2(64, 32), Drawing.GetTexture("ensage_ui/other/arrow_usual"));
            informationmessage.AddElement(new Vector2(142, 06), new Vector2(72, 36), Drawing.GetTexture("ensage_ui/items/" + punch));
            informationmessage.CreateMessage();
        }
        private static void PrintSuccess(string text, params object[] arguments)
        {
            PrintEncolored(text, ConsoleColor.Green, arguments);
        }
        private static void PrintEncolored(string text, ConsoleColor color, params object[] arguments)
        {
            var clr = Console.ForegroundColor;
            Console.ForegroundColor = color;
            Console.WriteLine(text, arguments);
            Console.ForegroundColor = clr;
        }
    }
}