Skip to content

Instantly share code, notes, and snippets.

@Wetxius
Wetxius / ObjectiveTracker.lua
Created August 17, 2020 09:55
ShestakUI\Modules\Quests\ObjectiveTracker.lua
local T, C, L, _ = unpack(select(2, ...))
if not T.classic then return end
----------------------------------------------------------------------------------------
-- Move QuestWatchFrame (with ModernQuestWatch from Ketho - EU-Boulderfist)
----------------------------------------------------------------------------------------
local ExpandButton = CreateFrame("Button", "QuestWatchFrameExpandButton", UIParent)
local collapsed = false
local ObjectiveTracker = CreateFrame("Frame", "ObjectiveTrackerAnchor", UIParent)
@Wetxius
Wetxius / BuffFrame.lua
Created August 11, 2020 17:38
D:\GitHub\ShestakUI_Classic\ShestakUI\Modules\Auras\BuffFrame.lua
local T, C, L, _ = unpack(select(2, ...))
if C.aura.player_auras ~= true then return end
----------------------------------------------------------------------------------------
-- Style player buff(by Tukz)
----------------------------------------------------------------------------------------
local rowbuffs = 16
local GetFormattedTime = function(s)
if s >= 86400 then
@Wetxius
Wetxius / Functions.lua
Created July 18, 2020 14:33
ShestakUI\Core\Functions.lua
local T, C, L, _ = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- Number value function
----------------------------------------------------------------------------------------
T.Round = function(number, decimals)
if not decimals then decimals = 0 end
return (("%%.%df"):format(decimals)):format(number)
end
@Wetxius
Wetxius / Temp.lua
Created July 10, 2020 15:04
ShestakUI\Core\Temp.lua
local T, C, L, _ = unpack(select(2, ...))
-- if C.automation.summon ~= true then return end
----------------------------------------------------------------------------------------
-- Auto confirm summon
----------------------------------------------------------------------------------------
local AutoSummon = CreateFrame("Frame")
AutoSummon:RegisterEvent("CONFIRM_SUMMON")
AutoSummon:SetScript("OnEvent", function(_, event)
if event == "CONFIRM_SUMMON" then
@Wetxius
Wetxius / Temp.lua
Last active June 17, 2020 16:31
Outfitter skin
local T, C, L, _ = unpack(select(2, ...))
-- if C.skins.outfitter ~= true then return end -- TODO: add gui configuration
----------------------------------------------------------------------------------------
-- Outfitter skin
----------------------------------------------------------------------------------------
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:SetScript("OnEvent", function()
CharacterFrame:HookScript("OnShow", function(self) PaperDollSidebarTabs:SetPoint("BOTTOMRIGHT", CharacterFrameInsetRight, "TOPRIGHT", -14, 0) end)
@Wetxius
Wetxius / Core.lua
Created June 16, 2020 17:02
ShestakUI\Modules\ActionBars\Core.lua
local T, C, L, _ = unpack(select(2, ...))
if C.actionbar.enable ~= true then return end
----------------------------------------------------------------------------------------
-- Hide Blizzard ActionBars stuff(by Tukz)
----------------------------------------------------------------------------------------
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:SetScript("OnEvent", function()
MainMenuBar:SetScale(0.00001)
@Wetxius
Wetxius / MiniMap.lua
Created June 13, 2020 08:56
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 / Core.lua
Created June 2, 2020 15:30
ShestakUI_Config\Core.lua
local T, C, L
local _, ns = ...
----------------------------------------------------------------------------------------
-- GUI for ShestakUI(by Haleth, Solor)
----------------------------------------------------------------------------------------
local realm = GetRealmName()
local name = UnitName("player")
-- [[ Variables ]]
@Wetxius
Wetxius / Core.lua
Created June 2, 2020 15:12
ShestakUI_Config\Core.lua
local T, C, L
local _, ns = ...
----------------------------------------------------------------------------------------
-- GUI for ShestakUI(by Haleth, Solor)
----------------------------------------------------------------------------------------
local realm = GetRealmName()
local name = UnitName("player")
-- [[ Variables ]]
@Wetxius
Wetxius / Numeration.lua
Created May 17, 2020 14:58
ShestakUI\Modules\Skins\Numeration.lua
local T, C, L, _ = unpack(select(2, ...))
if C.skins.numeration ~= true or not IsAddOnLoaded("Numeration") then return end
----------------------------------------------------------------------------------------
-- Numeration skin
----------------------------------------------------------------------------------------
Numeration["windows"].width = 217
Numeration["windows"].maxlines = 7
Numeration["windows"].linegap = 7
NumerationFrame.maxlines = Numeration["windows"].maxlines