-------------------------------- Addon Template ------------------------------------------
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:SetScript("OnEvent", function(self, event, ...)
if event == "PLAYER_LOGIN" then
-- Add Scripts Below:
end
end)
frame:SetScript("OnUpdate", function(self, elapsed)
-- Add Scripts Below:
end)
-------------------------------- Addon Template ------------------------------------------
-------------------------------- FULL RUDARUI ADDON ------------------------------------------
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:SetScript("OnEvent", function(self, event, ...)
if event == "PLAYER_LOGIN" then
-- Put your :Hide() calls here
TimeManagerClockTicker:Hide()
MinimapZoneText:Hide()
GameTimeFrame:Hide()
MinimapCompassTexture:Hide()
ExpansionLandingPageMinimapButton:Hide()
MinimapBackdrop:Hide()
Minimap:Hide()
MinimapCluster.TrackingFrame.Button:Hide()
MinimapCluster.TrackingFrame.Background:Hide()
MinimapCluster:Hide()
PlayerFrame.PlayerFrameContent.PlayerFrameContentContextual:Hide()
TargetFrame.TargetFrameContent.TargetFrameContentContextual:Hide()
FocusFrame.TargetFrameContent.TargetFrameContentContextual:Hide()
end
end)
frame:SetScript("OnUpdate", function(self, elapsed)
BuffFrame:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", 0, -5)
BuffFrame:SetScale(1.25)
DebuffFrame:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -250, -200)
DebuffFrame:SetScale(1.25)
PlayerLevelText:Hide()
TargetFrame.TargetFrameContent.TargetFrameContentMain.LevelText:Hide()
FocusFrame.TargetFrameContent.TargetFrameContentMain.LevelText:Hide()
TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()
FocusFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor:Hide()
end)
-------------------------------- FULL RUDAR ADDON ------------------------------------------
Негізгі бет How to create a simple WoW UI Addon
No video
Пікірлер: 13