Skip to content

Instantly share code, notes, and snippets.

@Wetxius
Wetxius / Nameplates.lua
Created November 20, 2020 14:57
ShestakUI\Modules\UnitFrames\Nameplates.lua
local T, C, L, _ = unpack(select(2, ...))
if C.nameplate.enable ~= true then return end
----------------------------------------------------------------------------------------
-- oUF nameplates
----------------------------------------------------------------------------------------
local _, ns = ...
local oUF = ns.oUF
local frame = CreateFrame("Frame")
@Wetxius
Wetxius / ObjectiveTracker.lua
Last active November 15, 2020 16:18
ShestakUI\Modules\Quests\ObjectiveTracker.lua
local T, C, L, _ = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- Move ObjectiveTrackerFrame and hide background
----------------------------------------------------------------------------------------
local frame = CreateFrame("Frame", "ObjectiveTrackerAnchor", UIParent)
frame:SetPoint(unpack(C.position.quest))
frame:SetSize(224, 150)
ObjectiveTrackerFrame:ClearAllPoints()
@Wetxius
Wetxius / Nameplates.lua
Created November 13, 2020 15:34
ShestakUI\Modules\UnitFrames\Nameplates.lua
local T, C, L, _ = unpack(select(2, ...))
if C.nameplate.enable ~= true then return end
----------------------------------------------------------------------------------------
-- oUF nameplates
----------------------------------------------------------------------------------------
local _, ns = ...
local oUF = ns.oUF
local frame = CreateFrame("Frame")
@Wetxius
Wetxius / Nameplates.lua
Last active November 9, 2020 14:21
ShestakUI\Modules\UnitFrames\Nameplates.lua
local T, C, L, _ = unpack(select(2, ...))
if C.nameplate.enable ~= true then return end
----------------------------------------------------------------------------------------
-- oUF nameplates
----------------------------------------------------------------------------------------
local _, ns = ...
local oUF = ns.oUF
local frame = CreateFrame("Frame")
@Wetxius
Wetxius / ObjectiveTracker.lua
Created November 6, 2020 18:07
ShestakUI\Modules\Quests\ObjectiveTracker.lua
local T, C, L, _ = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- Move ObjectiveTrackerFrame
----------------------------------------------------------------------------------------
local frame = CreateFrame("Frame", "ObjectiveTrackerAnchor", UIParent)
frame:SetPoint(unpack(C.position.quest))
frame:SetSize(224, 150)
ObjectiveTrackerFrame:ClearAllPoints()
@Wetxius
Wetxius / Core.lua
Last active November 18, 2020 16:40
Numeration\Core.lua
local addonname, addon = ...
Numeration = addon
local L = addon.locale
local C = addon.core
local boss = LibStub("LibBossIDs")
addon.events = CreateFrame("Frame")
addon.events:SetScript("OnEvent", function(self, event, ...)
addon[event](addon, event, ...)
end)
addon.views = {}
@Wetxius
Wetxius / Mail.lua
Last active November 6, 2020 17:11
ShestakUI\Modules\Skins\Blizzard\Mail.lua
local T, C, L, _ = unpack(select(2, ...))
if C.skins.blizzard_frames ~= true then return end
----------------------------------------------------------------------------------------
-- Mail skin
----------------------------------------------------------------------------------------
local function LoadSkin()
MailFrame:StripTextures()
MailFrame:CreateBackdrop("Transparent")
MailFrame.backdrop:SetPoint("TOPLEFT", 0, 0)
@Wetxius
Wetxius / SelfBuffsReminder.lua
Last active September 2, 2020 12:26
ShestakUI\Modules\Auras\SelfBuffsReminder.lua
local T, C, L, _ = unpack(select(2, ...))
if C.reminder.solo_buffs_enable ~= true then return end
----------------------------------------------------------------------------------------
-- Self buffs on player(by Tukz and Elv22)
----------------------------------------------------------------------------------------
local tab = T.ReminderSelfBuffs[T.class]
if not tab then return end
local function OnEvent(self, event, arg1)
@Wetxius
Wetxius / UIWidget.lua
Last active August 19, 2020 18:14
ShestakUI\Modules\Blizzard\UIWidget.lua
local T, C, L, _ = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- UIWidget position
----------------------------------------------------------------------------------------
local top, below = _G["UIWidgetTopCenterContainerFrame"], _G["UIWidgetBelowMinimapContainerFrame"]
local topAnchor = CreateFrame("Frame", "UIWidgetTopAnchor", UIParent)
topAnchor:SetSize(200, 30)
topAnchor:SetPoint(unpack(C.position.uiwidget_top))
@Wetxius
Wetxius / CopyChat.lua
Created August 17, 2020 15:28
ShestakUI\Modules\Chat\CopyChat.lua
local T, C, L, _ = unpack(select(2, ...))
if C.chat.enable ~= true then return end
----------------------------------------------------------------------------------------
-- Copy Chat
----------------------------------------------------------------------------------------
local frame = nil
local editBox = nil
local font = nil
local isf = nil