Skip to content

Instantly share code, notes, and snippets.

@Wetxius
Wetxius / ObjectiveTracker.lua
Created November 25, 2020 14:51
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 / MiniMap.lua
Created November 25, 2020 13:19
ShestakUI\Modules\Maps\MiniMap.lua
local T, C, L, _ = unpack(select(2, ...))
if C.minimap.enable ~= true then return end
----------------------------------------------------------------------------------------
-- Minimap border
----------------------------------------------------------------------------------------
local MinimapAnchor = CreateFrame("Frame", "MinimapAnchor", UIParent)
MinimapAnchor:CreatePanel("ClassColor", C.minimap.size, C.minimap.size, unpack(C.position.minimap))
----------------------------------------------------------------------------------------
@Wetxius
Wetxius / TradeSkill.lua
Last active November 25, 2020 14:42
ShestakUI\Modules\Skins\Blizzard\TradeSkill.lua
local T, C, L, _ = unpack(select(2, ...))
if C.skins.blizzard_frames ~= true then return end
----------------------------------------------------------------------------------------
-- TradeSkillUI skin
----------------------------------------------------------------------------------------
local function LoadSkin()
TradeSkillFrame:StripTextures(true)
TradeSkillFrame.RecipeInset:StripTextures()
TradeSkillFrame.DetailsInset:StripTextures()
@Wetxius
Wetxius / CharsCurrency.lua
Created November 25, 2020 09:03
ShestakUI\Modules\Misc\CharsCurrency.lua
local T, C, L, _ = unpack(select(2, ...))
if C.misc.chars_currency ~= true then return end
----------------------------------------------------------------------------------------
-- Tracks your currency tokens across multiple characters(Exonumist by Phanx)
----------------------------------------------------------------------------------------
local realmDB, charDB
local faction = UnitFactionGroup("player")
local playerList = {}
local classColor = {}
@Wetxius
Wetxius / ObjectiveTracker.lua
Last active November 24, 2020 18:27
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 / ExtraBar.lua
Created November 24, 2020 13:49
ShestakUI\Modules\ActionBars\ExtraBar.lua
local T, C, L, _ = unpack(select(2, ...))
if C.actionbar.enable ~= true then return end
------------------------------------------------------------------------------------------
-- Make ExtraActionBarFrame movable (use macro /click ExtraActionButton1)
------------------------------------------------------------------------------------------
local anchor = CreateFrame("Frame", "ExtraButtonAnchor", UIParent)
if C.actionbar.split_bars then
anchor:SetPoint(C.position.extra_button[1], SplitBarLeft, C.position.extra_button[3], C.position.extra_button[4], C.position.extra_button[5])
else
@Wetxius
Wetxius / Errors.lua
Created November 24, 2020 11:19
ShestakUI\Modules\Blizzard\Errors.lua
local T, C, L, _ = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- Clear UIErrorsFrame(module from Kousei by Haste)
----------------------------------------------------------------------------------------
if C.general.error_filter == "WHITELIST" or C.general.error_filter == "BLACKLIST" then
local frame = CreateFrame("Frame")
frame:RegisterEvent("UI_ERROR_MESSAGE")
frame:SetScript("OnEvent", function(_, _, messageType, text)
if C.general.error_filter == "WHITELIST" then
@Wetxius
Wetxius / ExtraBar.lua
Created November 24, 2020 11:05
ShestakUI\Modules\ActionBars\ExtraBar.lua
local T, C, L, _ = unpack(select(2, ...))
if C.actionbar.enable ~= true then return end
------------------------------------------------------------------------------------------
-- Make ExtraActionBarFrame movable (use macro /click ExtraActionButton1)
------------------------------------------------------------------------------------------
local anchor = CreateFrame("Frame", "ExtraButtonAnchor", UIParent)
if C.actionbar.split_bars then
anchor:SetPoint(C.position.extra_button[1], SplitBarLeft, C.position.extra_button[3], C.position.extra_button[4], C.position.extra_button[5])
else
@Wetxius
Wetxius / Movers.lua
Created November 24, 2020 10:55
ShestakUI\Core\Movers.lua
local T, C, L, _ = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- Movement function(by Allez)
----------------------------------------------------------------------------------------
T.MoverFrames = {
VehicleButtonAnchor,
ExtraButtonAnchor,
ZoneButtonAnchor,
ActionBarAnchor,
@Wetxius
Wetxius / ExtraBar.lua
Created November 24, 2020 10:50
ShestakUI\Modules\ActionBars\ExtraBar.lua
local T, C, L, _ = unpack(select(2, ...))
if C.actionbar.enable ~= true then return end
------------------------------------------------------------------------------------------
-- Make ExtraActionBarFrame movable (use macro /click ExtraActionButton1)
------------------------------------------------------------------------------------------
local anchor = CreateFrame("Frame", "ExtraButtonAnchor", UIParent)
if C.actionbar.split_bars then
anchor:SetPoint(C.position.extra_button[1], SplitBarLeft, C.position.extra_button[3], C.position.extra_button[4], C.position.extra_button[5])
else