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")); }
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(); }
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(); }
public static void GenerateSideMessage(string hero, string spellName) { try { var msg = new SideMessage(hero, new Vector2(226, 59)); 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}"); } }
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; } } }
private static void GenerateSideMessage(string hero, string spellName) { if (!Menu.Item("SideMessage.Enable").GetValue<bool>()) return; 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(); }
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(); }
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(); }
// --→ 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(); }