Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gonzoinc/OutOfMana2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.2
Choose a base ref
...
head repository: gonzoinc/OutOfMana2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 15 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 25, 2022

  1. Update OutOfMana2.toc

    gonzoinc authored Oct 25, 2022
    Copy the full SHA
    69113d4 View commit details
  2. Update main.lua

    Correcting addon load message
    gonzoinc authored Oct 25, 2022
    Copy the full SHA
    8d7ba29 View commit details
  3. Merge pull request #4 from gonzoinc/oom-2

    OOM-2 - Incrementing version
    gonzoinc authored Oct 25, 2022
    Copy the full SHA
    576157c View commit details
  4. Update OutOfMana2.toc

    gonzoinc authored Oct 25, 2022
    Copy the full SHA
    b7982a9 View commit details

Commits on Jan 26, 2023

  1. Update OutOfMana2.toc

    Incrementing version
    gonzoinc authored Jan 26, 2023
    Copy the full SHA
    2dd1158 View commit details
  2. Merge pull request #5 from gonzoinc/oom-3

    Update OutOfMana2.toc
    gonzoinc authored Jan 26, 2023
    Copy the full SHA
    1a421f2 View commit details

Commits on Mar 22, 2023

  1. Update OutOfMana2.toc

    gonzoinc authored Mar 22, 2023
    Copy the full SHA
    1bc324c View commit details
  2. Merge pull request #6 from gonzoinc/oom-4

    Update OutOfMana2.toc
    gonzoinc authored Mar 22, 2023
    Copy the full SHA
    dd260f9 View commit details

Commits on May 3, 2023

  1. OOM-10.1 Adding Addon Compartment Functionality, Registering Icon, In…

    …crementing Interface Version
    gonzoinc committed May 3, 2023
    Copy the full SHA
    fbcc6c5 View commit details
  2. Copy the full SHA
    5294897 View commit details
  3. Merge pull request #7 from gonzoinc/OOM-10.1

    OOM 10.1
    gonzoinc authored May 3, 2023
    Copy the full SHA
    7578774 View commit details

Commits on Jul 25, 2023

  1. Update OutOfMana2.toc

    Updating version
    gonzoinc authored Jul 25, 2023
    Copy the full SHA
    1a66349 View commit details

Commits on Sep 7, 2023

  1. Update OutOfMana2.toc

    Updated version 10.1.7
    gonzoinc authored Sep 7, 2023
    Copy the full SHA
    99fb925 View commit details

Commits on Sep 11, 2024

  1. OOM-11 Workaround for WOW API changes

    gonzoinc committed Sep 11, 2024
    Copy the full SHA
    36c7555 View commit details
  2. Merge pull request #9 from gonzoinc/OOM-11

    OOM-11 Workaround for WOW API changes
    gonzoinc authored Sep 11, 2024
    Copy the full SHA
    80c16a2 View commit details
Showing with 23 additions and 4 deletions.
  1. +3 −2 OutOfMana2.toc
  2. BIN Textures/OOM_Logo.tga
  3. +20 −2 main.lua
5 changes: 3 additions & 2 deletions OutOfMana2.toc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## Interface: 90207
## Version: v1.0.2
## Interface: 110000
## Version: v1.2
## Title: |cFF7FFFD4OutOfMana2|r by: |cFFE6CC80Gonzo Inc
## Notes: |cFFE6CC80Send an alert when reaching a certain mana percentage (/mana on chat to config).
## Author: GonzoInc
## X-Curse-Project_id: 674415
## SavedVariables: OutOfManaDB2
## IconTexture: Interface\AddOns\Disenchanter\Textures\OOM_Logo

main.lua
Binary file added Textures/OOM_Logo.tga
Binary file not shown.
22 changes: 20 additions & 2 deletions main.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
-- Fix for WOW API Changes
local GetAddOnMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or GetAddOnMetadata
local GetNumAddOns = C_AddOns.GetNumAddOns or GetNumAddOns
local IsAddOnLoaded = C_AddOns.IsAddOnLoaded or IsAddOnLoaded;
local IsAddOnLoadOnDemand = C_AddOns.IsAddOnLoadOnDemand or IsAddOnLoadOnDemand;
local GetAddOnInfo = C_AddOns.GetAddOnInfo or GetAddOnInfo
local GetAddOnDependencies = C_AddOns.GetAddOnDependencies or GetAddOnDependencies


-- constants
local playerName = UnitName("player")
local defaultMpThreshold = 50
@@ -12,7 +21,7 @@ local antiSpamThreshold

local version = GetAddOnMetadata("OutOfMana2","Version")
-- Addon loaded message
print("|c0003fc07OOM |r[v|c0003fc07" .. version .. "|r] loaded: /mana")
print("|c0003fc07OOM |r[|c0003fc07" .. version .. "|r] loaded: /mana")

-- Handle Events
local f = CreateFrame("Frame");
@@ -45,6 +54,15 @@ function f:OnEvent(event, arg1, arg2)
end
end

AddonCompartmentFrame:RegisterAddon({
text = "|c0003fc07OutOfMana2|r",
icon = "Interface\\AddOns\\OutOfMana2\\Textures\\OOM_Logo",
notCheckable = true,
func = function()
print("|c0003fc07OutOfMana2|r by: |cFFE6CC80Gonzo Inc", version)
end,
})

f:SetScript("OnEvent", f.OnEvent)

function round(number)
@@ -70,4 +88,4 @@ function SlashCmdList.SAVED(msg)
else
print("Limit: " .. mpThreshold .. "%" .. " (\"/mana number\" to change)")
end
end
end