Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EhpCalcIt = LibStub("AceAddon-3.0"):NewAddon("EhpCalcIt", "AceConsole-3.0")
- local fenster, calcButton, classPick, devo, potion, chestEnchant, gotw, stoneskin, flask, fortitude, kingsOrSanc, bufffood, hornOfWinterOrEarthStrength, commandingShout, classicBufffood, stamina, armor, agility, allBuffs, noBuffs, exitButton
- local buffArray={devo, potion, chestEnchant, gotw, stoneskin, flask, fortitude, kingsOrSanc, bufffood, hornOfWinterOrEarthStrength, commandingShout, classicBufffood}
- local buffs={
- devotionAura;
- indestructiblePotion;
- chestEnchant;
- giftOfTheWild;
- stoneSkinTotem;
- flaskOfStoneblood;
- powerWordFortitude;
- blessingOfKings;
- blackenedDragonfin;
- hornOfWinter;
- commandingShout;
- dirgesKickinChimaerokChops;
- }
- function EhpCalcIt:OnInitialize()
- -- Called when the addon is loaded
- self:RegisterChatCommand("ehp", function (arg)
- if(arg=="atm")then
- print("Hi");
- elseif(arg=="")then
- if(fenster:IsShown()) then
- fenster:Hide()
- else
- fenster:Show()
- end
- end
- end)
- end
- function EhpCalcIt:OnEnable()
- -- Called when the addon is enabled
- zeichne();
- end
- function EhpCalcIt:OnDisable()
- -- Called when the addon is disabled
- end
- function zeichne()
- fenster = CreateFrame("Frame","ehpFrame",UIParent,"GameTooltipTemplate")
- fenster:SetPoint("CENTER",0,0)
- fenster:EnableMouse(true);
- fenster:SetToplevel(true);
- fenster:SetMovable(true);
- fenster:SetFrameStrata("LOW")
- fenster:SetWidth(600)
- fenster:SetHeight(700)
- fenster:RegisterForDrag("LeftButton")
- fenster:SetBackdropBorderColor(1,1,0,.5)
- fenster:SetScript("OnMouseDown", function(frame, button)
- if button == "LeftButton" then
- frame.isMoving = true
- frame:StartMoving();
- end
- end)
- fenster:SetScript("OnMouseUp", function(frame, button)
- if button == "LeftButton" then
- if( frame.isMoving ) then
- frame.isMoving = nil
- frame:StopMovingOrSizing();
- else
- stamina:ClearFocus();
- armor:ClearFocus();
- agility:ClearFocus();
- end
- end
- end)
- allBuffs=CreateFrame("Button", "allBuffs", fenster,"GameMenuButtonTemplate")
- allBuffs:SetPoint("TOPLEFT",40,-435)
- allBuffs:SetWidth(120)
- allBuffs:SetHeight(30)
- allBuffs:SetText("All Buffs")
- allBuffs:SetNormalFontObject("GameFontNormal");
- allBuffs:SetHighlightFontObject("GameFontHighlight");
- allBuffs:SetScript("OnClick",function()
- stamina:ClearFocus()
- armor:ClearFocus()
- agility:ClearFocus()
- end)
- noBuffs=CreateFrame("Button", "noBuffs", fenster,"GameMenuButtonTemplate")
- noBuffs:SetPoint("TOPLEFT",430,-435)
- noBuffs:SetWidth(120)
- noBuffs:SetHeight(30)
- noBuffs:SetText("No Buffs")
- noBuffs:SetNormalFontObject("GameFontNormal");
- noBuffs:SetHighlightFontObject("GameFontHighlight");
- noBuffs:SetScript("OnClick",function()
- stamina:ClearFocus()
- armor:ClearFocus()
- agility:ClearFocus()
- end)
- exitButton=CreateFrame("Button", "exitButton", fenster,"UIPanelCloseButton")
- exitButton:SetPoint("TOPRIGHT",0,0)
- exitButton:SetWidth(40)
- exitButton:SetHeight(40)
- --exitButton:SetText("X")
- exitButton:SetNormalFontObject("GameFontNormal");
- exitButton:SetHighlightFontObject("GameFontHighlight");
- exitButton:SetBackdropBorderColor(1,1,1,0)
- exitButton:SetScript("OnClick",function()
- stamina:ClearFocus()
- armor:ClearFocus()
- agility:ClearFocus()
- fenster:Hide()
- end)
- calcButton=CreateFrame("Button", "calcButton", fenster,"GameMenuButtonTemplate")
- calcButton:SetPoint("CENTER",200,0)
- calcButton:SetWidth(120)
- calcButton:SetHeight(30)
- calcButton:SetText("Calculate")
- calcButton:SetNormalFontObject("GameFontNormal");
- calcButton:SetHighlightFontObject("GameFontHighlight");
- calcButton:SetScript("OnClick",function()
- stamina:ClearFocus()
- armor:ClearFocus()
- agility:ClearFocus()
- end)
- checkBoxTauren=CreateFrame("CheckButton", "checkBoxTauren", fenster, "ChatConfigCheckButtonTemplate")
- checkBoxTauren:SetPoint("TOPLEFT",37,-285)
- checkBoxTauren:SetWidth(36)
- checkBoxTauren:SetHeight(36)
- classPick=CreateFrame("Frame","classPickDropDown", fenster,"UIDropDownMenuTemplate")
- UIDropDownMenu_SetText(classPick,"--Pick a class--")
- classPick:SetPoint("TOPLEFT",25,-250)
- UIDropDownMenu_SetWidth(classPick, 105)
- UIDropDownMenu_JustifyText(classPick,"CENTER")
- UIDropDownMenu_Initialize(classPick, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked = "Paladin", false
- info.func=function(self)
- UIDropDownMenu_SetText(classPick,"Paladin")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked = "Druid", false
- info.func=function(self)
- UIDropDownMenu_SetText(classPick,"Druid")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked = "Deathknight", false
- info.func=function(self)
- UIDropDownMenu_SetText(classPick,"Deathknight")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked = "Warrior", false
- info.func=function(self)
- UIDropDownMenu_SetText(classPick,"Warrior")
- end
- UIDropDownMenu_AddButton(info)
- end)
- devo=CreateFrame("Frame","devoDropDown", fenster,"UIDropDownMenuTemplate")
- devo:SetPoint("TOPLEFT",25,-500)
- UIDropDownMenu_SetWidth(devo, 80)
- UIDropDownMenu_JustifyText(devo,"CENTER")
- UIDropDownMenu_SetText(devo,"None")
- UIDropDownMenu_Initialize(devo, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(devo,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Normal", false;
- info.func=function(self)
- UIDropDownMenu_SetText(devo,"Normal")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Improved", false;
- info.func=function(self)
- UIDropDownMenu_SetText(devo,"Improved")
- end
- UIDropDownMenu_AddButton(info)
- end)
- potion=CreateFrame("Frame","potionDropDown", fenster,"UIDropDownMenuTemplate")
- potion:SetPoint("TOPLEFT",25,-560)
- UIDropDownMenu_SetWidth(potion, 80)
- UIDropDownMenu_JustifyText(potion,"CENTER")
- UIDropDownMenu_Initialize(potion, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="No", false;
- info.func=function(self)
- UIDropDownMenu_SetText(potion,"No")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Yes", false;
- info.func=function(self)
- UIDropDownMenu_SetText(potion,"Yes")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(potion,"No")
- chestEnchant=CreateFrame("Frame","chestEnchantDropDown", fenster,"UIDropDownMenuTemplate")
- chestEnchant:SetPoint("TOPLEFT",25,-620)
- UIDropDownMenu_SetWidth(chestEnchant, 80)
- UIDropDownMenu_JustifyText(chestEnchant,"CENTER")
- UIDropDownMenu_Initialize(chestEnchant, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(chestEnchant,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="+275HP", false;
- info.func=function(self)
- UIDropDownMenu_SetText(chestEnchant,"+275HP")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="+18Stamina", false;
- info.func=function(self)
- UIDropDownMenu_SetText(chestEnchant,"+18Stam")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="+10Stats", false;
- info.func=function(self)
- UIDropDownMenu_SetText(chestEnchant,"+10Stats")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(chestEnchant,"None")
- gotw=CreateFrame("Frame","gotwDropDown", fenster,"UIDropDownMenuTemplate")
- gotw:SetPoint("TOPLEFT",161,-500)
- UIDropDownMenu_SetWidth(gotw, 80)
- UIDropDownMenu_JustifyText(gotw,"CENTER")
- UIDropDownMenu_Initialize(gotw, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(gotw,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Normal", false;
- info.func=function(self)
- UIDropDownMenu_SetText(gotw,"Normal")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Improved", false;
- info.func=function(self)
- UIDropDownMenu_SetText(gotw,"Improved")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(gotw,"None")
- stoneskin=CreateFrame("Frame","stoneskinDropDown", fenster,"UIDropDownMenuTemplate")
- stoneskin:SetPoint("TOPLEFT",161,-560)
- UIDropDownMenu_SetWidth(stoneskin, 80)
- UIDropDownMenu_JustifyText(stoneskin,"CENTER")
- UIDropDownMenu_Initialize(stoneskin, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(stoneskin,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Normal", false;
- info.func=function(self)
- UIDropDownMenu_SetText(stoneskin,"Normal")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Improved", false;
- info.func=function(self)
- UIDropDownMenu_SetText(stoneskin,"Improved")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(stoneskin,"None")
- flask=CreateFrame("Frame","flaskDropDown", fenster,"UIDropDownMenuTemplate")
- flask:SetPoint("TOPLEFT",161,-620)
- UIDropDownMenu_SetWidth(flask, 80)
- UIDropDownMenu_JustifyText(flask,"CENTER")
- UIDropDownMenu_Initialize(flask, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="No", false;
- info.func=function(self)
- UIDropDownMenu_SetText(flask,"No")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Yes", false;
- info.func=function(self)
- UIDropDownMenu_SetText(flask,"Yes")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(flask,"No")
- fortitude=CreateFrame("Frame","fortitudeDropDown", fenster,"UIDropDownMenuTemplate")
- fortitude:SetPoint("TOPLEFT",297,-500)
- UIDropDownMenu_SetWidth(fortitude, 80)
- UIDropDownMenu_JustifyText(fortitude,"CENTER")
- UIDropDownMenu_Initialize(fortitude, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(fortitude,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Normal", false;
- info.func=function(self)
- UIDropDownMenu_SetText(fortitude,"Normal")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Improved", false;
- info.func=function(self)
- UIDropDownMenu_SetText(fortitude,"Improved")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(fortitude,"None")
- kingsOrSanc=CreateFrame("Frame","kingsOrSancDropDown", fenster,"UIDropDownMenuTemplate")
- kingsOrSanc:SetPoint("TOPLEFT",297,-560)
- UIDropDownMenu_SetWidth(kingsOrSanc, 80)
- UIDropDownMenu_JustifyText(kingsOrSanc,"CENTER")
- UIDropDownMenu_Initialize(kingsOrSanc, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(kingsOrSanc,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Blessing of Kings", false;
- info.func=function(self)
- UIDropDownMenu_SetText(kingsOrSanc,"Bok")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Blessing of Sanctuary", false;
- info.func=function(self)
- UIDropDownMenu_SetText(kingsOrSanc,"Bos")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(kingsOrSanc,"None")
- bufffood=CreateFrame("Frame","bufffoodDropDown", fenster,"UIDropDownMenuTemplate")
- bufffood:SetPoint("TOPLEFT",297,-620)
- UIDropDownMenu_SetWidth(bufffood, 80)
- UIDropDownMenu_JustifyText(bufffood,"CENTER")
- UIDropDownMenu_Initialize(bufffood, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(bufffood,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Blackened Dragonfin", false;
- info.func=function(self)
- UIDropDownMenu_SetText(bufffood,"Agi/Stam")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Fishfest", false;
- info.func=function(self)
- UIDropDownMenu_SetText(bufffood,"Stam")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(bufffood,"None")
- hornOfWinterOrEarthStrength=CreateFrame("Frame","hornOfWinterOrEarthStrengthDropDown", fenster,"UIDropDownMenuTemplate")
- hornOfWinterOrEarthStrength:SetPoint("TOPLEFT",433,-500)
- UIDropDownMenu_SetWidth(hornOfWinterOrEarthStrength, 80)
- UIDropDownMenu_JustifyText(hornOfWinterOrEarthStrength,"CENTER")
- UIDropDownMenu_Initialize(hornOfWinterOrEarthStrength, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Horn of Winter or Strength of Earth Totem", false;
- info.func=function(self)
- UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"Normal")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Improved Strength of Earth Totem", false;
- info.func=function(self)
- UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"Improved")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(hornOfWinterOrEarthStrength,"None")
- commandingShout=CreateFrame("Frame","commandingShoutDropDown", fenster,"UIDropDownMenuTemplate")
- commandingShout:SetPoint("TOPLEFT",433,-560)
- UIDropDownMenu_SetWidth(commandingShout, 80)
- UIDropDownMenu_JustifyText(commandingShout,"CENTER")
- UIDropDownMenu_Initialize(commandingShout, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="None", false;
- info.func=function(self)
- UIDropDownMenu_SetText(commandingShout,"None")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Commanding Shout or Blood Pact", false;
- info.func=function(self)
- UIDropDownMenu_SetText(commandingShout,"Normal")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Improved Commanding Shout or Blood Pact", false;
- info.func=function(self)
- UIDropDownMenu_SetText(commandingShout,"Improved")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(commandingShout,"None")
- classicBufffood=CreateFrame("Frame","classicBufffoodDropDown", fenster,"UIDropDownMenuTemplate")
- classicBufffood:SetPoint("TOPLEFT",433,-620)
- UIDropDownMenu_SetWidth(classicBufffood, 80)
- UIDropDownMenu_JustifyText(classicBufffood,"CENTER")
- UIDropDownMenu_Initialize(classicBufffood, function(self, level, menuList)
- local info = UIDropDownMenu_CreateInfo()
- info.text, info.checked="No", false;
- info.func=function(self)
- UIDropDownMenu_SetText(classicBufffood,"No")
- end
- UIDropDownMenu_AddButton(info)
- info.text, info.checked="Yes", false;
- info.func=function(self)
- UIDropDownMenu_SetText(classicBufffood,"Yes")
- end
- UIDropDownMenu_AddButton(info)
- end)
- UIDropDownMenu_SetText(classicBufffood,"No")
- stamina=CreateFrame("EditBox","stamEdit", fenster,"InputBoxTemplate")
- stamina:SetPoint("TOPLEFT",125,-80)
- stamina:SetSize(60,40)
- stamina:SetAutoFocus(false)
- stamina:SetFontObject("ChatFontNormal")
- stamina:SetMaxLetters(4)
- stamina:SetScript("OnChar", function(self, text)
- 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
- self:SetText(string.sub(self:GetText(),1,self:GetText():len()-1))
- end
- end)
- stamina:SetScript("OnTabPressed", function()
- armor:SetFocus()
- end)
- armor=CreateFrame("EditBox","armorEdit", fenster,"InputBoxTemplate")
- armor:SetPoint("TOPLEFT",125,-120)
- armor:SetSize(60,40)
- armor:SetAutoFocus(false)
- armor:SetFontObject("ChatFontNormal")
- armor:SetMaxLetters(5)
- armor:SetScript("OnChar", function(self, text)
- 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
- self:SetText(string.sub(self:GetText(),1,self:GetText():len()-1))
- end
- end)
- armor:SetScript("OnTabPressed", function()
- agility:SetFocus()
- end)
- agility=CreateFrame("EditBox","agilityEdit", fenster,"InputBoxTemplate")
- agility:SetPoint("TOPLEFT",125,-160)
- agility:SetSize(60,40)
- agility:SetAutoFocus(false)
- agility:SetFontObject("ChatFontNormal")
- agility:SetMaxLetters(4)
- agility:SetScript("OnChar", function(self, text)
- 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
- self:SetText(string.sub(self:GetText(),1,self:GetText():len()-1))
- end
- end)
- agility:SetScript("OnTabPressed", function()
- stamina:SetFocus()
- end)
- local staminaLabel = fenster:CreateTexture(nil, "OVERLAY")
- staminaLabel:SetPoint("TOPLEFT", 20, -80)
- staminaLabel:SetWidth(50)
- staminaLabel:SetHeight(40)
- local testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", staminaLabel, "TOP", 0, -14)
- testing:SetText("Stamina")
- local armorLabel = fenster:CreateTexture(nil, "OVERLAY")
- armorLabel:SetPoint("TOPLEFT", 20, -120)
- armorLabel:SetWidth(50)
- armorLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", armorLabel, "TOP", 0, -14)
- testing:SetText("Armor")
- local agilityLabel = fenster:CreateTexture(nil, "OVERLAY")
- agilityLabel:SetPoint("TOPLEFT", 20, -160)
- agilityLabel:SetWidth(50)
- agilityLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", agilityLabel, "TOP", 0, -14)
- testing:SetText("Agility")
- local line = fenster:CreateTexture()
- line:SetTexture(1,1,0,.5)
- line:SetSize(590,1)
- line:SetPoint("LEFT",fenster,5,-50)
- --------------------------------------------------
- local devoLabel = fenster:CreateTexture(nil, "OVERLAY")
- devoLabel:SetPoint("TOPLEFT", 20, -465)
- devoLabel:SetWidth(50)
- devoLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", devoLabel, "TOP", 0, -14)
- testing:SetText("Devotion Aura")
- local potionLabel = fenster:CreateTexture(nil, "OVERLAY")
- potionLabel:SetPoint("TOPLEFT", 0, -525)
- potionLabel:SetWidth(50)
- potionLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", potionLabel, "TOP", 0, -14)
- testing:SetText("Indestructible Potion")
- local chestEnchantLabel = fenster:CreateTexture(nil, "OVERLAY")
- chestEnchantLabel:SetPoint("TOPLEFT", 20, -585)
- chestEnchantLabel:SetWidth(50)
- chestEnchantLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", chestEnchantLabel, "TOP", 0, -14)
- testing:SetText("Chest Enchant")
- local gotwLabel = fenster:CreateTexture(nil, "OVERLAY")
- gotwLabel:SetPoint("TOPLEFT", 154, -465)
- gotwLabel:SetWidth(50)
- gotwLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", gotwLabel, "TOP", 0, -14)
- testing:SetText("Gift of the Wild")
- local stoneskinLabel = fenster:CreateTexture(nil, "OVERLAY")
- stoneskinLabel:SetPoint("TOPLEFT", 150, -525)
- stoneskinLabel:SetWidth(50)
- stoneskinLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", stoneskinLabel, "TOP", 0, -14)
- testing:SetText("Stoneskin Totem")
- local flaskLabel = fenster:CreateTexture(nil, "OVERLAY")
- flaskLabel:SetPoint("TOPLEFT", 142, -585)
- flaskLabel:SetWidth(50)
- flaskLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", flaskLabel, "TOP", 0, -14)
- testing:SetText("Flask of Stoneblood")
- local fortitudeLabel = fenster:CreateTexture(nil, "OVERLAY")
- fortitudeLabel:SetPoint("TOPLEFT", 296, -465)
- fortitudeLabel:SetWidth(50)
- fortitudeLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", fortitudeLabel, "TOP", 0, -14)
- testing:SetText("Pw: Fortitude")
- local kingsOrSancLabel = fenster:CreateTexture(nil, "OVERLAY")
- kingsOrSancLabel:SetPoint("TOPLEFT", 282, -525)
- kingsOrSancLabel:SetWidth(50)
- kingsOrSancLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", kingsOrSancLabel, "TOP", 0, -14)
- testing:SetText("Kings or Sanctuary")
- local bufffoodLabel = fenster:CreateTexture(nil, "OVERLAY")
- bufffoodLabel:SetPoint("TOPLEFT", 307, -585)
- bufffoodLabel:SetWidth(50)
- bufffoodLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", bufffoodLabel, "TOP", 0, -14)
- testing:SetText("Bufffood")
- local hornOfWinterOrEarthStrengthLabel = fenster:CreateTexture(nil, "OVERLAY")
- hornOfWinterOrEarthStrengthLabel:SetPoint("TOPLEFT", 405, -465)
- hornOfWinterOrEarthStrengthLabel:SetWidth(50)
- hornOfWinterOrEarthStrengthLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", hornOfWinterOrEarthStrengthLabel, "TOP", 0, -14)
- testing:SetText("Horn of Winter or Totem")
- local commandingShoutLabel = fenster:CreateTexture(nil, "OVERLAY")
- commandingShoutLabel:SetPoint("TOPLEFT", 415, -525)
- commandingShoutLabel:SetWidth(50)
- commandingShoutLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", commandingShoutLabel, "TOP", 0, -14)
- testing:SetText("Commanding Shout")
- local classicBufffoodLabel = fenster:CreateTexture(nil, "OVERLAY")
- classicBufffoodLabel:SetPoint("TOPLEFT", 425, -585)
- classicBufffoodLabel:SetWidth(50)
- classicBufffoodLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", classicBufffoodLabel, "TOP", 0, -14)
- testing:SetText("Classic Bufffood")
- local logo = fenster:CreateTexture(nil,"OVERLAY")
- logo:SetTexture("Interface\\Addons\\EhpCalcIt\\Files\\logo.bpl")
- logo:SetPoint("BOTTOMLEFT",5,5)
- logo:SetWidth(100)
- logo:SetHeight(25)
- logo:SetAlpha(0.5)
- local buffsHeader = fenster:CreateTexture(nil, "OVERLAY")
- buffsHeader:SetPoint("TOPLEFT", 110, -410)
- buffsHeader:SetWidth(150)
- buffsHeader:SetHeight(40)
- testing = fenster:CreateFontString(nil,"OVERLAY","GameFontNormalLarge")
- testing:SetPoint("TOPLEFT", buffsHeader, "TOP", 0, 0)
- testing:SetText("BUFFS AND CONSUMABLES:")
- local headline = fenster:CreateTexture(nil, "OVERLAY")
- headline:SetPoint("TOPLEFT", 220, -5)
- headline:SetWidth(50)
- headline:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
- testing:SetPoint("TOPLEFT", headline, "TOP", 0, -14)
- testing:SetText("EhpCalc V2.0")
- local taurenCheckBoxLabel = fenster:CreateTexture(nil, "OVERLAY")
- taurenCheckBoxLabel:SetPoint("TOPLEFT", 50, -282)
- taurenCheckBoxLabel:SetWidth(50)
- taurenCheckBoxLabel:SetHeight(40)
- testing = fenster:CreateFontString(nil, "OVERLAY", "GameFontNormal")
- testing:SetPoint("TOPLEFT", taurenCheckBoxLabel, "TOP", 0, -14)
- testing:SetText("Tauren?")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement