13 Commits

Author SHA1 Message Date
totalllyswede ad2b1a0091 Update README.md 2025-11-23 00:03:04 -08:00
totalllyswede ee70573392 Update README.md 2025-11-23 00:02:29 -08:00
totalllyswede 54bd7a319f Add files via upload 2025-11-23 00:01:38 -08:00
totalllyswede 9a3ad6f6c5 Update README.md 2025-11-22 23:59:42 -08:00
totalllyswede a8d4b2bf01 Update README.md 2025-11-22 07:48:34 -08:00
totalllyswede b3aa6b3a2c Update README.md 2025-11-22 07:48:17 -08:00
totalllyswede 89aa56d5a0 Update README.md 2025-11-22 07:32:21 -08:00
totalllyswede 69de94628f Update README.md 2025-11-22 07:31:48 -08:00
totalllyswede de0977dbda Update README.md 2025-11-22 07:31:25 -08:00
totalllyswede ed7a9c95dd Update README.md 2025-11-22 07:30:21 -08:00
totalllyswede a94f4c920f Update README.md 2025-11-22 07:30:02 -08:00
totalllyswede f7f4563519 Add files via upload 2025-11-22 07:27:04 -08:00
totalllyswede 91dab47f20 Update README.md 2025-11-21 06:07:21 -08:00
5 changed files with 341 additions and 159 deletions
+195 -20
View File
@@ -34,6 +34,9 @@ function MM_Button_Initialize()
if (MiniMageOptions.MMButtonPosition == nil) then if (MiniMageOptions.MMButtonPosition == nil) then
MiniMageOptions.MMButtonPosition = 0; MiniMageOptions.MMButtonPosition = 0;
end end
if (MiniMageOptions.HidePortals == nil) then
MiniMageOptions.HidePortals = false;
end
end end
end end
@@ -95,6 +98,18 @@ function MM_Button_UpdatePosition()
); );
end end
--
-- ADDED: REQUIRED LEVEL CHECKS
--
function MM_CanCastTeleport()
return UnitLevel("player") >= 20;
end
function MM_CanCastPortal()
return UnitLevel("player") >= 40;
end
-- --
-- Drop down menu functions -- Drop down menu functions
-- --
@@ -124,121 +139,281 @@ end
function MM_DropDown_ForTheHorde() function MM_DropDown_ForTheHorde()
local appender = ': '; local appender = ': ';
-- PORTAL SECTION (hidden if HidePortals is true)
if not MiniMageOptions.HidePortals then
local info = { }; local info = { };
info.text = MINIMAGE_LABEL_PORTAL; info.text = MINIMAGE_LABEL_PORTAL;
info.isTitle = 1; info.isTitle = 1;
info.notCheckable = 1; info.notCheckable = 1;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- ORG PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_ORG; info.text = MINIMAGE_LABEL_ORG;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ORG); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ORG);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- STONARD PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_STONARD; info.text = MINIMAGE_LABEL_STONARD;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_STONARD); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_STONARD);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- TB PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_TB; info.text = MINIMAGE_LABEL_TB;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_TB); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_TB);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- UC PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_UC; info.text = MINIMAGE_LABEL_UC;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_UC); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_UC);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
end
info = { }; -- TELEPORT SECTION
local info = { };
info.text = MINIMAGE_LABEL_TELEPORT; info.text = MINIMAGE_LABEL_TELEPORT;
info.isTitle = 1; info.isTitle = 1;
info.notCheckable = 1; info.notCheckable = 1;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- ORG TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_ORG; info.text = MINIMAGE_LABEL_ORG;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ORG); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ORG);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- STONARD TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_STONARD; info.text = MINIMAGE_LABEL_STONARD;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_STONARD); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_STONARD);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- TB TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_TB; info.text = MINIMAGE_LABEL_TB;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_TB); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_TB);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- UC TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_UC; info.text = MINIMAGE_LABEL_UC;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_UC); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_UC);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
end end
function MM_DropDown_ForTheAlliance() function MM_DropDown_ForTheAlliance()
local appender = ': '; local appender = ': ';
-- PORTAL SECTION (hidden if HidePortals is true)
if not MiniMageOptions.HidePortals then
local info = { }; local info = { };
info.text = MINIMAGE_LABEL_PORTAL; info.text = MINIMAGE_LABEL_PORTAL;
info.isTitle = 1; info.isTitle = 1;
info.notCheckable = 1; info.notCheckable = 1;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- ALAH PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_ALAH; info.text = MINIMAGE_LABEL_ALAH;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ALAH); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_ALAH);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- DARNASSUS PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_DARNASSUS; info.text = MINIMAGE_LABEL_DARNASSUS;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_DARNASSUS); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_DARNASSUS);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- IF PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_IF; info.text = MINIMAGE_LABEL_IF;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_IF); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_IF);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- SW PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_SW; info.text = MINIMAGE_LABEL_SW;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_SW); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_SW);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- THERAMORE PORTAL
info = { }; info = { };
info.text = MINIMAGE_LABEL_THERAMORE; info.text = MINIMAGE_LABEL_THERAMORE;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_THERAMORE); end; info.disabled = not MM_CanCastPortal();
info.func = function(msg)
if MM_CanCastPortal() then
CastSpellByName(MINIMAGE_LABEL_PORTAL..appender..MINIMAGE_LABEL_THERAMORE);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
end
info = { }; -- TELEPORT SECTION
local info = { };
info.text = MINIMAGE_LABEL_TELEPORT; info.text = MINIMAGE_LABEL_TELEPORT;
info.isTitle = 1; info.isTitle = 1;
info.notCheckable = 1; info.notCheckable = 1;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- ALAH TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_ALAH; info.text = MINIMAGE_LABEL_ALAH;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ALAH); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_ALAH);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- DARN TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_DARNASSUS; info.text = MINIMAGE_LABEL_DARNASSUS;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_DARNASSUS); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_DARNASSUS);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- IF TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_IF; info.text = MINIMAGE_LABEL_IF;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_IF); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_IF);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- SW TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_SW; info.text = MINIMAGE_LABEL_SW;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_SW); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_SW);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
-- THERAMORE TELEPORT
info = { }; info = { };
info.text = MINIMAGE_LABEL_THERAMORE; info.text = MINIMAGE_LABEL_THERAMORE;
info.func = function(msg) CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_THERAMORE); end; info.disabled = not MM_CanCastTeleport();
info.func = function(msg)
if MM_CanCastTeleport() then
CastSpellByName(MINIMAGE_LABEL_TELEPORT..appender..MINIMAGE_LABEL_THERAMORE);
end
end;
UIDropDownMenu_AddButton(info); UIDropDownMenu_AddButton(info);
end end
--
-- Slash Commands
--
SLASH_MINIMAGE1 = "/mmage"
SlashCmdList["MINIMAGE"] = function(msg)
msg = string.lower(msg or "")
if msg == "reset" then
MiniMageOptions = {}
DEFAULT_CHAT_FRAME:AddMessage("|cffffff00MiniMage: options reset.|r")
elseif msg == "icon" then
if MM_ButtonFrame:IsShown() then
MM_ButtonFrame:Hide()
DEFAULT_CHAT_FRAME:AddMessage("|cffffff00MiniMage: minimap button hidden.|r")
else
MM_ButtonFrame:Show()
DEFAULT_CHAT_FRAME:AddMessage("|cffffff00MiniMage: minimap button shown.|r")
end
elseif msg == "portals" then
MiniMageOptions.HidePortals = not MiniMageOptions.HidePortals
if MiniMageOptions.HidePortals then
DEFAULT_CHAT_FRAME:AddMessage("|cffffff00MiniMage: Portal hidden.|r")
else
DEFAULT_CHAT_FRAME:AddMessage("|cffffff00MiniMage: Portal shown.|r")
end
elseif msg == "help" or msg == "" then
DEFAULT_CHAT_FRAME:AddMessage("|cffffff00MiniMage commands:|r")
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
+3 -2
View File
@@ -1,7 +1,8 @@
## Interface: 11200 ## Interface: 11200
## Title: MiniMage_TWOW ## Title: MiniMage_TWOW
## Version: 1.0 ## Version: 1.1
## Notes: Forked version of MiniMage 1.2b. No original GitHub Repo found, only found in Wow1.12.1_Addons_Collection ## Notes: Forked version of MiniMage 1.2b. No original GitHub Repo found, only found in Wow1.12.1_Addons_Collection
## SavedVariables: MiniMageOptions ## SavedVariables: MiniMageOptions
MiniMage_TWOW.xml
localization.lua localization.lua
MiniMage_TWOW.lua
MiniMage_TWOW.xml
+1 -1
View File
@@ -1,6 +1,6 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="MiniMage_TWOW.lua"/>
<Script file="localization.lua"/> <Script file="localization.lua"/>
<Script file="MiniMage_TWOW.lua"/>
<!-- Empty core frame used for initialization and such --> <!-- Empty core frame used for initialization and such -->
+11 -5
View File
@@ -7,7 +7,7 @@ MiniMage_TWOW is a lightweight World of Warcraft addon designed for Mages, provi
* 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 features
# Version 1.1
## TurtleWoW Specific Features ## TurtleWoW Specific Features
* Includes Alah'Thalas and Theramore for Alliance characters. * Includes Alah'Thalas and Theramore for Alliance characters.
* Includes Stonard for Horde characters. * Includes Stonard for Horde characters.
@@ -17,6 +17,8 @@ MiniMage_TWOW is a lightweight World of Warcraft addon designed for Mages, provi
* **Minimap Button**: Drag and position a minimap button for easy access. * **Minimap Button**: Drag and position a minimap button for easy access.
* **Dropdown Menu**: Quick-cast portals and teleports, organized by faction. * **Dropdown Menu**: Quick-cast portals and teleports, organized by faction.
* **Faction Support**: Automatically shows relevant portal and teleport spells for Horde or Alliance Mages. * **Faction Support**: Automatically shows relevant portal and teleport spells for Horde or Alliance Mages.
* Teleport Section Greyed out Until Level 20
* Portals Section Greyed out Until Level 40
## Installation ## Installation
@@ -31,13 +33,18 @@ The launcher will automatically download and install the addon and keep it updat
### Manual Install ### Manual Install
1. Download the repository into your `Interface/AddOns/` folder. 1. Download the repository into your `Interface/AddOns/` folder.
2. Ensure the folder structure is `MiniMage_TWOW/MiniMage.lua`. 2. Ensure the folder structure is `MiniMage_TWOW/MiniMage_TWOW.lua`.
3. Reload the UI or restart WoW. 3. Reload the UI or restart WoW.
## Usage ## Usage & Options
* Click the minimap button to open the dropdown menu. * Click the minimap button to open the dropdown menu.
* Select the desired portal or teleport. * Select the desired portal or teleport.
### /mmage Commands
* /mmage help - Show Commands
* /mmage icon - Show/Hide Minimap Icon
* /mmage portals - Show/Hide Portals from Menu
* /mmage reset - Reset Addon Settings
## Contributing ## Contributing
@@ -45,5 +52,4 @@ Let me know if you have any issues, I'll fix it if I am able to.
## Screenshots ## Screenshots
![MiniMage_TWOWa](https://github.com/user-attachments/assets/ed95ae31-580e-49ae-b469-eca9d63a2328) ![MiniMage_TWOW (1)](https://github.com/user-attachments/assets/cd92f8b3-b473-4029-a41d-e33144aab79e) ![MiniMage_TWOW (2)](https://github.com/user-attachments/assets/66263d98-0e99-4517-afa2-ff7f7c18c654)
+1 -1
View File
@@ -1,6 +1,6 @@
--the only place MINIMAGE_VERSION should be set --the only place MINIMAGE_VERSION should be set
MINIMAGE_VERSION = "1.0"; MINIMAGE_VERSION = "1.1";
--[[ --[[