Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99c16ba7e6 | |||
| 6e805e351d | |||
| e99ca59f27 | |||
| bf3d5bdd65 | |||
| 733c7a026c | |||
| 66cd0cea50 | |||
| 70ba72a3b5 | |||
| c04e16925a | |||
| 66e3ff2782 | |||
| 4215082f4f | |||
| ffbec677b9 | |||
| 819e807803 | |||
| 1c3e1dba7d | |||
| 298424ebdf | |||
| 6926a59e8e | |||
| 8d6c686692 | |||
| 115dc0c7e9 | |||
| 45a287e7cc |
Binary file not shown.
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 16 KiB |
+170
-67
@@ -1,3 +1,5 @@
|
||||
local MM_Initialized = false
|
||||
|
||||
--
|
||||
-- Global variable for storage of settings/options
|
||||
--
|
||||
@@ -16,6 +18,8 @@ function class_OnLoad()
|
||||
end
|
||||
|
||||
function MM_Initialize()
|
||||
if MM_Initialized then return end
|
||||
MM_Initialized = true
|
||||
MM_fac = UnitFactionGroup('player');
|
||||
M_class = UnitClass("player");
|
||||
if (M_class == "Mage") then
|
||||
@@ -56,9 +60,8 @@ end
|
||||
|
||||
--
|
||||
-- Minimap button drag/drop functions
|
||||
--
|
||||
|
||||
-- Thanks to Atlas for the button dragging code
|
||||
--
|
||||
|
||||
function MM_Button_BeingDragged()
|
||||
local xpos,ypos = GetCursorPosition();
|
||||
@@ -99,15 +102,44 @@ function MM_Button_UpdatePosition()
|
||||
end
|
||||
|
||||
--
|
||||
-- ADDED: REQUIRED LEVEL CHECKS
|
||||
-- Required level table (unchanged)
|
||||
--
|
||||
|
||||
function MM_CanCastTeleport()
|
||||
return UnitLevel("player") >= 20;
|
||||
end
|
||||
local MM_SpellLevels = {
|
||||
-- Horde
|
||||
["Teleport: Orgrimmar"] = 20,
|
||||
["Portal: Orgrimmar"] = 40,
|
||||
|
||||
function MM_CanCastPortal()
|
||||
return UnitLevel("player") >= 40;
|
||||
["Teleport: Thunder Bluff"] = 30,
|
||||
["Portal: Thunder Bluff"] = 50,
|
||||
|
||||
["Teleport: Undercity"] = 20,
|
||||
["Portal: Undercity"] = 40,
|
||||
|
||||
["Teleport: Stonard"] = 20,
|
||||
["Portal: Stonard"] = 40,
|
||||
|
||||
-- Alliance
|
||||
["Teleport: Stormwind"] = 20,
|
||||
["Portal: Stormwind"] = 40,
|
||||
|
||||
["Teleport: Ironforge"] = 20,
|
||||
["Portal: Ironforge"] = 40,
|
||||
|
||||
["Teleport: Darnassus"] = 30,
|
||||
["Portal: Darnassus"] = 50,
|
||||
|
||||
["Teleport: Theramore"] = 30,
|
||||
["Portal: Theramore"] = 50,
|
||||
|
||||
["Teleport: Alah'Thalas"] = 20,
|
||||
["Portal: Alah'Thalas"] = 40,
|
||||
}
|
||||
|
||||
function MM_CanCastSpell(spellName)
|
||||
local req = MM_SpellLevels[spellName]
|
||||
if not req then return true end
|
||||
return UnitLevel("player") >= req
|
||||
end
|
||||
|
||||
--
|
||||
@@ -122,10 +154,15 @@ end
|
||||
|
||||
function MM_DropDown_InitButtons()
|
||||
local info = {};
|
||||
info.text = MINIMAGE_LABEL_TITLE;
|
||||
info.text = "|cff00ff00"..MINIMAGE_LABEL_TITLE.."|r";
|
||||
info.isTitle = 1;
|
||||
info.justifyH = "CENTER";
|
||||
info.notCheckable = 1;
|
||||
|
||||
info.tooltipTitle = info.text
|
||||
info.tooltipText = "Click to cast"
|
||||
info.tooltipOnButton = true
|
||||
|
||||
UIDropDownMenu_AddButton(info);
|
||||
|
||||
local fact = UnitFactionGroup('player');
|
||||
@@ -136,24 +173,37 @@ function MM_DropDown_InitButtons()
|
||||
end
|
||||
end
|
||||
|
||||
-----------------------------------------------------
|
||||
-- HORDE
|
||||
-----------------------------------------------------
|
||||
|
||||
function MM_DropDown_ForTheHorde()
|
||||
local appender = ': ';
|
||||
|
||||
-- PORTAL SECTION (hidden if HidePortals is true)
|
||||
-- 🔥 REQUIRED ADDITION: Auto-hide portals if player level < 40
|
||||
if UnitLevel("player") < 40 then
|
||||
MiniMageOptions.HidePortals = true
|
||||
end
|
||||
|
||||
if not MiniMageOptions.HidePortals then
|
||||
local info = { };
|
||||
info.text = MINIMAGE_LABEL_PORTAL;
|
||||
info.isTitle = 1;
|
||||
info.notCheckable = 1;
|
||||
|
||||
info.tooltipTitle = info.text
|
||||
info.tooltipText = "Portal spells"
|
||||
info.tooltipOnButton = true
|
||||
|
||||
UIDropDownMenu_AddButton(info);
|
||||
|
||||
-- ORG PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_ORG;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Orgrimmar");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ORG);
|
||||
if MM_CanCastSpell("Portal: Orgrimmar") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ORG);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -161,10 +211,10 @@ function MM_DropDown_ForTheHorde()
|
||||
-- STONARD PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_STONARD;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Stonard");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_STONARD);
|
||||
if MM_CanCastSpell("Portal: Stonard") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_STONARD);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -172,10 +222,10 @@ function MM_DropDown_ForTheHorde()
|
||||
-- TB PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_TB;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Thunder Bluff");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_TB);
|
||||
if MM_CanCastSpell("Portal: Thunder Bluff") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_TB);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -183,10 +233,10 @@ function MM_DropDown_ForTheHorde()
|
||||
-- UC PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_UC;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Undercity");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_UC);
|
||||
if MM_CanCastSpell("Portal: Undercity") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_UC);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -197,15 +247,16 @@ function MM_DropDown_ForTheHorde()
|
||||
info.text = MINIMAGE_LABEL_TELEPORT;
|
||||
info.isTitle = 1;
|
||||
info.notCheckable = 1;
|
||||
|
||||
UIDropDownMenu_AddButton(info);
|
||||
|
||||
-- ORG TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_ORG;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Orgrimmar");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ORG);
|
||||
if MM_CanCastSpell("Teleport: Orgrimmar") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ORG);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -213,10 +264,10 @@ function MM_DropDown_ForTheHorde()
|
||||
-- STONARD TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_STONARD;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Stonard");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_STONARD);
|
||||
if MM_CanCastSpell("Teleport: Stonard") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_STONARD);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -224,10 +275,10 @@ function MM_DropDown_ForTheHorde()
|
||||
-- TB TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_TB;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Thunder Bluff");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_TB);
|
||||
if MM_CanCastSpell("Teleport: Thunder Bluff") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_TB);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -235,33 +286,42 @@ function MM_DropDown_ForTheHorde()
|
||||
-- UC TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_UC;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Undercity");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_UC);
|
||||
if MM_CanCastSpell("Teleport: Undercity") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_UC);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
end
|
||||
|
||||
-----------------------------------------------------
|
||||
-- ALLIANCE
|
||||
-----------------------------------------------------
|
||||
|
||||
function MM_DropDown_ForTheAlliance()
|
||||
local appender = ': ';
|
||||
|
||||
-- PORTAL SECTION (hidden if HidePortals is true)
|
||||
-- 🔥 REQUIRED ADDITION: Auto-hide portals if player level < 40
|
||||
if UnitLevel("player") < 40 then
|
||||
MiniMageOptions.HidePortals = true
|
||||
end
|
||||
|
||||
if not MiniMageOptions.HidePortals then
|
||||
local info = { };
|
||||
info.text = MINIMAGE_LABEL_PORTAL;
|
||||
info.isTitle = 1;
|
||||
info.notCheckable = 1;
|
||||
|
||||
UIDropDownMenu_AddButton(info);
|
||||
|
||||
-- ALAH PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_ALAH;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Alah'Thalas");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ALAH);
|
||||
if MM_CanCastSpell("Portal: Alah'Thalas") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ALAH);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -269,10 +329,10 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- DARNASSUS PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_DARNASSUS;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Darnassus");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_DARNASSUS);
|
||||
if MM_CanCastSpell("Portal: Darnassus") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_DARNASSUS);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -280,10 +340,10 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- IF PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_IF;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Ironforge");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_IF);
|
||||
if MM_CanCastSpell("Portal: Ironforge") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_IF);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -291,10 +351,10 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- SW PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_SW;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Stormwind");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_SW);
|
||||
if MM_CanCastSpell("Portal: Stormwind") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_SW);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -302,29 +362,30 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- THERAMORE PORTAL
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_THERAMORE;
|
||||
info.disabled = not MM_CanCastPortal();
|
||||
info.disabled = not MM_CanCastSpell("Portal: Theramore");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastPortal() then
|
||||
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_THERAMORE);
|
||||
if MM_CanCastSpell("Portal: Theramore") then
|
||||
MM_TryCast(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_THERAMORE);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
end
|
||||
|
||||
-- TELEPORT SECTION
|
||||
-- TELEPORT TITLE
|
||||
local info = { };
|
||||
info.text = MINIMAGE_LABEL_TELEPORT;
|
||||
info.isTitle = 1;
|
||||
info.notCheckable = 1;
|
||||
|
||||
UIDropDownMenu_AddButton(info);
|
||||
|
||||
-- ALAH TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_ALAH;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Alah'Thalas");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ALAH);
|
||||
if MM_CanCastSpell("Teleport: Alah'Thalas") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ALAH);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -332,10 +393,10 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- DARN TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_DARNASSUS;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Darnassus");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_DARNASSUS);
|
||||
if MM_CanCastSpell("Teleport: Darnassus") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_DARNASSUS);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -343,10 +404,10 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- IF TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_IF;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Ironforge");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_IF);
|
||||
if MM_CanCastSpell("Teleport: Ironforge") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_IF);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -354,10 +415,10 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- SW TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_SW;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Stormwind");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_SW);
|
||||
if MM_CanCastSpell("Teleport: Stormwind") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_SW);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -365,10 +426,10 @@ function MM_DropDown_ForTheAlliance()
|
||||
-- THERAMORE TELEPORT
|
||||
info = { };
|
||||
info.text = MINIMAGE_LABEL_THERAMORE;
|
||||
info.disabled = not MM_CanCastTeleport();
|
||||
info.disabled = not MM_CanCastSpell("Teleport: Theramore");
|
||||
info.func = function(msg)
|
||||
if MM_CanCastTeleport() then
|
||||
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_THERAMORE);
|
||||
if MM_CanCastSpell("Teleport: Theramore") then
|
||||
MM_TryCast(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_THERAMORE);
|
||||
end
|
||||
end;
|
||||
UIDropDownMenu_AddButton(info);
|
||||
@@ -410,10 +471,52 @@ SlashCmdList["MINIMAGE"] = function(msg)
|
||||
DEFAULT_CHAT_FRAME:AddMessage("/mmage help - Show this help")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("/mmage icon - Show/Hide minimap button")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("/mmage reset - Reset addon saved options")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("/mmage portals - Show/Hide portal in dropdown")
|
||||
|
||||
else
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffff0000MiniMage: unknown command.|r")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("Type /mmage help for options.")
|
||||
end
|
||||
end
|
||||
|
||||
-- ===== Cast tracking + learned-check =====
|
||||
|
||||
local MM_LastAttemptedSpell = nil
|
||||
local MM_LastAttemptTime = 0
|
||||
|
||||
function MM_HasSpell(spellName)
|
||||
for i=1, GetNumSpellTabs() do
|
||||
local _, _, offset, numSpells = GetSpellTabInfo(i)
|
||||
for j=1, numSpells do
|
||||
local name = GetSpellName(j + offset, BOOKTYPE_SPELL)
|
||||
if name == spellName then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function MM_TryCast(spellName)
|
||||
if not MM_HasSpell(spellName) then
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffff0000You Have Not Learned " .. spellName .. ".|r")
|
||||
return
|
||||
end
|
||||
MM_LastAttemptedSpell = spellName
|
||||
MM_LastAttemptTime = GetTime()
|
||||
CastSpellByName(spellName)
|
||||
end
|
||||
|
||||
local MM_EventFrame = CreateFrame("Frame")
|
||||
MM_EventFrame:RegisterEvent("UI_ERROR_MESSAGE")
|
||||
|
||||
MM_EventFrame:SetScript("OnEvent", function(self, event, message)
|
||||
local now = GetTime()
|
||||
|
||||
if MM_LastAttemptedSpell and (now - MM_LastAttemptTime) < 1.0 then
|
||||
if message then
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffff0000You Have Not Learned " .. MM_LastAttemptedSpell .. ".|r")
|
||||
end
|
||||
MM_LastAttemptedSpell = nil
|
||||
MM_LastAttemptTime = 0
|
||||
end
|
||||
end)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
## Interface: 11200
|
||||
## Title: MiniMage_TWOW
|
||||
## Version: 1.1
|
||||
## Version: 1.4
|
||||
## Notes: Forked version of MiniMage 1.2b. No original GitHub Repo found, only found in Wow1.12.1_Addons_Collection
|
||||
## SavedVariables: MiniMageOptions
|
||||
localization.lua
|
||||
|
||||
@@ -4,10 +4,10 @@ MiniMage_TWOW is a lightweight World of Warcraft addon designed for Mages, provi
|
||||
|
||||
## Original Addon
|
||||
* I found MiniMage_v1.2b in the Wow1.12.1_Addons_Collection, I cannot find the orginal GitHub or anywhere else this addon is posted.
|
||||
* I do not take credit for creating this addon, only modifying it to include TurtleWoW specific features
|
||||
* I do not take credit for creating this addon, only modifying it to include TurtleWoW specific spells and adding a few features
|
||||
|
||||
|
||||
# Version 1.1
|
||||
# Version 1.4
|
||||
## TurtleWoW Specific Features
|
||||
* Includes Alah'Thalas and Theramore for Alliance characters.
|
||||
* Includes Stonard for Horde characters.
|
||||
@@ -17,8 +17,12 @@ MiniMage_TWOW is a lightweight World of Warcraft addon designed for Mages, provi
|
||||
* **Minimap Button**: Drag and position a minimap button for easy access.
|
||||
* **Dropdown Menu**: Quick-cast portals and teleports, organized by faction.
|
||||
* **Faction Support**: Automatically shows relevant portal and teleport spells for Horde or Alliance Mages.
|
||||
* Teleport Section Greyed out Until Level 20
|
||||
* "Haven't Learned Spell" Message when trying to cast a Teleport/Portal you don't have trained.
|
||||
|
||||
* **Show/Hide Based on Level**:
|
||||
* Portals Section Greyed out Until Level 40
|
||||
* Specific Portals/Teleports Greyed out until required level is reached
|
||||
|
||||
|
||||
|
||||
## Installation
|
||||
@@ -52,4 +56,4 @@ Let me know if you have any issues, I'll fix it if I am able to.
|
||||
|
||||
## Screenshots
|
||||
|
||||
 
|
||||
<img width="800" height="600" alt="ss1" src="https://github.com/user-attachments/assets/e1344159-2bd9-43a1-8edb-9b16e123d022" />
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
|
||||
--the only place MINIMAGE_VERSION should be set
|
||||
MINIMAGE_VERSION = "1.1";
|
||||
MINIMAGE_VERSION = "1.4";
|
||||
|
||||
|
||||
--[[
|
||||
@@ -22,7 +22,7 @@ MINIMAGE_BUTTON_TOOLTIP0 = "MiniMage";
|
||||
MINIMAGE_BUTTON_TOOLTIP1 = "Left-click to open MiniMage Cast Menu.";
|
||||
MINIMAGE_BUTTON_TOOLTIP2 = "Right-click and drag to move this button.";
|
||||
|
||||
MINIMAGE_LABEL_TITLE = "Select Destination";
|
||||
MINIMAGE_LABEL_TITLE = "MiniMage";
|
||||
MINIMAGE_LABEL_PORTAL = "Portal";
|
||||
MINIMAGE_LABEL_TELEPORT = "Teleport";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user