Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.32 KB | None | 0 0
  1. EhpCalcIt = LibStub("AceAddon-3.0"):NewAddon("EhpCalcIt", "AceConsole-3.0")
  2. local fenster, calcButton, classPick, devo, potion, chestEnchant, gotw, stoneskin, flask, fortitude, kingsOrSanc, bufffood, hornOfWinterOrEarthStrength, commandingShout, classicBufffood, stamina, armor, agility, allBuffs, noBuffs, exitButton
  3. local buffArray={devo, potion, chestEnchant, gotw, stoneskin, flask, fortitude, kingsOrSanc, bufffood, hornOfWinterOrEarthStrength, commandingShout, classicBufffood}
  4. local buffs={
  5. devotionAura;
  6. indestructiblePotion;
  7. chestEnchant;
  8. giftOfTheWild;
  9. stoneSkinTotem;
  10. flaskOfStoneblood;
  11. powerWordFortitude;
  12. blessingOfKings;
  13. blackenedDragonfin;
  14. hornOfWinter;
  15. commandingShout;
  16. dirgesKickinChimaerokChops;
  17. }
  18.  
  19.  
  20. function EhpCalcIt:OnInitialize()
  21. -- Called when the addon is loaded
  22.  
  23. self:RegisterChatCommand("ehp", function (arg)
  24. if(arg=="atm")then
  25. print("Hi");
  26. elseif(arg=="")then
  27. if(fenster:IsShown()) then
  28. fenster:Hide()
  29. else
  30. fenster:Show()
  31. end
  32. end
  33. end)
  34. end
  35.  
  36. function EhpCalcIt:OnEnable()
  37. -- Called when the addon is enabled
  38. zeichne();
  39. end
  40.  
  41. function EhpCalcIt:OnDisable()
  42. -- Called when the addon is disabled
  43. end
  44.  
  45. function zeichne()
  46. fenster = CreateFrame("Frame","ehpFrame",UIParent,"GameTooltipTemplate")
  47. fenster:SetPoint("CENTER",0,0)
  48. fenster:EnableMouse(true);
  49. fenster:SetToplevel(true);
  50. fenster:SetMovable(true);
  51. fenster:SetFrameStrata("LOW")
  52. fenster:SetWidth(600)
  53. fenster:SetHeight(700)
  54. fenster:RegisterForDrag("LeftButton")
  55. fenster:SetBackdropBorderColor(1,1,0,.5)
  56.  
  57. fenster:SetScript("OnMouseDown", function(frame, button)
  58. if button == "LeftButton" then
  59. frame.isMoving = true
  60. frame:StartMoving();
  61. end
  62. end)
  63.  
  64. fenster:SetScript("OnMouseUp", function(frame, button)
  65. if button == "LeftButton" then
  66. if( frame.isMoving ) then
  67. frame.isMoving = nil
  68. frame:StopMovingOrSizing();
  69. else
  70. stamina:ClearFocus();
  71. armor:ClearFocus();
  72. agility:ClearFocus();
  73. end
  74. end
  75. end)
  76. allBuffs=CreateFrame("Button", "allBuffs", fenster,"GameMenuButtonTemplate")
  77. allBuffs:SetPoint("TOPLEFT",40,-435)
  78. allBuffs:SetWidth(120)
  79. allBuffs:SetHeight(30)
  80. allBuffs:SetText("All Buffs")
  81. allBuffs:SetNormalFontObject("GameFontNormal");
  82. allBuffs:SetHighlightFontObject("GameFontHighlight");
  83.  
  84. allBuffs:SetScript("OnClick",function()
  85. stamina:ClearFocus()
  86. armor:ClearFocus()
  87. agility:ClearFocus()
  88. end)
  89.  
  90. noBuffs=CreateFrame("Button", "noBuffs", fenster,"GameMenuButtonTemplate")
  91. noBuffs:SetPoint("TOPLEFT",430,-435)
  92. noBuffs:SetWidth(120)
  93. noBuffs:SetHeight(30)
  94. noBuffs:SetText("No Buffs")
  95. noBuffs:SetNormalFontObject("GameFontNormal");
  96. noBuffs:SetHighlightFontObject("GameFontHighlight");
  97.  
  98. noBuffs:SetScript("OnClick",function()
  99. stamina:ClearFocus()
  100. armor:ClearFocus()
  101. agility:ClearFocus()
  102. end)
  103.  
  104. exitButton=CreateFrame("Button", "exitButton", fenster,"UIPanelCloseButton")
  105. exitButton:SetPoint("TOPRIGHT",0,0)
  106. exitButton:SetWidth(40)
  107. exitButton:SetHeight(40)
  108. --exitButton:SetText("X")
  109. exitButton:SetNormalFontObject("GameFontNormal");
  110. exitButton:SetHighlightFontObject("GameFontHighlight");
  111. exitButton:SetBackdropBorderColor(1,1,1,0)
  112.  
  113.  
  114. exitButton:SetScript("OnClick",function()
  115. stamina:ClearFocus()
  116. armor:ClearFocus()
  117. agility:ClearFocus()
  118. fenster:Hide()
  119. end)
  120.  
  121. calcButton=CreateFrame("Button", "calcButton", fenster,"GameMenuButtonTemplate")
  122. calcButton:SetPoint("CENTER",200,0)
  123. calcButton:SetWidth(120)
  124. calcButton:SetHeight(30)
  125. calcButton:SetText("Calculate")
  126. calcButton:SetNormalFontObject("GameFontNormal");
  127. calcButton:SetHighlightFontObject("GameFontHighlight");
  128.  
  129. calcButton:SetScript("OnClick",function()
  130. stamina:ClearFocus()
  131. armor:ClearFocus()
  132. agility:ClearFocus()
  133. end)
  134.  
  135.  
  136.  
  137. checkBoxTauren=CreateFrame("CheckButton", "checkBoxTauren", fenster, "ChatConfigCheckButtonTemplate")
  138. checkBoxTauren:SetPoint("TOPLEFT",37,-285)
  139. checkBoxTauren:SetWidth(36)
  140. checkBoxTauren:SetHeight(36)
  141.  
  142. classPick=CreateFrame("Frame","classPickDropDown", fenster,"UIDropDownMenuTemplate")
  143. UIDropDownMenu_SetText(classPick,"--Pick a class--")
  144. classPick:SetPoint("TOPLEFT",25,-250)
  145. UIDropDownMenu_SetWidth(classPick, 105)
  146. UIDropDownMenu_JustifyText(classPick,"CENTER")
  147. UIDropDownMenu_Initialize(classPick, function(self, level, menuList)
  148. local info = UIDropDownMenu_CreateInfo()
  149. info.text, info.checked = "Paladin", false
  150. info.func=function(self)
  151. UIDropDownMenu_SetText(classPick,"Paladin")
  152. end
  153. UIDropDownMenu_AddButton(info)
  154. info.text, info.checked = "Druid", false
  155. info.func=function(self)
  156. UIDropDownMenu_SetText(classPick,"Druid")
  157. end
  158. UIDropDownMenu_AddButton(info)
  159. info.text, info.checked = "Deathknight", false
  160. info.func=function(self)
  161. UIDropDownMenu_SetText(classPick,"Deathknight")
  162. end
  163. UIDropDownMenu_AddButton(info)
  164. info.text, info.checked = "Warrior", false
  165. info.func=function(self)
  166. UIDropDownMenu_SetText(classPick,"Warrior")
  167. end
  168. UIDropDownMenu_AddButton(info)
  169. end)
  170.  
  171.  
  172. devo=CreateFrame("Frame","devoDropDown", fenster,"UIDropDownMenuTemplate")
  173. devo:SetPoint("TOPLEFT",25,-500)
  174. UIDropDownMenu_SetWidth(devo, 80)
  175. UIDropDownMenu_JustifyText(devo,"CENTER")
  176. UIDropDownMenu_SetText(devo,"None")
  177. UIDropDownMenu_Initialize(devo, function(self, level, menuList)
  178. local info = UIDropDownMenu_CreateInfo()
  179. info.text, info.checked="None", false;
  180. info.func=function(self)
  181. UIDropDownMenu_SetText(devo,"None")
  182. end
  183. UIDropDownMenu_AddButton(info)
  184. info.text, info.checked="Normal", false;
  185. info.func=function(self)
  186. UIDropDownMenu_SetText(devo,"Normal")
  187. end
  188. UIDropDownMenu_AddButton(info)
  189. info.text, info.checked="Improved", false;
  190. info.func=function(self)
  191. UIDropDownMenu_SetText(devo,"Improved")
  192. end
  193. UIDropDownMenu_AddButton(info)
  194. end)
  195.  
  196. potion=CreateFrame("Frame","potionDropDown", fenster,"UIDropDownMenuTemplate")
  197. potion:SetPoint("TOPLEFT",25,-560)
  198. UIDropDownMenu_SetWidth(potion, 80)
  199. UIDropDownMenu_JustifyText(potion,"CENTER")
  200. UIDropDownMenu_Initialize(potion, function(self, level, menuList)
  201. local info = UIDropDownMenu_CreateInfo()
  202. info.text, info.checked="No", false;
  203. info.func=function(self)
  204. UIDropDownMenu_SetText(potion,"No")
  205. end
  206. UIDropDownMenu_AddButton(info)
  207. info.text, info.checked="Yes", false;
  208. info.func=function(self)
  209. UIDropDownMenu_SetText(potion,"Yes")
  210. end
  211. UIDropDownMenu_AddButton(info)
  212. end)
  213. UIDropDownMenu_SetText(potion,"No")
  214.  
  215. chestEnchant=CreateFrame("Frame","chestEnchantDropDown", fenster,"UIDropDownMenuTemplate")
  216. chestEnchant:SetPoint("TOPLEFT",25,-620)
  217. UIDropDownMenu_SetWidth(chestEnchant, 80)
  218. UIDropDownMenu_JustifyText(chestEnchant,"CENTER")
  219. UIDropDownMenu_Initialize(chestEnchant, function(self, level, menuList)
  220. local info = UIDropDownMenu_CreateInfo()
  221. info.text, info.checked="None", false;
  222. info.func=function(self)
  223. UIDropDownMenu_SetText(chestEnchant,"None")
  224. end
  225. UIDropDownMenu_AddButton(info)
  226. info.text, info.checked="+275HP", false;
  227. info.func=function(self)
  228. UIDropDownMenu_SetText(chestEnchant,"+275HP")
  229. end
  230. UIDropDownMenu_AddButton(info)
  231. info.text, info.checked="+18Stamina", false;
  232. info.func=function(self)
  233. UIDropDownMenu_SetText(chestEnchant,"+18Stam")
  234. end
  235. UIDropDownMenu_AddButton(info)
  236. info.text, info.checked="+10Stats", false;
  237. info.func=function(self)
  238. UIDropDownMenu_SetText(chestEnchant,"+10Stats")
  239. end
  240. UIDropDownMenu_AddButton(info)
  241. end)
  242. UIDropDownMenu_SetText(chestEnchant,"None")
  243.  
  244. gotw=CreateFrame("Frame","gotwDropDown", fenster,"UIDropDownMenuTemplate")
  245. gotw:SetPoint("TOPLEFT",161,-500)
  246. UIDropDownMenu_SetWidth(gotw, 80)
  247. UIDropDownMenu_JustifyText(gotw,"CENTER")
  248. UIDropDownMenu_Initialize(gotw, function(self, level, menuList)
  249. local info = UIDropDownMenu_CreateInfo()
  250. info.text, info.checked="None", false;
  251. info.func=function(self)
  252. UIDropDownMenu_SetText(gotw,"None")
  253. end
  254. UIDropDownMenu_AddButton(info)
  255. info.text, info.checked="Normal", false;
  256. info.func=function(self)
  257. UIDropDownMenu_SetText(gotw,"Normal")
  258. end
  259. UIDropDownMenu_AddButton(info)
  260. info.text, info.checked="Improved", false;
  261. info.func=function(self)
  262. UIDropDownMenu_SetText(gotw,"Improved")
  263. end
  264. UIDropDownMenu_AddButton(info)
  265. end)
  266. UIDropDownMenu_SetText(gotw,"None")
  267.  
  268. stoneskin=CreateFrame("Frame","stoneskinDropDown", fenster,"UIDropDownMenuTemplate")
  269. stoneskin:SetPoint("TOPLEFT",161,-560)
  270. UIDropDownMenu_SetWidth(stoneskin, 80)
  271. UIDropDownMenu_JustifyText(stoneskin,"CENTER")
  272. UIDropDownMenu_Initialize(stoneskin, function(self, level, menuList)
  273. local info = UIDropDownMenu_CreateInfo()
  274. info.text, info.checked="None", false;
  275. info.func=function(self)
  276. UIDropDownMenu_SetText(stoneskin,"None")
  277. end
  278. UIDropDownMenu_AddButton(info)
  279. info.text, info.checked="Normal", false;
  280. info.func=function(self)
  281. UIDropDownMenu_SetText(stoneskin,"Normal")
  282. end
  283. UIDropDownMenu_AddButton(info)
  284. info.text, info.checked="Improved", false;
  285. info.func=function(self)
  286. UIDropDownMenu_SetText(stoneskin,"Improved")
  287. end
  288. UIDropDownMenu_AddButton(info)
  289. end)
  290. UIDropDownMenu_SetText(stoneskin,"None")
  291.  
  292. flask=CreateFrame("Frame","flaskDropDown", fenster,"UIDropDownMenuTemplate")
  293. flask:SetPoint("TOPLEFT",161,-620)
  294. UIDropDownMenu_SetWidth(flask, 80)
  295. UIDropDownMenu_JustifyText(flask,"CENTER")
  296. UIDropDownMenu_Initialize(flask, function(self, level, menuList)
  297. local info = UIDropDownMenu_CreateInfo()
  298. info.text, info.checked="No", false;
  299. info.func=function(self)
  300. UIDropDownMenu_SetText(flask,"No")
  301. end
  302. UIDropDownMenu_AddButton(info)
  303. info.text, info.checked="Yes", false;
  304. info.func=function(self)
  305. UIDropDownMenu_SetText(flask,"Yes")
  306. end
  307. UIDropDownMenu_AddButton(info)
  308. end)
  309. UIDropDownMenu_SetText(flask,"No")
  310.  
  311. fortitude=CreateFrame("Frame","fortitudeDropDown", fenster,"UIDropDownMenuTemplate")
  312. fortitude:SetPoint("TOPLEFT",297,-500)
  313. UIDropDownMenu_SetWidth(fortitude, 80)
  314. UIDropDownMenu_JustifyText(fortitude,"CENTER")
  315. UIDropDownMenu_Initialize(fortitude, function(self, level, menuList)
  316. local info = UIDropDownMenu_CreateInfo()
  317. info.text, info.checked="None", false;
  318. info.func=function(self)
  319. UIDropDownMenu_SetText(fortitude,"None")
  320. end
  321. UIDropDownMenu_AddButton(info)
  322. info.text, info.checked="Normal", false;
  323. info.func=function(self)
  324. UIDropDownMenu_SetText(fortitude,"Normal")
  325. end
  326. UIDropDownMenu_AddButton(info)
  327. info.text, info.checked="Improved", false;
  328. info.func=function(self)
  329. UIDropDownMenu_SetText(fortitude,"Improved")
  330. end
  331. UIDropDownMenu_AddButton(info)
  332. end)
  333. UIDropDownMenu_SetText(fortitude,"None")
  334.  
  335. kingsOrSanc=CreateFrame("Frame","kingsOrSancDropDown", fenster,"UIDropDownMenuTemplate")
  336. kingsOrSanc:SetPoint("TOPLEFT",297,-560)
  337. UIDropDownMenu_SetWidth(kingsOrSanc, 80)
  338. UIDropDownMenu_JustifyText(kingsOrSanc,"CENTER")
  339. UIDropDownMenu_Initialize(kingsOrSanc, function(self, level, menuList)
  340. local info = UIDropDownMenu_CreateInfo()
  341. info.text, info.checked="None", false;
  342. info.func=function(self)
  343. UIDropDownMenu_SetText(kingsOrSanc,"None")
  344. end
  345. UIDropDownMenu_AddButton(info)
  346. info.text, info.checked="Blessing of Kings", false;
  347. info.func=function(self)
  348. UIDropDownMenu_SetText(kingsOrSanc,"Bok")
  349. end
  350. UIDropDownMenu_AddButton(info)
  351. info.text, info.checked="Blessing of Sanctuary", false;
  352. info.func=function(self)
  353. UIDropDownMenu_SetText(kingsOrSanc,"Bos")
  354. end
  355. UIDropDownMenu_AddButton(info)
  356. end)
  357. UIDropDownMenu_SetText(kingsOrSanc,"None")
  358.  
  359. bufffood=CreateFrame("Frame","bufffoodDropDown", fenster,"UIDropDownMenuTemplate")
  360. bufffood:SetPoint("TOPLEFT",297,-620)
  361. UIDropDownMenu_SetWidth(bufffood, 80)
  362. UIDropDownMenu_JustifyText(bufffood,"CENTER")
  363. UIDropDownMenu_Initialize(bufffood, function(self, level, menuList)
  364. local info = UIDropDownMenu_CreateInfo()
  365. info.text, info.checked="None", false;
  366. info.func=function(self)
  367. UIDropDownMenu_SetText(bufffood,"None")
  368. end
  369. UIDropDownMenu_AddButton(info)
  370. info.text, info.checked="Blackened Dragonfin", false;
  371. info.func=function(self)
  372. UIDropDownMenu_SetText(bufffood,"Agi/Stam")
  373. end
  374. UIDropDownMenu_AddButton(info)
  375. info.text, info.checked="Fishfest", false;
  376. info.func=function(self)
  377. UIDropDownMenu_SetText(bufffood,"Stam")
  378. end
  379. UIDropDownMenu_AddButton(info)
  380. end)
  381. UIDropDownMenu_SetText(bufffood,"None")
  382.  
  383. hornOfWinterOrEarthStrength=CreateFrame("Frame","hornOfWinterOrEarthStrengthDropDown", fenster,"UIDropDownMenuTemplate")
  384. hornOfWinterOrEarthStrength:SetPoint("TOPLEFT",433,-500)
  385. UIDropDownMenu_SetWidth(hornOfWinterOrEarthStrength, 80)
  386. UIDropDownMenu_JustifyText(hornOfWinterOrEarthStrength,"CENTER")
  387. UIDropDownMenu_Initialize(hornOfWinterOrEarthStrength, function(self, level, menuList)
  388. local info = UIDropDownMenu_CreateInfo()
  389. info.text, info.checked="None", false;
  390. info.func=function(self)
  391. UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"None")
  392. end
  393. UIDropDownMenu_AddButton(info)
  394. info.text, info.checked="Horn of Winter or Strength of Earth Totem", false;
  395. info.func=function(self)
  396. UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"Normal")
  397. end
  398. UIDropDownMenu_AddButton(info)
  399. info.text, info.checked="Improved Strength of Earth Totem", false;
  400. info.func=function(self)
  401. UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"Improved")
  402. end
  403. UIDropDownMenu_AddButton(info)
  404. end)
  405. UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"None")
  406.  
  407. commandingShout=CreateFrame("Frame","commandingShoutDropDown", fenster,"UIDropDownMenuTemplate")
  408. commandingShout:SetPoint("TOPLEFT",433,-560)
  409. UIDropDownMenu_SetWidth(commandingShout, 80)
  410. UIDropDownMenu_JustifyText(commandingShout,"CENTER")
  411. UIDropDownMenu_Initialize(commandingShout, function(self, level, menuList)
  412. local info = UIDropDownMenu_CreateInfo()
  413. info.text, info.checked="None", false;
  414. info.func=function(self)
  415. UIDropDownMenu_SetText(commandingShout,"None")
  416. end
  417. UIDropDownMenu_AddButton(info)
  418. info.text, info.checked="Commanding Shout or Blood Pact", false;
  419. info.func=function(self)
  420. UIDropDownMenu_SetText(commandingShout,"Normal")
  421. end
  422. UIDropDownMenu_AddButton(info)
  423. info.text, info.checked="Improved Commanding Shout or Blood Pact", false;
  424. info.func=function(self)
  425. UIDropDownMenu_SetText(commandingShout,"Improved")
  426. end
  427. UIDropDownMenu_AddButton(info)
  428. end)
  429. UIDropDownMenu_SetText(commandingShout,"None")
  430.  
  431. classicBufffood=CreateFrame("Frame","classicBufffoodDropDown", fenster,"UIDropDownMenuTemplate")
  432. classicBufffood:SetPoint("TOPLEFT",433,-620)
  433. UIDropDownMenu_SetWidth(classicBufffood, 80)
  434. UIDropDownMenu_JustifyText(classicBufffood,"CENTER")
  435. UIDropDownMenu_Initialize(classicBufffood, function(self, level, menuList)
  436. local info = UIDropDownMenu_CreateInfo()
  437. info.text, info.checked="No", false;
  438. info.func=function(self)
  439. UIDropDownMenu_SetText(classicBufffood,"No")
  440. end
  441. UIDropDownMenu_AddButton(info)
  442. info.text, info.checked="Yes", false;
  443. info.func=function(self)
  444. UIDropDownMenu_SetText(classicBufffood,"Yes")
  445. end
  446. UIDropDownMenu_AddButton(info)
  447. end)
  448. UIDropDownMenu_SetText(classicBufffood,"No")
  449.  
  450. stamina=CreateFrame("EditBox","stamEdit", fenster,"InputBoxTemplate")
  451. stamina:SetPoint("TOPLEFT",125,-80)
  452. stamina:SetSize(60,40)
  453. stamina:SetAutoFocus(false)
  454. stamina:SetFontObject("ChatFontNormal")
  455. stamina:SetMaxLetters(4)
  456. stamina:SetScript("OnChar", function(self, text)
  457. if(text~="1" and text~="2" and text~="3" and text~="4" and text~="5" and text~="6" and text~="7" and text~="8" and text~="9" and text~="0")then
  458. self:SetText(string.sub(self:GetText(),1,self:GetText():len()-1))
  459. end
  460. end)
  461. stamina:SetScript("OnTabPressed", function()
  462. armor:SetFocus()
  463. end)
  464.  
  465. armor=CreateFrame("EditBox","armorEdit", fenster,"InputBoxTemplate")
  466. armor:SetPoint("TOPLEFT",125,-120)
  467. armor:SetSize(60,40)
  468. armor:SetAutoFocus(false)
  469. armor:SetFontObject("ChatFontNormal")
  470. armor:SetMaxLetters(5)
  471. armor:SetScript("OnChar", function(self, text)
  472. if(text~="1" and text~="2" and text~="3" and text~="4" and text~="5" and text~="6" and text~="7" and text~="8" and text~="9" and text~="0")then
  473. self:SetText(string.sub(self:GetText(),1,self:GetText():len()-1))
  474. end
  475. end)
  476. armor:SetScript("OnTabPressed", function()
  477. agility:SetFocus()
  478. end)
  479.  
  480. agility=CreateFrame("EditBox","agilityEdit", fenster,"InputBoxTemplate")
  481. agility:SetPoint("TOPLEFT",125,-160)
  482. agility:SetSize(60,40)
  483. agility:SetAutoFocus(false)
  484. agility:SetFontObject("ChatFontNormal")
  485. agility:SetMaxLetters(4)
  486. agility:SetScript("OnChar", function(self, text)
  487. if(text~="1" and text~="2" and text~="3" and text~="4" and text~="5" and text~="6" and text~="7" and text~="8" and text~="9" and text~="0")then
  488. self:SetText(string.sub(self:GetText(),1,self:GetText():len()-1))
  489. end
  490. end)
  491. agility:SetScript("OnTabPressed", function()
  492. stamina:SetFocus()
  493. end)
  494.  
  495. local staminaLabel = fenster:CreateTexture(nil, "OVERLAY")
  496. staminaLabel:SetPoint("TOPLEFT", 20, -80)
  497. staminaLabel:SetWidth(50)
  498. staminaLabel:SetHeight(40)
  499.  
  500. local testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  501. testing:SetPoint("TOPLEFT", staminaLabel, "TOP", 0, -14)
  502. testing:SetText("Stamina")
  503.  
  504. local armorLabel = fenster:CreateTexture(nil, "OVERLAY")
  505. armorLabel:SetPoint("TOPLEFT", 20, -120)
  506. armorLabel:SetWidth(50)
  507. armorLabel:SetHeight(40)
  508.  
  509. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  510. testing:SetPoint("TOPLEFT", armorLabel, "TOP", 0, -14)
  511. testing:SetText("Armor")
  512.  
  513. local agilityLabel = fenster:CreateTexture(nil, "OVERLAY")
  514. agilityLabel:SetPoint("TOPLEFT", 20, -160)
  515. agilityLabel:SetWidth(50)
  516. agilityLabel:SetHeight(40)
  517.  
  518. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  519. testing:SetPoint("TOPLEFT", agilityLabel, "TOP", 0, -14)
  520. testing:SetText("Agility")
  521.  
  522. local line = fenster:CreateTexture()
  523. line:SetTexture(1,1,0,.5)
  524. line:SetSize(590,1)
  525. line:SetPoint("LEFT",fenster,5,-50)
  526. --------------------------------------------------
  527. local devoLabel = fenster:CreateTexture(nil, "OVERLAY")
  528. devoLabel:SetPoint("TOPLEFT", 20, -465)
  529. devoLabel:SetWidth(50)
  530. devoLabel:SetHeight(40)
  531.  
  532. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  533. testing:SetPoint("TOPLEFT", devoLabel, "TOP", 0, -14)
  534. testing:SetText("Devotion Aura")
  535.  
  536. local potionLabel = fenster:CreateTexture(nil, "OVERLAY")
  537. potionLabel:SetPoint("TOPLEFT", 0, -525)
  538. potionLabel:SetWidth(50)
  539. potionLabel:SetHeight(40)
  540.  
  541. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  542. testing:SetPoint("TOPLEFT", potionLabel, "TOP", 0, -14)
  543. testing:SetText("Indestructible Potion")
  544.  
  545. local chestEnchantLabel = fenster:CreateTexture(nil, "OVERLAY")
  546. chestEnchantLabel:SetPoint("TOPLEFT", 20, -585)
  547. chestEnchantLabel:SetWidth(50)
  548. chestEnchantLabel:SetHeight(40)
  549.  
  550. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  551. testing:SetPoint("TOPLEFT", chestEnchantLabel, "TOP", 0, -14)
  552. testing:SetText("Chest Enchant")
  553.  
  554. local gotwLabel = fenster:CreateTexture(nil, "OVERLAY")
  555. gotwLabel:SetPoint("TOPLEFT", 154, -465)
  556. gotwLabel:SetWidth(50)
  557. gotwLabel:SetHeight(40)
  558.  
  559. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  560. testing:SetPoint("TOPLEFT", gotwLabel, "TOP", 0, -14)
  561. testing:SetText("Gift of the Wild")
  562.  
  563. local stoneskinLabel = fenster:CreateTexture(nil, "OVERLAY")
  564. stoneskinLabel:SetPoint("TOPLEFT", 150, -525)
  565. stoneskinLabel:SetWidth(50)
  566. stoneskinLabel:SetHeight(40)
  567.  
  568. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  569. testing:SetPoint("TOPLEFT", stoneskinLabel, "TOP", 0, -14)
  570. testing:SetText("Stoneskin Totem")
  571.  
  572. local flaskLabel = fenster:CreateTexture(nil, "OVERLAY")
  573. flaskLabel:SetPoint("TOPLEFT", 142, -585)
  574. flaskLabel:SetWidth(50)
  575. flaskLabel:SetHeight(40)
  576.  
  577. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  578. testing:SetPoint("TOPLEFT", flaskLabel, "TOP", 0, -14)
  579. testing:SetText("Flask of Stoneblood")
  580.  
  581. local fortitudeLabel = fenster:CreateTexture(nil, "OVERLAY")
  582. fortitudeLabel:SetPoint("TOPLEFT", 296, -465)
  583. fortitudeLabel:SetWidth(50)
  584. fortitudeLabel:SetHeight(40)
  585.  
  586. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  587. testing:SetPoint("TOPLEFT", fortitudeLabel, "TOP", 0, -14)
  588. testing:SetText("Pw: Fortitude")
  589.  
  590. local kingsOrSancLabel = fenster:CreateTexture(nil, "OVERLAY")
  591. kingsOrSancLabel:SetPoint("TOPLEFT", 282, -525)
  592. kingsOrSancLabel:SetWidth(50)
  593. kingsOrSancLabel:SetHeight(40)
  594.  
  595. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  596. testing:SetPoint("TOPLEFT", kingsOrSancLabel, "TOP", 0, -14)
  597. testing:SetText("Kings or Sanctuary")
  598.  
  599. local bufffoodLabel = fenster:CreateTexture(nil, "OVERLAY")
  600. bufffoodLabel:SetPoint("TOPLEFT", 307, -585)
  601. bufffoodLabel:SetWidth(50)
  602. bufffoodLabel:SetHeight(40)
  603.  
  604. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  605. testing:SetPoint("TOPLEFT", bufffoodLabel, "TOP", 0, -14)
  606. testing:SetText("Bufffood")
  607.  
  608. local hornOfWinterOrEarthStrengthLabel = fenster:CreateTexture(nil, "OVERLAY")
  609. hornOfWinterOrEarthStrengthLabel:SetPoint("TOPLEFT", 405, -465)
  610. hornOfWinterOrEarthStrengthLabel:SetWidth(50)
  611. hornOfWinterOrEarthStrengthLabel:SetHeight(40)
  612.  
  613. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  614. testing:SetPoint("TOPLEFT", hornOfWinterOrEarthStrengthLabel, "TOP", 0, -14)
  615. testing:SetText("Horn of Winter or Totem")
  616.  
  617. local commandingShoutLabel = fenster:CreateTexture(nil, "OVERLAY")
  618. commandingShoutLabel:SetPoint("TOPLEFT", 415, -525)
  619. commandingShoutLabel:SetWidth(50)
  620. commandingShoutLabel:SetHeight(40)
  621.  
  622. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  623. testing:SetPoint("TOPLEFT", commandingShoutLabel, "TOP", 0, -14)
  624. testing:SetText("Commanding Shout")
  625.  
  626. local classicBufffoodLabel = fenster:CreateTexture(nil, "OVERLAY")
  627. classicBufffoodLabel:SetPoint("TOPLEFT", 425, -585)
  628. classicBufffoodLabel:SetWidth(50)
  629. classicBufffoodLabel:SetHeight(40)
  630.  
  631. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  632. testing:SetPoint("TOPLEFT", classicBufffoodLabel, "TOP", 0, -14)
  633. testing:SetText("Classic Bufffood")
  634.  
  635. local logo = fenster:CreateTexture(nil,"OVERLAY")
  636. logo:SetTexture("Interface\\Addons\\EhpCalcIt\\Files\\logo.bpl")
  637. logo:SetPoint("BOTTOMLEFT",5,5)
  638. logo:SetWidth(100)
  639. logo:SetHeight(25)
  640. logo:SetAlpha(0.5)
  641.  
  642. local buffsHeader = fenster:CreateTexture(nil, "OVERLAY")
  643. buffsHeader:SetPoint("TOPLEFT", 110, -410)
  644. buffsHeader:SetWidth(150)
  645. buffsHeader:SetHeight(40)
  646.  
  647. testing = fenster:CreateFontString(nil,"OVERLAY","GameFontNormalLarge")
  648. testing:SetPoint("TOPLEFT", buffsHeader, "TOP", 0, 0)
  649. testing:SetText("BUFFS AND CONSUMABLES:")
  650.  
  651. local headline = fenster:CreateTexture(nil, "OVERLAY")
  652. headline:SetPoint("TOPLEFT", 220, -5)
  653. headline:SetWidth(50)
  654. headline:SetHeight(40)
  655.  
  656. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
  657. testing:SetPoint("TOPLEFT", headline, "TOP", 0, -14)
  658. testing:SetText("EhpCalc V2.0")
  659.  
  660. local taurenCheckBoxLabel = fenster:CreateTexture(nil, "OVERLAY")
  661. taurenCheckBoxLabel:SetPoint("TOPLEFT", 50, -282)
  662. taurenCheckBoxLabel:SetWidth(50)
  663. taurenCheckBoxLabel:SetHeight(40)
  664.  
  665. testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
  666. testing:SetPoint("TOPLEFT", taurenCheckBoxLabel, "TOP", 0, -14)
  667. testing:SetText("Tauren?")
  668. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement