[D] 21:12:33 - [Info] Log file created: 24 Dec 2018 21H12.log.html
[D] 21:12:33 - [Info] WRobot Version: 2.2.5 (26733) for wow: 2.4.3_8606
[D] 21:12:33 - [Info] Offical website: https://wrobot.eu/
[D] 21:12:33 - [Info] Operating System Details: Microsoft Windows NT 6.2.9200.0
[D] 21:12:33 - [Info] Lang: English (United States)
[F] 21:12:34 - [Memory] D3D9 found: 6A 18 B8 51 D7 9A 64 E8 5D 7E
[F] 21:12:34 - [Memory] D3D11 found: 8B FF 55 8B EC 83 EC 7C A1 F0
[D] 21:12:34 - [Memory] D3D9 used
[D] 21:12:39 - [Blacklist] Added, 2 uniques Npcs, 29 Blackspots and 0 Npcs types (Training dummy ignored = True).
21:12:39 - [Memory] Select game process: 6624 - Omg...
21:12:40 - [WRotation] Loaded
[F] 21:12:40 - NewUserSettings = False ; LastProductSelected = WRotation ; CustomClass = Ordush_-_Paid_-_Restoration_-_Druid_-_TBC_v1.2.2a.xml ; DetectEvadingMob = False ; IgnoreFightWhenInMove = False ; SkipRegenIfFlaggedInCombat = True ; TryToUseBestBagFoodDrink = True ; FoodMaxPercent = 95 ; DrinkMaxPercent = 95 ; LootAndHarvestRangeQuickly = True ; LootInCombat = False ; SkipNodesInWater = False ; MaxTryPerNode = 6 ; HearthstoneAfterXBlockagesLatest10Minutes = 0 ; HearthstoneNameOrIdAfterXBlockagesLatest10Minutes = 6948 ; RecordChatInLog = True ; UseSpiritHealerAfterXDeathsLatest10Minutes = 0 ; IgnoreFightWithPlayer = True ; UseCTM = True ; AcceptOnlyProfileNpc = False ; PathFinderServerSeemDownPauseBotTimeSec = 60 ; PathFinderRequestLog = False ; PathFinderFromServer = True ; OffMeshConnectionsSearchDistance = 1600 ; PathFinderRequestTimeoutMs = 12000 ; ReadObjectManagerFTS = 10 ; ForceAutoLoot = False ; RetrieveCorpseMaxDistance = 26 ; KeyBindingMacro = P ; EventsLuaWithArgsWaitTime = 150 ; DismountWhenStuck = True ; NpcScanRepair = True ; NpcScanAuctioneer = True ; NpcScanVendor = False ; NpcScanMailboxes = True ; SkipInOutDoors = False ; RandomJumping = False ; SizeWidth = 535 ; SizeHeight = 375 ; SaveWindowPosition = False ; WindowPosX = 0 ; WindowPosY = 0 ; MyMacro1 = wManager.wManagerSetting+MyMacro ; MyMacro2 = wManager.wManagerSetting+MyMacro ; MyMacro3 = wManager.wManagerSetting+MyMacro ; MyMacro4 = wManager.wManagerSetting+MyMacro ; PluginsSettings = ; CurrentSetting = wManager.wManagerSetting ; AssignTalents = False ; TrainNewSkills = False ; CanAttackUnitsAlreadyInFight = False ; DontStartFighting = False ; UseSpiritHealer = False ; UseMount = True ; UseGroundMount = True ; GroundMountName = Great Gray Kodo ; MountDistance = 80 ; IgnoreFightGoundMount = True ; FlyingMountName = Flight Form ; UseFlyingMount = True ; AquaticMountName = ; FoodName = ; FoodPercent = 35 ; DrinkName = Morning Glory Dew ; DrinkPercent = 55 ; RestingMana = True ; FoodIsSpell = False ; DrinkIsSpell = False ; LootMobs = False ; DetectNodesStuck = True ; LootChests = False ; SkinMobs = True ; SkinNinja = True ; HarvestMinerals = True ; HarvestHerbs = True ; HarvestTimber = False ; HarvestAvoidPlayersRadius = 7 ; MaxUnitsNear = 0 ; SearchRadius = 300 ; HarvestDuringLongMove = False ; Smelting = False ; Prospecting = False ; ProspectingInTown = False ; ProspectingTime = 15 ; ProspectingList = ; Milling = False ; MillingInTown = False ; MillingTime = 15 ; MillingList = ; BlackListHarvestByName = ; ListHarvestByName = ; Relogger = False ; AccountEmail = ; AccountPassword = ; BNetName = ; FoodAmount = 0 ; DrinkAmount = 0 ; MinFreeBagSlotsToGoToTown = 2 ; UseMammoth = False ; ToTownTimer = 40 ; ToTownTimerActivated = False ; Repair = True ; Selling = True ; SellGray = True ; SellWhite = True ; SellGreen = False ; SellBlue = False ; SellPurple = False ; DoNotSellList = Hearthstone, Morning Glory Dew, Mageweave Cloth ; ForceSellList = ; BuyList = ; UseMail = False ; UseMollE = False ; MailRecipient = ; MailSubject = Hey ; MailGray = False ; MailWhite = True ; MailGreen = True ; MailBlue = True ; MailPurple = True ; DoNotMailList = Refreshing Spring Water, Shiny Red Apple, Hearthstone ; ForceMailList = ; CloseIfFullBag = False ; CloseIfReached4000HonorPoints = False ; CloseIfPlayerTeleported = False ; CloseAfterXLevel = 100 ; CloseIfWhisperBiggerOrEgalAt = 13 ; CloseAfterXBlockagesLatest10Minutes = 25 ; CloseAfterXMin = 2880 ; SecurityPauseBotIfNerbyPlayer = False ; SecurityRecordWhisperInLogFile = True ; SecuritySongIfNewWhisper = False ; UsePathsFinder = True ; NpcMailboxSearchRadius = 10000 ; HelpingGroupMembers = True ; AttackElite = False ; CloseAfterXBlockagesActive = True ; CloseAfterXDeathsActive = False ; CloseAfterXDeathsLatest10Minutes = 5 ; CloseAfterXMinActive = False ; AttackBeforeBeingAttacked = True ; SpellRotationSpeed = False ; IgnoreFightDuringFarmIfDruidForm = False ; WaitResurrectionSickness = False ; BlackListZoneWhereDead = False ; DisableNearPlayerToTown = False ; GoToTownHerbBags = False ; GoToTownMiningBags = False ; CalcuCombatRange = True ; UnlockMaxFps = False ; IgnoreCombatWithPet = False ; UseLuaToMove = False ; SecurityPauseBotIfNerbyPlayerRadius = 1000 ; SecurityPauseBotIfNerbyPlayerTime = 20 ; SecurityShutdownComputer = False ; LatencyMin = 150 ; LatencyMax = 500 ; AddToNpcDb = False ; BlackListTrainingDummy = True ; AvoidWallWithRays = True ; FlyAboveGroundHeight = 1.5 ; AvoidBlacklistedZonesPathFinder = True ; BlackListIfNotCompletePath = True ; WallDistancePathFinder = 1.5 ; PathFinderPostionOffset = 1.7 ; FlightMasterDiscoverRange = 150 ; FlightMasterTaxiDistance = 1000 ; FlightMasterTaxiUse = True ; FlightMasterTaxiUseOnlyIfNear = False ;
[F] 21:12:40 - SaveWindowPosition = False ; NewUserSettings = False ; LastProductSelected = WRotation ; CustomClass = Ordush_-_Paid_-_Restoration_-_Druid_-_TBC_v1.2.2a.xml ; DetectEvadingMob = False ; IgnoreFightWhenInMove = False ; SkipRegenIfFlaggedInCombat = True ; TryToUseBestBagFoodDrink = True ; FoodMaxPercent = 95 ; DrinkMaxPercent = 95 ; LootAndHarvestRangeQuickly = True ; LootInCombat = False ; SkipNodesInWater = False ; MaxTryPerNode = 6 ; HearthstoneAfterXBlockagesLatest10Minutes = 0 ; HearthstoneNameOrIdAfterXBlockagesLatest10Minutes = 6948 ; RecordChatInLog = True ; UseSpiritHealerAfterXDeathsLatest10Minutes = 0 ; IgnoreFightWithPlayer = True ; UseCTM = True ; AcceptOnlyProfileNpc = False ; PathFinderServerSeemDownPauseBotTimeSec = 60 ; PathFinderRequestLog = False ; PathFinderFromServer = True ; OffMeshConnectionsSearchDistance = 1600 ; PathFinderRequestTimeoutMs = 12000 ; ReadObjectManagerFTS = 10 ; ForceAutoLoot = False ; RetrieveCorpseMaxDistance = 26 ; KeyBindingMacro = P ; EventsLuaWithArgsWaitTime = 150 ; DismountWhenStuck = True ; NpcScanRepair = True ; NpcScanAuctioneer = True ; NpcScanVendor = False ; NpcScanMailboxes = True ; SkipInOutDoors = False ; RandomJumping = False ; SizeWidth = 535 ; SizeHeight = 375 ; WindowPosX = 0 ; WindowPosY = 0 ; MyMacro1 = wManager.wManagerSetting+MyMacro ; MyMacro2 = wManager.wManagerSetting+MyMacro ; MyMacro3 = wManager.wManagerSetting+MyMacro ; MyMacro4 = wManager.wManagerSetting+MyMacro ; PluginsSettings = ; CurrentSetting = wManager.wManagerSetting ; AssignTalents = False ; TrainNewSkills = False ; CanAttackUnitsAlreadyInFight = False ; DontStartFighting = False ; UseSpiritHealer = False ; UseMount = True ; UseGroundMount = True ; GroundMountName = Great Gray Kodo ; MountDistance = 80 ; IgnoreFightGoundMount = True ; FlyingMountName = Flight Form ; UseFlyingMount = True ; AquaticMountName = ; FoodName = ; FoodPercent = 35 ; DrinkName = Morning Glory Dew ; DrinkPercent = 55 ; RestingMana = True ; FoodIsSpell = False ; DrinkIsSpell = False ; LootMobs = False ; DetectNodesStuck = True ; LootChests = False ; SkinMobs = True ; SkinNinja = True ; HarvestMinerals = True ; HarvestHerbs = True ; HarvestTimber = False ; HarvestAvoidPlayersRadius = 7 ; MaxUnitsNear = 0 ; SearchRadius = 300 ; HarvestDuringLongMove = False ; Smelting = False ; Prospecting = False ; ProspectingInTown = False ; ProspectingTime = 15 ; ProspectingList = ; Milling = False ; MillingInTown = False ; MillingTime = 15 ; MillingList = ; BlackListHarvestByName = ; ListHarvestByName = ; Relogger = False ; AccountEmail = ; AccountPassword = ; BNetName = ; FoodAmount = 0 ; DrinkAmount = 0 ; MinFreeBagSlotsToGoToTown = 2 ; UseMammoth = False ; ToTownTimer = 40 ; ToTownTimerActivated = False ; Repair = True ; Selling = True ; SellGray = True ; SellWhite = True ; SellGreen = False ; SellBlue = False ; SellPurple = False ; DoNotSellList = Hearthstone, Morning Glory Dew, Mageweave Cloth ; ForceSellList = ; BuyList = ; UseMail = False ; UseMollE = False ; MailRecipient = ; MailSubject = Hey ; MailGray = False ; MailWhite = True ; MailGreen = True ; MailBlue = True ; MailPurple = True ; DoNotMailList = Refreshing Spring Water, Shiny Red Apple, Hearthstone ; ForceMailList = ; CloseIfFullBag = False ; CloseIfReached4000HonorPoints = False ; CloseIfPlayerTeleported = False ; CloseAfterXLevel = 100 ; CloseIfWhisperBiggerOrEgalAt = 13 ; CloseAfterXBlockagesLatest10Minutes = 25 ; CloseAfterXMin = 2880 ; SecurityPauseBotIfNerbyPlayer = False ; SecurityRecordWhisperInLogFile = True ; SecuritySongIfNewWhisper = False ; UsePathsFinder = True ; NpcMailboxSearchRadius = 10000 ; HelpingGroupMembers = True ; AttackElite = False ; CloseAfterXBlockagesActive = True ; CloseAfterXDeathsActive = False ; CloseAfterXDeathsLatest10Minutes = 5 ; CloseAfterXMinActive = False ; AttackBeforeBeingAttacked = True ; SpellRotationSpeed = False ; IgnoreFightDuringFarmIfDruidForm = False ; WaitResurrectionSickness = False ; BlackListZoneWhereDead = False ; DisableNearPlayerToTown = False ; GoToTownHerbBags = False ; GoToTownMiningBags = False ; CalcuCombatRange = True ; UnlockMaxFps = False ; IgnoreCombatWithPet = False ; UseLuaToMove = False ; SecurityPauseBotIfNerbyPlayerRadius = 1000 ; SecurityPauseBotIfNerbyPlayerTime = 20 ; SecurityShutdownComputer = False ; LatencyMin = 150 ; LatencyMax = 500 ; AddToNpcDb = False ; BlackListTrainingDummy = True ; AvoidWallWithRays = True ; FlyAboveGroundHeight = 1.5 ; AvoidBlacklistedZonesPathFinder = True ; BlackListIfNotCompletePath = True ; WallDistancePathFinder = 1.5 ; PathFinderPostionOffset = 1.7 ; FlightMasterDiscoverRange = 150 ; FlightMasterTaxiDistance = 1000 ; FlightMasterTaxiUse = True ; FlightMasterTaxiUseOnlyIfNear = False ;
[F] 21:12:40 - WRobotFileName = ; WRobotTmpFolderName = ; DriveLetter = ; FullWowPath = C:\Program Files (x86)\World of Warcraft\ ; MaxFPS = 50 ; MaxLuaMemoryUsage = 120000 ; CloseIfCannotLoginWowMinutes = 2 ; WaitTimeToRelogSeconds = 0 ; CloseGameIfAdminRights = False ; UseShortcuts = False ; WindowName = ; TopMost = False ; Remote = False ; ToTrayBar = False ; MeShow = True ; TargetShow = True ; PathShow = True ; BlacklistShow = True ; NpcShow = False ; PlayersShow = False ; ObjectsShow = False ; LowFps = True ; LowQuality = True ; ByName = ; CurrentSetting = wManager.wManagerGlobalSetting ; FilePath = C:\Games\Privat wow\World of Warcraft - TBC (2.4.3)\WRobot\\Settings\WRobotGlobalSetting.xml ;
[F] 21:12:40 - CanProtectAgainstScreenshots = True ; ArgsEnvironmentVariables = WzrCJGdaZsVHyvskL ; InstallDateTime = 1/23/2018 4:27:10 PM ; ShowMs = False ; normalCb = True ; fightCb = True ; navigatorCb = False ; debugCb = True ; ErrorCb = False ; SendErrorCb = False ; CurrentSetting = robotManager.robotManagerGlobalSetting ; FilePath = C:\Games\Privat wow\World of Warcraft - TBC (2.4.3)\WRobot\\Settings\RobotManagerGlobalSetting.xml ;
[D] 21:12:40 - [Info] Wow Version: 8606
[D] 21:12:40 - [Info] Player found: True
[D] 21:12:40 - [Info] Wow Addons: !Compatibility, !DebugTools, ArkInventory, AtlasLoot, AtlasLoot_BCInstances, AtlasLoot_Crafting, AtlasLoot_OldInstances, AtlasLoot_RepFactions, AtlasLoot_SetsandPvP, AtlasLoot_WorldLoot, Auctionator, BigWigs, GearScoreLite, HealBot, ImprovedCamera, LoadIT, MikScrollingBattleText, MSBTOptions, Omen, Postal, Recount, TomTom, WIM, WIM_Options
21:12:40 - [SpellManager] Initializing SpellBook - (Wait few seconds)
21:12:40 - [SpellManager] Initialize SpellBook Finished (168 spell found)
[D] 21:12:40 - [SpellManager] List of id found in spellbook:
Alchemy (28596)
Attack (6603)
Basic Campfire (818)
Cooking (33359)
Cultivation (20552)
Dodge (81)
Endurance (20550)
Leatherworking (32549)
Nature Resistance (20551)
Potion Master (28675)
War Stomp (20549)
Barkskin (22812)
Cyclone (33786)
Entangling Roots (339)
Entangling Roots (1062)
Entangling Roots (5195)
Entangling Roots (5196)
Entangling Roots (9852)
Entangling Roots (9853)
Entangling Roots (26989)
Faerie Fire (770)
Faerie Fire (778)
Faerie Fire (9749)
Faerie Fire (9907)
Faerie Fire (26993)
Hibernate (2637)
Hibernate (18657)
Hibernate (18658)
Hurricane (16914)
Hurricane (17401)
Hurricane (17402)
Hurricane (27012)
Innervate (29166)
Moonfire (8921)
Moonfire (8924)
Moonfire (8925)
Moonfire (8926)
Moonfire (8927)
Moonfire (8928)
Moonfire (8929)
Moonfire (9833)
Moonfire (9834)
Moonfire (9835)
Moonfire (26987)
Moonfire (26988)
Soothe Animal (2908)
Soothe Animal (8955)
Soothe Animal (9901)
Soothe Animal (26995)
Starfire (2912)
Starfire (8949)
Starfire (8950)
Starfire (8951)
Starfire (9875)
Starfire (9876)
Starfire (25298)
Starfire (26986)
Teleport: Moonglade (18960)
Thorns (467)
Thorns (782)
Thorns (1075)
Thorns (8914)
Thorns (9756)
Thorns (9910)
Thorns (26992)
Wrath (5176)
Wrath (5177)
Wrath (5178)
Wrath (5179)
Wrath (5180)
Wrath (6780)
Wrath (8905)
Wrath (9912)
Wrath (26984)
Wrath (26985)
Aquatic Form (1066)
Bash (8983)
Cat Form (768)
Challenging Roar (5209)
Claw (27000)
Cower (27004)
Dash (33357)
Demoralizing Roar (26998)
Dire Bear Form (9634)
Enrage (5229)
Feline Grace (20719)
Ferocious Bite (24248)
Frenzied Regeneration (26999)
Growl (6795)
Lacerate (33745)
Maim (22570)
Maul (26996)
Pounce (27006)
Prowl (9913)
Rake (27003)
Ravage (27005)
Rip (27008)
Shred (27002)
Swift Flight Form (40120)
Swipe (26997)
Tiger's Fury (9846)
Track Humanoids (5225)
Travel Form (783)
Abolish Poison (2893)
Gift of the Wild (21849)
Gift of the Wild (21850)
Gift of the Wild (26991)
Healing Touch (5185)
Healing Touch (5186)
Healing Touch (5187)
Healing Touch (5188)
Healing Touch (5189)
Healing Touch (6778)
Healing Touch (8903)
Healing Touch (9758)
Healing Touch (9888)
Healing Touch (9889)
Healing Touch (25297)
Healing Touch (26978)
Healing Touch (26979)
Lifebloom (33763)
Mark of the Wild (1126)
Mark of the Wild (5232)
Mark of the Wild (6756)
Mark of the Wild (5234)
Mark of the Wild (8907)
Mark of the Wild (9884)
Mark of the Wild (9885)
Mark of the Wild (26990)
Nature's Swiftness (17116)
Omen of Clarity (16864)
Rebirth (20484)
Rebirth (20739)
Rebirth (20742)
Rebirth (20747)
Rebirth (20748)
Rebirth (26994)
Regrowth (8936)
Regrowth (8938)
Regrowth (8939)
Regrowth (8940)
Regrowth (8941)
Regrowth (9750)
Regrowth (9856)
Regrowth (9857)
Regrowth (9858)
Regrowth (26980)
Rejuvenation (774)
Rejuvenation (1058)
Rejuvenation (1430)
Rejuvenation (2090)
Rejuvenation (2091)
Rejuvenation (3627)
Rejuvenation (8910)
Rejuvenation (9839)
Rejuvenation (9840)
Rejuvenation (9841)
Rejuvenation (25299)
Rejuvenation (26981)
Rejuvenation (26982)
Remove Curse (2782)
Swiftmend (18562)
Tranquility (740)
Tranquility (8918)
Tranquility (9862)
Tranquility (9863)
Tranquility (26983)
Tree of Life (33891)

21:12:40 - [SpellManager] Please wait, loading spellbook...
21:12:40 - [SpellManager] Spellbook loaded.
[D] 21:12:40 - [Keybindings]
Sit / Stand: C
Backward: S
Forward: W
Jump: SPACE
Strafe Left: Q
Strafe Right: E

[D] 21:35:12 - [Blacklist] Added, 2 uniques Npcs, 29 Blackspots and 0 Npcs types (Training dummy ignored = True).
[F] 21:35:12 - ManageMovement = False ; AttackAll = False ; UseMiniMapClick = False ; AutoResurrect = False ; LootInRange = False ; AttackOnlyIfFlaggedInCombat = True ; DisableCTM = False ; CurrentSetting = WRotation.Bot.WRotationSetting ;
[F] 21:35:12 - [FightClass] Loading Fight class: C:\Games\Privat wow\World of Warcraft - TBC (2.4.3)\WRobot\\FightClass\Ordush_-_Paid_-_Restoration_-_Druid_-_TBC_v1.2.2a.xml
[D] 21:35:13 - [Spell] Barkskin (Id found: 22812, Name found: Barkskin, NameInGame found: Barkskin, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Tree of Life (Id found: 33891, Name found: Tree of Life, NameInGame found: Tree of Life, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Thorns (Id found: 467, Name found: Thorns, NameInGame found: Thorns, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Nature's Swiftness (Id found: 17116, Name found: Nature's Swiftness, NameInGame found: Nature's Swiftness, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Healing Touch (Id found: 5185, Name found: Healing Touch, NameInGame found: Healing Touch, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Swiftmend (Id found: 18562, Name found: Swiftmend, NameInGame found: Swiftmend, Know = True, IsSpellUsable = False)
[D] 21:35:13 - [Spell] Abolish Poison (Id found: 2893, Name found: Abolish Poison, NameInGame found: Abolish Poison, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Remove Curse (Id found: 2782, Name found: Remove Curse, NameInGame found: Remove Curse, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Regrowth (Id found: 8936, Name found: Regrowth, NameInGame found: Regrowth, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Regrowth (Id found: 8936, Name found: Regrowth, NameInGame found: Regrowth, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Rejuvenation (Id found: 774, Name found: Rejuvenation, NameInGame found: Rejuvenation, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Innervate (Id found: 29166, Name found: Innervate, NameInGame found: Innervate, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Nature's Swiftness (Id found: 17116, Name found: Nature's Swiftness, NameInGame found: Nature's Swiftness, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Healing Touch (Id found: 5185, Name found: Healing Touch, NameInGame found: Healing Touch, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Swiftmend (Id found: 18562, Name found: Swiftmend, NameInGame found: Swiftmend, Know = True, IsSpellUsable = False)
[D] 21:35:13 - [Spell] Abolish Poison (Id found: 2893, Name found: Abolish Poison, NameInGame found: Abolish Poison, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Remove Curse (Id found: 2782, Name found: Remove Curse, NameInGame found: Remove Curse, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Regrowth (Id found: 8936, Name found: Regrowth, NameInGame found: Regrowth, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Regrowth (Id found: 8936, Name found: Regrowth, NameInGame found: Regrowth, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Rejuvenation (Id found: 774, Name found: Rejuvenation, NameInGame found: Rejuvenation, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Innervate (Id found: 29166, Name found: Innervate, NameInGame found: Innervate, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Nature's Swiftness (Id found: 17116, Name found: Nature's Swiftness, NameInGame found: Nature's Swiftness, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Healing Touch (Id found: 5185, Name found: Healing Touch, NameInGame found: Healing Touch, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Swiftmend (Id found: 18562, Name found: Swiftmend, NameInGame found: Swiftmend, Know = True, IsSpellUsable = False)
[D] 21:35:13 - [Spell] Abolish Poison (Id found: 2893, Name found: Abolish Poison, NameInGame found: Abolish Poison, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Remove Curse (Id found: 2782, Name found: Remove Curse, NameInGame found: Remove Curse, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Regrowth (Id found: 8936, Name found: Regrowth, NameInGame found: Regrowth, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Regrowth (Id found: 8936, Name found: Regrowth, NameInGame found: Regrowth, Know = True, IsSpellUsable = True)
[D] 21:35:13 - [Spell] Rejuvenation (Id found: 774, Name found: Rejuvenation, NameInGame found: Rejuvenation, Know = True, IsSpellUsable = True)
[F] 21:35:13 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:13 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:13 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:13 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:13 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:14 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:15 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:16 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:17 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:18 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:19 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:20 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:21 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:22 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:23 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:24 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:25 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:26 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:27 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:28 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:29 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:30 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:30 - [FightClass] Launch LUA script: -- Focus --
[F] 21:35:30 - [FightClass] Launch LUA script: -- Player --
[F] 21:35:30 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:30 - [FightClass] Launch LUA script: -- Group --
[F] 21:35:30 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:30 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:30 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:30 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:30 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:31 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:32 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:33 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:34 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:34 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:34 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:34 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:34 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:34 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:35 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:36 - [FightClass] Launch LUA script: _castSpell(33763, "player")
[F] 21:35:36 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:36 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:37 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:37 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:37 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:37 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:37 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:37 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:37 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:38 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:39 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:39 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:39 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:39 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:39 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:39 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:39 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:40 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:41 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:42 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:43 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:44 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:44 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:44 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:44 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:44 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:44 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:44 - [FightClass] Launch LUA script: _castSpell(33763, "player")
[F] 21:35:45 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:45 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:45 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:45 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:45 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:45 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:45 - [FightClass] Launch LUA script: _castSpell(33763, "player")
[F] 21:35:46 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:46 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:46 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:46 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:46 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:46 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:46 - [FightClass] Launch LUA script: _castSpell(33763, "player")
[F] 21:35:46 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:47 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:47 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:47 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:47 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:47 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:47 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:47 - [FightClass] Launch LUA script: _castSpell(33763, "player")
[F] 21:35:48 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:48 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:48 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:48 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:48 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:48 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:48 - [FightClass] Launch LUA script: _castSpell(33763, "player")
[F] 21:35:49 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:49 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:50 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:50 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:50 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:50 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:50 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:50 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:50 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:51 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:52 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:53 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:54 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
21:35:55 - [Logging]24 Dec 2018 21H12.log.html copied on your desktop.
[F] 21:35:55 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:55 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:56 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end
[F] 21:35:57 - [FightClass] Launch LUA script: -- Global Settings -- group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() > 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() > 0 then group = "raid" groupmembers = GetNumRaidMembers() end
[F] 21:35:57 - [FightClass] Launch LUA script: -- Functions -- if not FuncLoaded then FuncLoaded = true -- Range Check function rangeCheck(spellid,unit) if IsSpellInRange(GetSpellInfo(spellid),unit) == 1 then return true end end -- Cooldown Check function cdRemains(spellid) if select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) > 0 then return select(2,GetSpellCooldown(GetSpellInfo(spellid))) + (select(1,GetSpellCooldown(GetSpellInfo(spellid))) - GetTime()) else return 0 end end -- Cast Spell function _castSpell(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(spellid,tar) == nil then return false elseif tar ~= nil and rangeCheck(spellid,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Cast Buff function _castBuff(spellid,tar) if UnitCastingInfo("player") == nil and UnitChannelInfo("player") == nil and cdRemains(spellid) == 0 then if tar ~= nil and rangeCheck(26990,tar) == nil then return false elseif tar ~= nil and rangeCheck(26990,tar) == true then CastSpellByName(GetSpellInfo(spellid), tar) return true elseif tar == nil then CastSpellByName(GetSpellInfo(spellid)) return true else return false end end end -- Unit Buff ID function UnitBuffID(unit, spellid) for i=1,40 do local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i); if buffName == GetSpellInfo(spellid) then return true end end end -- IsSpellKnown function IsSpellKnown(spellid) if IsUsableSpell(GetSpellInfo(spellid)) == 1 then return true end end -- Print function print(message) if not message ~= true or not message ~= nil or not message ~= false then DEFAULT_CHAT_FRAME:AddMessage(message) end if message == true then DEFAULT_CHAT_FRAME:AddMessage("|cff228B22true") end if message == false then DEFAULT_CHAT_FRAME:AddMessage("|cffC41F3Bfalse") end if message == nil then DEFAULT_CHAT_FRAME:AddMessage("|cffFF8C00nil") end end -- Functions Loaded end
[F] 21:35:57 - [FightClass] Launch LUA script: -- Keybindings -- SLASH_STATUSFRAME1="/statusframe" SlashCmdList.STATUSFRAME=function() if StatusFrame:IsShown() then StatusFrame:Hide() else StatusFrame:Show() end end SLASH_STOPROTATOGGLE1 = '/rotatoggle' SlashCmdList.STOPROTATOGGLE=function() if RotaOn then RotaOn = false else RotaOn = true end end
[F] 21:35:57 - [FightClass] Launch LUA script: -- Framework -- if not FrameCreated then FrameCreated = true -- Default Variables RotaOn = true -- Is rotation on by default DecurseOn = false -- Is pet enabled by default AbolishPoisonDisabled = true -- Is Abolish Poison disabled by deafult RemoveCurseDisabled = true -- is Remove Cruse disabled by default AutoBuffingDisabled = true -- is Auto Buffing disabled by default InnervateGroupDisabled = true -- is Innervating Group disabled by default InnervateFocusDisabled = true -- is Innervating Focus disabled by default ThornsFocusDisabled = true -- is thorns on Focus disabled by default LifeBloomFocusMode = "MissingHP" -- Default lifebloom focus mode -- Status Frame StatusFrame=CreateFrame("Frame") StatusFrame:ClearAllPoints() StatusFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) StatusFrame:SetBackdropColor(0,0,0,.4) StatusFrame:SetHeight(60) StatusFrame:SetWidth(122) StatusFrame:SetPoint("TOPLEFT",ChatFrame1, 0,90) StatusFrame:SetMovable(true) StatusFrame:EnableMouse(true) StatusFrame:RegisterForDrag('LeftButton') StatusFrame:SetScript('OnDragStart', StatusFrame.StartMoving) StatusFrame:SetScript('OnDragStop', StatusFrame.StopMovingOrSizing) -- Status Frame Text Settings StatusFrame.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrame.text:SetPoint("TOPLEFT", 0, -14) StatusFrame.text:SetJustifyH("LEFT") StatusFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Status Frame Close Button StatusFrame.btn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn:SetWidth(20) StatusFrame.btn:SetHeight(20) StatusFrame.btn:SetPoint("TOPLEFT",StatusFrame, -3,3) StatusFrame.btn:SetScript("OnClick", function() StatusFrame:Hide() SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") DEFAULT_CHAT_FRAME:AddMessage("Status frame |cffC41F3Bclosed |cffFFFFFFWrite /statusframe to enable again.") end) StatusFrame.btn:SetAlpha(1) StatusFrame.btn:Show() -- Status Frame Advanced Button StatusFrame.btn2 = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.btn2:SetWidth(15) StatusFrame.btn2:SetHeight(15) StatusFrame.btn2:SetNormalTexture("Interface/Cursor/Interact") StatusFrame.btn2:SetPushedTexture("Interface/Cursor/UnableInteract") StatusFrame.btn2:SetPoint("TOPRIGHT",StatusFrame, 0,0) StatusFrame.btn2:SetScript("OnClick", function() if SettingsFrame:IsShown() then SettingsFrame:Hide() SettingsFrameHeader.text:Hide() SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame:Show() SettingsFrameHeader.text:Show() end end) StatusFrame.btn2:SetAlpha(1) StatusFrame.btn2:Show() -- Status Frame Header Settings StatusFrameHeader = CreateFrame("Frame") StatusFrameHeader:ClearAllPoints() StatusFrameHeader:SetHeight(14) StatusFrameHeader:SetWidth(122) StatusFrameHeader:SetPoint("TOPLEFT",StatusFrame, 0,0) -- Status Frame Header Text StatusFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") StatusFrameHeader.text:SetPoint("Center",StatusFrameHeader, 0) StatusFrameHeader.text:SetJustifyH("LEFT") StatusFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") StatusFrameHeader.text:SetText("Rotation |cffFFFFFFStatus") -- Settings Frame (Combat Spells) SettingsFrame = CreateFrame("Frame") SettingsFrame:ClearAllPoints() SettingsFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsFrame:SetBackdropColor(0,0,0,.4) SettingsFrame:SetHeight(203) SettingsFrame:SetWidth(200) SettingsFrame:SetPoint("TOPLEFT",StatusFrame, 0,213) SettingsFrame:EnableMouse(true) SettingsFrame:SetMovable(true) SettingsFrame:RegisterForDrag("LeftButton") SettingsFrame:SetScript("OnDragStart", SettingsFrame.StartMoving) SettingsFrame:SetScript("OnDragStop", SettingsFrame.StopMovingOrSizing) SettingsFrame:Hide() -- Settings Frame (Combat Spells) Text Settings SettingsFrame.text = SettingsFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsFrame.text:SetJustifyH("LEFT") SettingsFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Combat Spells) Header Settings SettingsFrameHeader = CreateFrame("Frame") SettingsFrameHeader:ClearAllPoints() SettingsFrameHeader:SetHeight(14) SettingsFrameHeader:SetWidth(200) SettingsFrameHeader:SetPoint("TOPLEFT",SettingsFrame, 0,0) SettingsFrameHeader:Hide() -- Settings Frame (Combat Spells) Header Text SettingsFrameHeader.text = StatusFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsFrameHeader.text:SetPoint("Center",SettingsFrameHeader, 0) SettingsFrameHeader.text:SetJustifyH("LEFT") SettingsFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsFrameHeader.text:SetText("WRobot |cffFFFFFFCombat Spells") SettingsFrameHeader.text:Hide() -- Settings Frame (Combat Spells) Spell Settings Button SettingsFrame.miscbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.miscbtn:SetWidth(16) SettingsFrame.miscbtn:SetHeight(16) SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsFrame.miscbtn:SetPoint("TOPRIGHT",SettingsFrame, 0,0) SettingsFrame.miscbtn:SetScript("OnClick", function() if SettingsMiscFrame:IsShown() then SettingsMiscFrame:Hide() SettingsMiscFrameHeader.text:Hide() SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame:Show() SettingsMiscFrameHeader.text:Show() SettingsFrame.miscbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.miscbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsFrame.miscbtn:SetAlpha(1) -- Settings Frame (Combat Spells) Regrowth Toggle Button SettingsFrame.regrowthbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.regrowthbtn:SetWidth(16) SettingsFrame.regrowthbtn:SetHeight(16) if RegrowthDisabled then SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.regrowthbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-28) SettingsFrame.regrowthbtn:SetScript("OnClick", function() if RegrowthDisabled then RegrowthDisabled = false SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RegrowthDisabled = true SettingsFrame.regrowthbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.regrowthbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.regrowthbtn:SetAlpha(1) SettingsFrame.regrowthbtn:Show() -- Settings Frame (Combat Spells) Rejuvenation Toggle Button SettingsFrame.rejuvenationbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.rejuvenationbtn:SetWidth(16) SettingsFrame.rejuvenationbtn:SetHeight(16) if RejuvenationDisabled then SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.rejuvenationbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-42) SettingsFrame.rejuvenationbtn:SetScript("OnClick", function() if RejuvenationDisabled then RejuvenationDisabled = false SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RejuvenationDisabled = true SettingsFrame.rejuvenationbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.rejuvenationbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.rejuvenationbtn:SetAlpha(1) SettingsFrame.rejuvenationbtn:Show() -- Settings Frame (Combat Spells) Lifebloom Toggle Button SettingsFrame.lifebloombtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.lifebloombtn:SetWidth(16) SettingsFrame.lifebloombtn:SetHeight(16) SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") SettingsFrame.lifebloombtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-56) SettingsFrame.lifebloombtn:SetScript("OnClick", function() if LifebloomDisabled then LifebloomDisabled = false SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifebloomDisabled = true SettingsFrame.lifebloombtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.lifebloombtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.lifebloombtn:SetAlpha(1) SettingsFrame.lifebloombtn:Show() -- Settings Frame (Combat Spells) Swiftmend Toggle Button SettingsFrame.swiftmendbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.swiftmendbtn:SetWidth(16) SettingsFrame.swiftmendbtn:SetHeight(16) if SwiftmendDisabled then SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.swiftmendbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-71) SettingsFrame.swiftmendbtn:SetScript("OnClick", function() if SwiftmendDisabled then SwiftmendDisabled = false SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else SwiftmendDisabled = true SettingsFrame.swiftmendbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.swiftmendbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.swiftmendbtn:SetAlpha(1) SettingsFrame.swiftmendbtn:Show() -- Settings Frame (Combat Spells) Healing Touch Toggle Button SettingsFrame.healingtouchbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.healingtouchbtn:SetWidth(16) SettingsFrame.healingtouchbtn:SetHeight(16) if HealingTouchDisabled then SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.healingtouchbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-86) SettingsFrame.healingtouchbtn:SetScript("OnClick", function() if HealingTouchDisabled then HealingTouchDisabled = false SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealingTouchDisabled = true SettingsFrame.healingtouchbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.healingtouchbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.healingtouchbtn:SetAlpha(1) SettingsFrame.healingtouchbtn:Show() -- Settings Frame (Combat Spells) Tree of Life Toggle Button SettingsFrame.treeoflifebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.treeoflifebtn:SetWidth(16) SettingsFrame.treeoflifebtn:SetHeight(16) if TreeofLifeDisabled then SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.treeoflifebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-115) SettingsFrame.treeoflifebtn:SetScript("OnClick", function() if TreeofLifeDisabled then TreeofLifeDisabled = false SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else TreeofLifeDisabled = true SettingsFrame.treeoflifebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.treeoflifebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.treeoflifebtn:SetAlpha(1) SettingsFrame.treeoflifebtn:Show() -- Settings Frame (Combat Spells) Innervate Toggle Button SettingsFrame.innervatebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.innervatebtn:SetWidth(16) SettingsFrame.innervatebtn:SetHeight(16) if InnervateDisabled then SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.innervatebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-129) SettingsFrame.innervatebtn:SetScript("OnClick", function() if InnervateDisabled then InnervateDisabled = false SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateDisabled = true SettingsFrame.innervatebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.innervatebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.innervatebtn:SetAlpha(1) SettingsFrame.innervatebtn:Show() -- Settings Frame (Combat Spells) Barkskin Toggle Button SettingsFrame.barkskinbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.barkskinbtn:SetWidth(16) SettingsFrame.barkskinbtn:SetHeight(16) if BarkskinDisabled then SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.barkskinbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-143) SettingsFrame.barkskinbtn:SetScript("OnClick", function() if BarkskinDisabled then BarkskinDisabled = false SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BarkskinDisabled = true SettingsFrame.barkskinbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.barkskinbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.barkskinbtn:SetAlpha(1) SettingsFrame.barkskinbtn:Show() -- Settings Frame (Combat Spells) Abolish Poison Toggle Button SettingsFrame.abolishpoisonbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.abolishpoisonbtn:SetWidth(16) SettingsFrame.abolishpoisonbtn:SetHeight(16) if AbolishPoisonDisabled then SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.abolishpoisonbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-157) SettingsFrame.abolishpoisonbtn:SetScript("OnClick", function() if AbolishPoisonDisabled then AbolishPoisonDisabled = false SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonDisabled = true SettingsFrame.abolishpoisonbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.abolishpoisonbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.abolishpoisonbtn:SetAlpha(1) SettingsFrame.abolishpoisonbtn:Show() -- Settings Frame (Combat Spells) Remove Curse Toggle Button SettingsFrame.removecursebtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.removecursebtn:SetWidth(16) SettingsFrame.removecursebtn:SetHeight(16) if RemoveCurseDisabled then SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.removecursebtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-171) SettingsFrame.removecursebtn:SetScript("OnClick", function() if RemoveCurseDisabled then RemoveCurseDisabled = false SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseDisabled = true SettingsFrame.removecursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.removecursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.removecursebtn:SetAlpha(1) SettingsFrame.removecursebtn:Show() -- Settings Frame (Combat Spells) Auto Buffing Toggle Button SettingsFrame.autobuffingbtn = CreateFrame("BUTTON", nil, SettingsFrame, "UIPanelCloseButton") SettingsFrame.autobuffingbtn:SetWidth(16) SettingsFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsFrame.autobuffingbtn:SetPoint("TOPRIGHT",SettingsFrame, -2,-185) SettingsFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AutoBuffingDisabled = true SettingsFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsFrame.autobuffingbtn:SetAlpha(1) SettingsFrame.autobuffingbtn:Show() -- Settings Frame (Spell Settings) SettingsMiscFrame = CreateFrame("Frame") SettingsMiscFrame:ClearAllPoints() SettingsMiscFrame:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrame:SetBackdropColor(0,0,0,.4) SettingsMiscFrame:SetHeight(203) SettingsMiscFrame:SetWidth(200) SettingsMiscFrame:SetPoint("TOPLEFT",SettingsFrame, 205,0) SettingsMiscFrame:EnableMouse(true) SettingsMiscFrame:SetMovable(true) SettingsMiscFrame:RegisterForDrag("LeftButton") SettingsMiscFrame:SetScript("OnDragStart", SettingsMiscFrame.StartMoving) SettingsMiscFrame:SetScript("OnDragStop", SettingsMiscFrame.StopMovingOrSizing) SettingsMiscFrame:Hide() -- Settings Frame (Spell Settings) Text Settings SettingsMiscFrame.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrame.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrame.text:SetJustifyH("LEFT") SettingsMiscFrame.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings) Header Settings SettingsMiscFrameHeader = CreateFrame("Frame") SettingsMiscFrameHeader:ClearAllPoints() SettingsMiscFrameHeader:SetHeight(14) SettingsMiscFrameHeader:SetWidth(200) SettingsMiscFrameHeader:SetPoint("TOPLEFT",SettingsMiscFrame, 0,0) SettingsMiscFrameHeader:Hide() -- Settings Frame (Spell Settings) Header Text SettingsMiscFrameHeader.text = SettingsMiscFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameHeader.text:SetPoint("Center",SettingsMiscFrameHeader, 0) SettingsMiscFrameHeader.text:SetJustifyH("LEFT") SettingsMiscFrameHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameHeader.text:SetText("WRobot |cffFFFFFFSpell Settings") SettingsMiscFrameHeader.text:Hide() -- Settings Frame (Spell Settings) Spell Settings More Button SettingsMiscFrame.morebtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.morebtn:SetWidth(16) SettingsMiscFrame.morebtn:SetHeight(16) SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") SettingsMiscFrame.morebtn:SetPoint("TOPRIGHT",SettingsMiscFrame, 0,0) SettingsMiscFrame.morebtn:SetScript("OnClick", function() if SettingsMiscFrameMore:IsShown() then SettingsMiscFrameMore:Hide() SettingsMiscFrameMoreHeader.text:Hide() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore:Show() SettingsMiscFrameMoreHeader.text:Show() SettingsMiscFrame.morebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.morebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) SettingsMiscFrame.morebtn:SetAlpha(1) -- Settings Frame (Spell Settings) Heal Self Toggle Button SettingsMiscFrame.healselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healselfbtn:SetWidth(16) SettingsMiscFrame.healselfbtn:SetHeight(16) if HealSelfDisabled then SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-28) SettingsMiscFrame.healselfbtn:SetScript("OnClick", function() if HealSelfDisabled then HealSelfDisabled = false SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealSelfDisabled = true SettingsMiscFrame.healselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healselfbtn:SetAlpha(1) SettingsMiscFrame.healselfbtn:Show() -- Settings Frame (Spell Settings) Heal Group Toggle Button SettingsMiscFrame.healgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healgroupbtn:SetWidth(16) SettingsMiscFrame.healgroupbtn:SetHeight(16) if HealGroupDisabled then SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-42) SettingsMiscFrame.healgroupbtn:SetScript("OnClick", function() if HealGroupDisabled then HealGroupDisabled = false SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealGroupDisabled = true SettingsMiscFrame.healgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healgroupbtn:SetAlpha(1) SettingsMiscFrame.healgroupbtn:Show() -- Settings Frame (Spell Settings) Heal Focus Toggle Button SettingsMiscFrame.healfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.healfocusbtn:SetWidth(16) SettingsMiscFrame.healfocusbtn:SetHeight(16) if HealFocusDisabled then SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.healfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-56) SettingsMiscFrame.healfocusbtn:SetScript("OnClick", function() if HealFocusDisabled then HealFocusDisabled = false SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else HealFocusDisabled = true SettingsMiscFrame.healfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.healfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.healfocusbtn:SetAlpha(1) SettingsMiscFrame.healfocusbtn:Show() -- Settings Frame (Spell Settings) Innervate Self Toggle Button SettingsMiscFrame.innervateselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervateselfbtn:SetWidth(16) SettingsMiscFrame.innervateselfbtn:SetHeight(16) if InnervateSelfDisabled then SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervateselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-86) SettingsMiscFrame.innervateselfbtn:SetScript("OnClick", function() if InnervateSelfDisabled then InnervateSelfDisabled = false SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateSelfDisabled = true SettingsMiscFrame.innervateselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervateselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervateselfbtn:SetAlpha(1) SettingsMiscFrame.innervateselfbtn:Show() -- Settings Frame (Spell Settings) Innervate Group Toggle Button SettingsMiscFrame.innervategroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervategroupbtn:SetWidth(16) SettingsMiscFrame.innervategroupbtn:SetHeight(16) if InnervateGroupDisabled then SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervategroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-101) SettingsMiscFrame.innervategroupbtn:SetScript("OnClick", function() if InnervateGroupDisabled then InnervateGroupDisabled = false SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateGroupDisabled = true SettingsMiscFrame.innervategroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervategroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervategroupbtn:SetAlpha(1) SettingsMiscFrame.innervategroupbtn:Show() -- Settings Frame (Spell Settings) Innervate Focus Toggle Button SettingsMiscFrame.innervatefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.innervatefocusbtn:SetWidth(16) SettingsMiscFrame.innervatefocusbtn:SetHeight(16) if InnervateFocusDisabled then SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.innervatefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-115) SettingsMiscFrame.innervatefocusbtn:SetScript("OnClick", function() if InnervateFocusDisabled then InnervateFocusDisabled = false SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else InnervateFocusDisabled = true SettingsMiscFrame.innervatefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.innervatefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.innervatefocusbtn:SetAlpha(1) SettingsMiscFrame.innervatefocusbtn:Show() -- Settings Frame (Spell Settings) Buff Self Toggle Button SettingsMiscFrame.buffselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffselfbtn:SetWidth(16) SettingsMiscFrame.buffselfbtn:SetHeight(16) if BuffSelfDisabled then SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-143) SettingsMiscFrame.buffselfbtn:SetScript("OnClick", function() if BuffSelfDisabled then BuffSelfDisabled = false SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffSelfDisabled = true SettingsMiscFrame.buffselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffselfbtn:SetAlpha(1) SettingsMiscFrame.buffselfbtn:Show() -- Settings Frame (Spell Settings) Buff Group Toggle Button SettingsMiscFrame.buffgroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.buffgroupbtn:SetWidth(16) SettingsMiscFrame.buffgroupbtn:SetHeight(16) if BuffGroupDisabled then SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.buffgroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-157) SettingsMiscFrame.buffgroupbtn:SetScript("OnClick", function() if BuffGroupDisabled then BuffGroupDisabled = false SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffGroupDisabled = true SettingsMiscFrame.buffgroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.buffgroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.buffgroupbtn:SetAlpha(1) SettingsMiscFrame.buffgroupbtn:Show() -- Settings Frame (Spell Settings) Buff Focus Toggle Button SettingsMiscFrame.bufffocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrame, "UIPanelCloseButton") SettingsMiscFrame.bufffocusbtn:SetWidth(16) SettingsMiscFrame.bufffocusbtn:SetHeight(16) if BuffFocusDisabled then SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrame.bufffocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrame, -2,-171) SettingsMiscFrame.bufffocusbtn:SetScript("OnClick", function() if BuffFocusDisabled then BuffFocusDisabled = false SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else BuffFocusDisabled = true SettingsMiscFrame.bufffocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrame.bufffocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrame.bufffocusbtn:SetAlpha(1) SettingsMiscFrame.bufffocusbtn:Show() -- Settings Frame (Spell Settings More) SettingsMiscFrameMore = CreateFrame("Frame") SettingsMiscFrameMore:ClearAllPoints() SettingsMiscFrameMore:SetBackdrop({bgFile = "Interface/Buttons/WHITE8X8",}) SettingsMiscFrameMore:SetBackdropColor(0,0,0,.4) SettingsMiscFrameMore:SetHeight(203) SettingsMiscFrameMore:SetWidth(200) SettingsMiscFrameMore:SetPoint("TOPLEFT",SettingsMiscFrame, 205,0) SettingsMiscFrameMore:EnableMouse(true) SettingsMiscFrameMore:SetMovable(true) SettingsMiscFrameMore:RegisterForDrag("LeftButton") SettingsMiscFrameMore:SetScript("OnDragStart", SettingsMiscFrameMore.StartMoving) SettingsMiscFrameMore:SetScript("OnDragStop", SettingsMiscFrameMore.StopMovingOrSizing) SettingsMiscFrameMore:Hide() -- Settings Frame (Spell Settings More) Text Settings SettingsMiscFrameMore.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMore.text:SetPoint("TOPLEFT", 0, -14) SettingsMiscFrameMore.text:SetJustifyH("LEFT") SettingsMiscFrameMore.text:SetFont("Fonts/ARIALN.TTF",14,"OUTLINE") -- Settings Frame (Spell Settings More) Header Settings SettingsMiscFrameMoreHeader = CreateFrame("Frame") SettingsMiscFrameMoreHeader:ClearAllPoints() SettingsMiscFrameMoreHeader:SetHeight(14) SettingsMiscFrameMoreHeader:SetWidth(200) SettingsMiscFrameMoreHeader:SetPoint("TOPLEFT",SettingsMiscFrameMore, 0,0) SettingsMiscFrameMoreHeader:Hide() -- Settings Frame (Spell Settings More) Header Text SettingsMiscFrameMoreHeader.text = SettingsMiscFrameMore:CreateFontString(nil, "BACKGROUND", "GameFontNormal") SettingsMiscFrameMoreHeader.text:SetPoint("Center",SettingsMiscFrameMoreHeader, 0) SettingsMiscFrameMoreHeader.text:SetJustifyH("LEFT") SettingsMiscFrameMoreHeader.text:SetFont("Fonts/ARIALN.TTF",12,"OUTLINE") SettingsMiscFrameMoreHeader.text:SetText("WRobot |cffFFFFFFMore Spell Settings") SettingsMiscFrameMoreHeader.text:Hide() -- Settings Frame (Spell Settings More) Abolish Poison Self Toggle Button SettingsMiscFrameMore.abolishpoisonselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonselfbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonselfbtn:SetHeight(16) if AbolishPoisonSelfDisabled then SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-28) SettingsMiscFrameMore.abolishpoisonselfbtn:SetScript("OnClick", function() if AbolishPoisonSelfDisabled then AbolishPoisonSelfDisabled = false SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonSelfDisabled = true SettingsMiscFrameMore.abolishpoisonselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonselfbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonselfbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Group Toggle Button SettingsMiscFrameMore.abolishpoisongroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisongroupbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisongroupbtn:SetHeight(16) if AbolishPoisonGroupDisabled then SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisongroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-42) SettingsMiscFrameMore.abolishpoisongroupbtn:SetScript("OnClick", function() if AbolishPoisonGroupDisabled then AbolishPoisonGroupDisabled = false SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonGroupDisabled = true SettingsMiscFrameMore.abolishpoisongroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisongroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisongroupbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisongroupbtn:Show() -- Settings Frame (Spell Settings More) Abolish Poison Focus Toggle Button SettingsMiscFrameMore.abolishpoisonfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetWidth(16) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetHeight(16) if AbolishPoisonFocusDisabled then SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-56) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetScript("OnClick", function() if AbolishPoisonFocusDisabled then AbolishPoisonFocusDisabled = false SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else AbolishPoisonFocusDisabled = true SettingsMiscFrameMore.abolishpoisonfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.abolishpoisonfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.abolishpoisonfocusbtn:SetAlpha(1) SettingsMiscFrameMore.abolishpoisonfocusbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Self Toggle Button SettingsMiscFrameMore.removecurseselfbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecurseselfbtn:SetWidth(16) SettingsMiscFrameMore.removecurseselfbtn:SetHeight(16) if RemoveCurseSelfDisabled then SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecurseselfbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-71) SettingsMiscFrameMore.removecurseselfbtn:SetScript("OnClick", function() if RemoveCurseSelfDisabled then RemoveCurseSelfDisabled = false SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseSelfDisabled = true SettingsMiscFrameMore.removecurseselfbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecurseselfbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecurseselfbtn:SetAlpha(1) SettingsMiscFrameMore.removecurseselfbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Group Toggle Button SettingsMiscFrameMore.removecursegroupbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursegroupbtn:SetWidth(16) SettingsMiscFrameMore.removecursegroupbtn:SetHeight(16) if RemoveCurseGroupDisabled then SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursegroupbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-86) SettingsMiscFrameMore.removecursegroupbtn:SetScript("OnClick", function() if RemoveCurseGroupDisabled then RemoveCurseGroupDisabled = false SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseGroupDisabled = true SettingsMiscFrameMore.removecursegroupbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursegroupbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursegroupbtn:SetAlpha(1) SettingsMiscFrameMore.removecursegroupbtn:Show() -- Settings Frame (Spell Settings More) Remove Curse Focus Toggle Button SettingsMiscFrameMore.removecursefocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.removecursefocusbtn:SetWidth(16) SettingsMiscFrameMore.removecursefocusbtn:SetHeight(16) if RemoveCurseFocusDisabled then SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.removecursefocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-101) SettingsMiscFrameMore.removecursefocusbtn:SetScript("OnClick", function() if RemoveCurseFocusDisabled then RemoveCurseFocusDisabled = false SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else RemoveCurseFocusDisabled = true SettingsMiscFrameMore.removecursefocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.removecursefocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.removecursefocusbtn:SetAlpha(1) SettingsMiscFrameMore.removecursefocusbtn:Show() -- Settings Frame (Spell Settings More) Thorns Focus Toggle Button SettingsMiscFrameMore.thornsfocusbtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.thornsfocusbtn:SetWidth(16) SettingsMiscFrameMore.thornsfocusbtn:SetHeight(16) if ThornsFocusDisabled then SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.thornsfocusbtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-129) SettingsMiscFrameMore.thornsfocusbtn:SetScript("OnClick", function() if ThornsFocusDisabled then ThornsFocusDisabled = false SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else ThornsFocusDisabled = true SettingsMiscFrameMore.thornsfocusbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.thornsfocusbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.thornsfocusbtn:SetAlpha(1) SettingsMiscFrameMore.thornsfocusbtn:Show() -- Settings Frame (Spell Settings More) Lifebloom Focus Mode Toggle Button SettingsMiscFrameMore.lifebloomfocusmodebtn = CreateFrame("BUTTON", nil, SettingsMiscFrameMore, "UIPanelCloseButton") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetWidth(16) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetHeight(16) if LifeBloomFocusMode == "MissingHP" then SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPoint("TOPRIGHT",SettingsMiscFrameMore, -2,-143) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetScript("OnClick", function() if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusMode = "Always" print("It's very mana consuming to have it on Always") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else LifeBloomFocusMode = "MissingHP" SettingsMiscFrameMore.lifebloomfocusmodebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") SettingsMiscFrameMore.lifebloomfocusmodebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end end) SettingsMiscFrameMore.lifebloomfocusmodebtn:SetAlpha(1) SettingsMiscFrameMore.lifebloomfocusmodebtn:Show() -- Status Frame: Rota Toggle Button StatusFrame.rotatogglebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.rotatogglebtn:SetWidth(16) StatusFrame.rotatogglebtn:SetHeight(16) StatusFrame.rotatogglebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-15) StatusFrame.rotatogglebtn:SetScript("OnClick", function() if RotaOn then RotaOn = false else RotaOn = true end end) StatusFrame.rotatogglebtn:SetAlpha(1) StatusFrame.rotatogglebtn:Show() -- Status Frame: Decurse Toggle Button StatusFrame.decursebtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.decursebtn:SetWidth(16) StatusFrame.decursebtn:SetHeight(16) if DecurseOn then StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end StatusFrame.decursebtn:SetPoint("TOPRIGHT",StatusFrame, 0,-29) StatusFrame.decursebtn:SetScript("OnClick", function() if DecurseOn then DecurseOn = false RemoveCurseDisabled = true AbolishPoisonDisabled = true StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else DecurseOn = true RemoveCurseDisabled = false AbolishPoisonDisabled = false StatusFrame.decursebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.decursebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.decursebtn:SetAlpha(1) StatusFrame.decursebtn:Show() -- Status Frame: Auto Buffing Toggle Button StatusFrame.autobuffingbtn = CreateFrame("BUTTON", nil, StatusFrame, "UIPanelCloseButton") StatusFrame.autobuffingbtn:SetWidth(16) StatusFrame.autobuffingbtn:SetHeight(16) if AutoBuffingDisabled then StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end StatusFrame.autobuffingbtn:SetPoint("TOPRIGHT",StatusFrame, 0,-43) StatusFrame.autobuffingbtn:SetScript("OnClick", function() if AutoBuffingDisabled then AutoBuffingDisabled = false StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") else AutoBuffingDisabled = true StatusFrame.autobuffingbtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.autobuffingbtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") end end) StatusFrame.autobuffingbtn:SetAlpha(1) StatusFrame.autobuffingbtn:Show() -- Framework created end
[F] 21:35:57 - [FightClass] Launch LUA script: -- Framework Data -- if RotaOn then RotaStatusText = "|cffFFBE69Rotation |cff228B22Running" else RotaStatusText = "|cffFFBE69Rotation |cffC41F3BPaused" end if DecurseOn then DecurseText = "|cffFFBE69Decursing |cff228B22On" else DecurseText = "|cffFFBE69Decursing |cffC41F3BOff" end if AutoBuffingDisabled then AutoBuffingSText = "|cffFFBE69Auto Buffing |cffC41F3BOff" else AutoBuffingSText = "|cffFFBE69Auto Buffing |cff228B22On" end StatusFrame.text:SetText(RotaStatusText.."\n"..DecurseText.."\n"..AutoBuffingSText) ClassText = "|cffFFFFFFHealing Abilities" MiscText = "|cffFFFFFFMisc Abilities" BuffingText = "|cffFFFFFFBuffing" DispellingText = "|cffFFFFFFDispelling" FocusOnlyText = "|cffFFFFFFFocus Only" if RegrowthDisabled then RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cffC41F3BOff" else RegrowthText = "|TInterface/ICONS/spell_nature_resistnature:15|t|cffFFBE69Regrowth: |cff228B22On" end if RejuvenationDisabled then RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cffC41F3BOff" else RejuvenationText = "|TInterface/ICONS/spell_nature_rejuvenation:15|t|cffFFBE69Rejuvenation: |cff228B22On" end if LifebloomDisabled then LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cffC41F3BOff" else LifebloomText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom: |cff228B22On" end if SwiftmendDisabled then SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cffC41F3BOff" else SwiftmendText = "|TInterface/ICONS/inv_relics_idolofrejuvenation:15|t|cffFFBE69Swiftmend: |cff228B22On" end if HealingTouchDisabled then HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cffC41F3BOff" else HealingTouchText = "|TInterface/ICONS/spell_nature_healingtouch:15|t|cffFFBE69Instant Healing Touch: |cff228B22On" end if TreeofLifeDisabled then TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cffC41F3BOff" else TreeofLifeText = "|TInterface/ICONS/Ability_druid_treeoflife:15|t|cffFFBE69Tree of Life: |cff228B22On" end if InnervateDisabled then InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cffC41F3BOff" else InnervateText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate: |cff228B22On" end if BarkskinDisabled then BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cffC41F3BOff" else BarkskinText = "|TInterface/ICONS/spell_nature_StoneClawTotem:15|t|cffFFBE69Barkskin: |cff228B22On" end if AbolishPoisonDisabled then AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cffC41F3BOff" else AbolishPoisonText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Poison: |cff228B22On" end if RemoveCurseDisabled then RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cffC41F3BOff" else RemoveCurseText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Remove Curse: |cff228B22On" end if AutoBuffingDisabled then AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cffC41F3BOff |cffFFFFFF" else AutoBuffingText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Auto Buffing: |cff228B22On |cffFFFFFF" end SettingsFrame.text:SetText(ClassText.."\n"..RegrowthText.."\n"..RejuvenationText.."\n"..LifebloomText.."\n"..SwiftmendText.."\n"..HealingTouchText.."\n"..MiscText.."\n"..TreeofLifeText.."\n"..InnervateText.."\n"..BarkskinText.."\n"..AbolishPoisonText.."\n"..RemoveCurseText.."\n"..AutoBuffingText) if HealSelfDisabled then HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cffC41F3BOff" else HealSelfText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Yourself: |cff228B22On" end if HealGroupDisabled then HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cffC41F3BOff" else HealGroupText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Group: |cff228B22On" end if HealFocusDisabled then HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cffC41F3BOff" else HealFocusText = "|TInterface/ICONS/Spell_ChargePositive:15|t|cffFFBE69Heal Focus: |cff228B22On" end if InnervateSelfDisabled then InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cffC41F3BOff" else InnervateSelfText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Youself: |cff228B22On" end if InnervateGroupDisabled then InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cffC41F3BOff" else InnervateGroupText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Group: |cff228B22On" end if InnervateFocusDisabled then InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cffC41F3BOff" else InnervateFocusText = "|TInterface/ICONS/spell_nature_lightning:15|t|cffFFBE69Innervate Focus: |cff228B22On" end if BuffSelfDisabled then BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cffC41F3BOff" else BuffSelfText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Yourself: |cff228B22On" end if BuffGroupDisabled then BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cffC41F3BOff" else BuffGroupText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Group: |cff228B22On" end if BuffFocusDisabled then BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cffC41F3BOff" else BuffFocusText = "|TInterface/ICONS/spell_nature_giftofthewild:15|t|cffFFBE69Buff Focus: |cff228B22On" end SettingsMiscFrame.text:SetText(ClassText.."\n"..HealSelfText.."\n"..HealGroupText.."\n"..HealFocusText.."\n"..MiscText.."\n"..InnervateSelfText.."\n"..InnervateGroupText.."\n"..InnervateFocusText.."\n"..BuffingText.."\n"..BuffSelfText.."\n"..BuffGroupText.."\n"..BuffFocusText) if AbolishPoisonSelfDisabled then AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cffC41F3BOff" else AbolishPoisonSelfText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Yourself: |cff228B22On" end if AbolishPoisonGroupDisabled then AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cffC41F3BOff" else AbolishPoisonGroupText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Group: |cff228B22On" end if AbolishPoisonFocusDisabled then AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cffC41F3BOff" else AbolishPoisonFocusText = "|TInterface/ICONS/spell_nature_nullifypoison_02:15|t|cffFFBE69Abolish Focus: |cff228B22On" end if RemoveCurseSelfDisabled then RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cffC41F3BOff" else RemoveCurseSelfText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Self: |cff228B22On" end if RemoveCurseGroupDisabled then RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cffC41F3BOff" else RemoveCurseGroupText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Group: |cff228B22On" end if RemoveCurseFocusDisabled then RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cffC41F3BOff" else RemoveCurseFocusText = "|TInterface/ICONS/spell_holy_removecurse:15|t|cffFFBE69Decurse Focus: |cff228B22On" end if ThornsFocusDisabled then ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cffC41F3BOff" else ThornsFocusText = "|TInterface/ICONS/spell_nature_thorns:15|t|cffFFBE69Thorns: |cff228B22On" end if LifeBloomFocusMode == "MissingHP" then LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Missing HP" else LifeBloomFocusModeText = "|TInterface/ICONS/inv_misc_herb_felblossom:15|t|cffFFBE69Lifebloom Mode: |cff228B22Always" end SettingsMiscFrameMore.text:SetText(DispellingText.."\n"..AbolishPoisonSelfText.."\n"..AbolishPoisonGroupText.."\n"..AbolishPoisonFocusText.."\n"..RemoveCurseSelfText.."\n"..RemoveCurseGroupText.."\n"..RemoveCurseFocusText.."\n"..FocusOnlyText.."\n"..ThornsFocusText.."\n"..LifeBloomFocusModeText) if RotaOn then StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-MinusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-MinusButton-Down") else StatusFrame.rotatogglebtn:SetNormalTexture("Interface/Buttons/UI-PlusButton-Up") StatusFrame.rotatogglebtn:SetPushedTexture("Interface/Buttons/UI-PlusButton-Down") end if RemoveCurseDisabled == false and AbolishPoisonDisabled == false then DecurseOn = true elseif RemoveCurseDisabled == true and AbolishPoisonDisabled == true then DecurseOn = false end
[F] 21:35:57 - [FightClass] Launch LUA script: -- Auto Buffing -- PlayerMP = 100 * UnitMana("player") / UnitManaMax("player") if PlayerMP > 50 then --Mark of the Wild local MotW = 26990 -- Gift of the Wild local GotW = 26991 local GotWMat = WildQuillvines local p1range = 0 local p2range = 0 local p3range = 0 local p4range = 0 if rangeCheck(26990, "party1") then p1range = 1 end if rangeCheck(26990, "party2") then p2range = 1 end if rangeCheck(26990, "party3") then p3range = 1 end if rangeCheck(26990, "party4") then p4range = 1 end local NumInRange = p1range + p2range + p3range + p4range local playerhasGotWbuff = 1 local p1hasGotWbuff = 1 local p2hasGotWbuff = 1 local p3hasGotWbuff = 1 local p4hasGotWbuff = 1 if not UnitBuffID("player", GotW) then playerhasGotWbuff = 0 end if not UnitBuffID("party1", GotW) then p1hasGotWbuff = 0 end if not UnitBuffID("party2", GotW) then p2hasGotWbuff = 0 end if not UnitBuffID("party3", GotW) then p3hasGotWbuff = 0 end if not UnitBuffID("party4", GotW) then p4hasGotWbuff = 0 end local GotWBuffAmount = playerhasGotWbuff + p1hasGotWbuff + p2hasGotWbuff + p3hasGotWbuff + p4hasGotWbuff local WildQuillvine = GetItemCount(22148) local GotWMatAmount = WildQuillvine if group ~= "raid" and not AutoBuffingDisabled and not BuffGroupDisabled then local members = {"player", "party1", "party2", "party3", "party4"} table.foreach(members, function(_, membersTarget) -- Mark/Gift of the Wild if not UnitBuffID(membersTarget, MotW) and not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) elseif groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, MotW) then if groupmembers < 2 or 5 >= GotWMatAmount or NumInRange < 4 or GotWBuffAmount > 3 then _castSpell(MotW, membersTarget) end end if not UnitBuffID(membersTarget, GotW) then if groupmembers >= 2 and GotWMatAmount > 5 and NumInRange == 4 and 3 >= GotWBuffAmount and UnitLevel(membersTarget) >= 40 then _castBuff(GotW, membersTarget) end end end) end if BuffGroupDisabled and not BuffSelfDisabled and not AutoBuffingDisabled then if not UnitBuffID("player", MotW) and not UnitBuffID("player", GotW) then _castSpell(MotW, "player") end end if not BuffFocusDisabled and not AutoBuffingDisabled then if not UnitBuffID("focus", MotW) and not UnitBuffID("focus", GotW) then _castSpell(MotW, "focus") end end end