forked from KokoRyougi/EnsageSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessageCreator.cs
102 lines (100 loc) · 6.14 KB
/
MessageCreator.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
using Ensage;
using Ensage.Common;
using SharpDX;
namespace BeAwarePlus
{
class MessageCreator
{
private static SideMessage informationmessage;
internal static float msgX;
internal static float msgY;
internal static float sizeheroX;
internal static float sizeheroYspell;
internal static float sizeitemX;
internal static float herospellY;
internal static float heroallyX;
internal static float heroX;
internal static float spellX;
internal static float itemX;
internal static void MessageAllyCreator(string hero, string spell)
{
if (MenuManager.Menu.Item("enable_msg").GetValue<bool>())
{
informationmessage = new SideMessage(hero + spell, new Vector2(msgX, msgY), stayTime: 5000);
informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg0_" + BeAwarePlus.Addition[BeAwarePlus.GetLangId]));
informationmessage.AddElement(new Vector2(heroallyX, herospellY), new Vector2(sizeheroX, sizeheroYspell), Drawing.GetTexture("ensage_ui/heroes_horizontal/" + hero));
informationmessage.AddElement(new Vector2(heroX, herospellY), new Vector2(sizeheroYspell, sizeheroYspell), Drawing.GetTexture("ensage_ui/spellicons/" + spell));
informationmessage.CreateMessage();
}
}
internal static void MessageEnemyCreator(string hero, string spell)
{
if (MenuManager.Menu.Item("enable_msg").GetValue<bool>())
{
informationmessage = new SideMessage(hero + spell, new Vector2(msgX, msgY), stayTime: 5000);
informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg1_" + 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(spellX, herospellY), new Vector2(sizeheroYspell, sizeheroYspell), Drawing.GetTexture("ensage_ui/spellicons/" + spell));
informationmessage.CreateMessage();
}
}
internal static void MessageRuneCreator(string hero, string rune)
{
if (MenuManager.Menu.Item("enable_msg").GetValue<bool>())
{
informationmessage = new SideMessage(hero + rune, new Vector2(msgX, msgY), stayTime: 5000);
informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg2_" + 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(spellX, herospellY), new Vector2(sizeheroYspell, sizeheroYspell), Drawing.GetTexture("ensage_ui/modifier_textures/" + rune));
informationmessage.CreateMessage();
}
}
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();
}
}
internal static void MessageCheckRuneCreator(string check_rune)
{
if (MenuManager.Menu.Item("enable_msg").GetValue<bool>())
{
informationmessage = new SideMessage("check_rune", new Vector2(msgX, msgY), stayTime: 5000);
informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg4_" + BeAwarePlus.Addition[BeAwarePlus.GetLangId]));
informationmessage.CreateMessage();
}
}
internal static void MessageUseMidasCreator(string use_midas)
{
if (MenuManager.Menu.Item("enable_msg").GetValue<bool>())
{
informationmessage = new SideMessage("use_midas", new Vector2(msgX, msgY), stayTime: 5000);
informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg5_" + BeAwarePlus.Addition[BeAwarePlus.GetLangId]));
informationmessage.CreateMessage();
}
}
internal static void MessageRoshanAliveCreator(string roshan_alive)
{
if (MenuManager.Menu.Item("enable_msg").GetValue<bool>())
{
informationmessage = new SideMessage("rosha_nalive", new Vector2(msgX, msgY), stayTime: 5000);
informationmessage.AddElement(new Vector2(0, 0), new Vector2(msgX, msgY), Drawing.GetTexture("ensage_ui/other/msg6_" + BeAwarePlus.Addition[BeAwarePlus.GetLangId]));
informationmessage.CreateMessage();
}
}
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();
}
}
}
}