49
edits
(Created page with "-- Create a frame to hold mage portal icons local portalFrame = CreateFrame("Frame", "MagePortalFrame", UIParent) portalFrame:SetSize(200, 300) portalFrame:SetPoint("RIGHT") portalFrame:Hide() -- Hide the frame by default -- Function to create a portal button local button = CreateFrame("Button", ADDON_NAME .. "CraftButton", frame, "UIPanelButtonTemplate") button:SetText("Craft") button:SetSize(100, 25) button:SetPoint("BOTTOM", frame, "BOTTOM", 0, 10) button:SetScript("O...") |
No edit summary |
||
| Line 1: | Line 1: | ||
<lua> | |||
-- Create a frame to hold mage portal icons | -- Create a frame to hold mage portal icons | ||
local portalFrame = CreateFrame("Frame", "MagePortalFrame", UIParent) | local portalFrame = CreateFrame("Frame", "MagePortalFrame", UIParent) | ||
| Line 63: | Line 64: | ||
end | end | ||
end) | end) | ||
</lua> | |||