Advertisement
calva

Untitled

Mar 1st, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.07 KB | None | 0 0
  1. //################################################################################
  2. //# ..:: created with TCT Version 5.1 for THUD v7.2 (17.3.26.1) ::.. by RealGsus #
  3. //################################################################################
  4.  
  5. namespace Turbo.Plugins.Jack.Monsters
  6. {
  7. using System;
  8. using Turbo.Plugins.Default;
  9.  
  10. public class DangerousAffixMonsterConfig : BasePlugin, ICustomizer
  11. {
  12. public DangerousAffixMonsterConfig()
  13. {
  14. Enabled = true;
  15. }
  16.  
  17. public void Customize()
  18. {
  19. //Debug(); return;
  20. Hud.RunOnPlugin<DangerousAffixMonsterPlugin>(plugin =>
  21. {
  22. plugin.DefineDangerousAffix(MonsterAffix.Arcane,
  23. (a) => "A",
  24. priority: 420,
  25. bgBrush: Hud.Render.CreateBrush(255, 0, 0, 0, 0),
  26. bgShapePainter: new CircleShapePainter(Hud),
  27. bgPing: true,
  28. bgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  29. bgEliteRadius: 8,
  30. bgMinionRadius: 6,
  31. fgBrush: Hud.Render.CreateBrush(255, 255, 0, 0, 0),
  32. fgShapePainter: new CircleShapePainter(Hud),
  33. fgPing: true,
  34. fgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  35. fgEliteRadius: 6,
  36. fgMinionRadius: 6,
  37. eliteFont: Hud.Render.CreateFont("tahoma", 10f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  38. minionFont: Hud.Render.CreateFont("tahoma", 7f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  39. showMinionDecorators: true,
  40. showMinionAffixesNames: true
  41.  
  42. plugin.DefineDangerousAffix(MonsterAffix.Wormhole,
  43. (a) => "WH"(0, 3), // or a string like "Jug"
  44. priority: 420, // higher first
  45. // decorator background
  46. bgBrush: Hud.Render.CreateBrush(255, 0, 0, 0, 0), // default
  47. bgShapePainter: new CircleShapePainter(Hud), // default new CircleShapePainter(Hud)
  48. bgPing: true, // default false
  49. bgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500), // default
  50. bgEliteRadius: 8, // default 8
  51. bgMinionRadius: 6, // default 6
  52. // decorator foreground
  53. fgBrush: Hud.Render.CreateBrush(255, 255, 0, 0, 1), // default
  54. fgShapePainter: new RotatingTriangleShapePainter(Hud), // default new CircleShapePainter(Hud)
  55. fgPing: true, // default false
  56. fgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500), // default
  57. fgEliteRadius: 6, // default 6
  58. fgMinionRadius: 2, // default 2
  59. // labels fonts
  60. eliteFont: Hud.Render.CreateFont("tahoma", 10f, 200, 255, 0, 0, false, false, 128, 0, 0, 0, true),
  61. minionFont: Hud.Render.CreateFont("tahoma", 7f, 200, 255, 0, 0, false, false, 128, 0, 0, 0, true),
  62. // minions
  63. showMinionDecorators: false, // default false
  64. showMinionAffixesNames: false // default false
  65.  
  66. );
  67. plugin.DefineDangerousAffix(MonsterAffix.Electrified,
  68. (a) => "\u26A1",
  69. priority: 420,
  70. bgBrush: Hud.Render.CreateBrush(255, 0, 0, 0, 0),
  71. bgShapePainter: new CircleShapePainter(Hud),
  72. bgPing: true,
  73. bgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  74. bgEliteRadius: 8,
  75. bgMinionRadius: 6,
  76. fgBrush: Hud.Render.CreateBrush(255, 255, 0, 0, 0),
  77. fgShapePainter: new CircleShapePainter(Hud),
  78. fgPing: true,
  79. fgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  80. fgEliteRadius: 6,
  81. fgMinionRadius: 6,
  82. eliteFont: Hud.Render.CreateFont("tahoma", 10f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  83. minionFont: Hud.Render.CreateFont("tahoma", 7f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  84. showMinionDecorators: true,
  85. showMinionAffixesNames: true
  86. );
  87. plugin.DefineDangerousAffix(MonsterAffix.Horde,
  88. (a) => "H",
  89. priority: 420,
  90. bgBrush: Hud.Render.CreateBrush(255, 0, 0, 0, 0),
  91. bgShapePainter: new CircleShapePainter(Hud),
  92. bgPing: true,
  93. bgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  94. bgEliteRadius: 8,
  95. bgMinionRadius: 6,
  96. fgBrush: Hud.Render.CreateBrush(255, 255, 0, 0, 0),
  97. fgShapePainter: new CircleShapePainter(Hud),
  98. fgPing: true,
  99. fgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  100. fgEliteRadius: 6,
  101. fgMinionRadius: 6,
  102. eliteFont: Hud.Render.CreateFont("tahoma", 10f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  103. minionFont: Hud.Render.CreateFont("tahoma", 7f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  104. showMinionDecorators: true,
  105. showMinionAffixesNames: true
  106. );
  107. plugin.DefineDangerousAffix(MonsterAffix.Juggernaut,
  108. (a) => "\u2620",
  109. priority: 420,
  110. bgBrush: Hud.Render.CreateBrush(255, 0, 0, 0, 0),
  111. bgShapePainter: new CircleShapePainter(Hud),
  112. bgPing: true,
  113. bgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  114. bgEliteRadius: 8,
  115. bgMinionRadius: 6,
  116. fgBrush: Hud.Render.CreateBrush(255, 255, 0, 0, 1),
  117. fgShapePainter: new RotatingTriangleShapePainter(Hud),
  118. fgPing: true,
  119. fgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  120. fgEliteRadius: 6,
  121. fgMinionRadius: 6,
  122. eliteFont: Hud.Render.CreateFont("tahoma", 10f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  123. minionFont: Hud.Render.CreateFont("tahoma", 7f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  124. showMinionAffixesNames: false
  125. );
  126. plugin.DefineDangerousAffix(MonsterAffix.Shielding,
  127. (a) => "\u26E8",
  128. priority: 420,
  129. bgBrush: Hud.Render.CreateBrush(255, 0, 0, 0, 0),
  130. bgShapePainter: new CircleShapePainter(Hud),
  131. bgPing: true,
  132. bgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  133. bgEliteRadius: 8,
  134. bgMinionRadius: 6,
  135. fgBrush: Hud.Render.CreateBrush(255, 255, 0, 0, 0),
  136. fgShapePainter: new CircleShapePainter(Hud),
  137. fgPing: true,
  138. fgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 500),
  139. fgEliteRadius: 6,
  140. fgMinionRadius: 6,
  141. eliteFont: Hud.Render.CreateFont("tahoma", 10f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  142. minionFont: Hud.Render.CreateFont("tahoma", 7f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true),
  143. showMinionDecorators: true,
  144. showMinionAffixesNames: true
  145. );
  146. });
  147. Enabled = false;
  148. }
  149.  
  150. public void Debug()
  151. {
  152. Hud.RunOnPlugin<DangerousAffixMonsterPlugin>(plugin =>
  153. {
  154. var p = 420;
  155. foreach (MonsterAffix affix in Enum.GetValues(typeof(MonsterAffix)))
  156. {
  157. plugin.DefineDangerousAffix(affix,
  158. (a) => a.NameLocalized.Substring(0, 3), // or a string like "Jug"
  159. priority: p--, // higher first
  160. // decorator background
  161. bgBrush: Hud.Render.CreateBrush(255, 0, 0, 0, 0),
  162. bgShapePainter: new CircleShapePainter(Hud), // default new CircleShapePainter(Hud)
  163. bgPing: true, // default false
  164. bgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 666),
  165. bgEliteRadius: 8, // default 8
  166. bgMinionRadius: 6, // default 6
  167. // decorator foreground
  168. fgBrush: Hud.Render.CreateBrush(255, 255, 0, 0, 1),
  169. fgShapePainter: new RotatingTriangleShapePainter(Hud), // default new CircleShapePainter(Hud)
  170. fgPing: false, // default false
  171. fgRadiusTransformator: new StandardPingRadiusTransformator(Hud, 666),
  172. fgEliteRadius: 6, // default 6
  173. fgMinionRadius: 2, // default 2
  174. // labels fonts
  175. eliteFont: Hud.Render.CreateFont("tahoma", 10f, 200, 255, 0, 0, false, false, 128, 0, 0, 0, true),
  176. minionFont: Hud.Render.CreateFont("tahoma", 7f, 200, 255, 0, 0, false, false, 128, 0, 0, 0, true),
  177. // minions
  178. showMinionDecorators: true, // default false
  179. showMinionAffixesNames: true // default false
  180. );
  181. }
  182. });
  183. }
  184. }
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement