Skip to content

Instantly share code, notes, and snippets.

@Meorawr
Meorawr / HybridScrollDemo.lua
Last active October 28, 2023 12:17
HybridScrollFrame Demo
local function CreateDemoModel(numItems)
local listModel = {};
for index = 1, numItems do
table.insert(listModel, {
text = string.format("List Item %1$d", index),
icon = string.format([[Interface\Icons\INV_Sword_%1$d]], 30 + (index % 30)),
});
end
@Meorawr
Meorawr / GTT_CreatureInspect.lua
Last active May 12, 2021 21:43
Creature Spawn Inspector
--
-- Creature GUID Inspector
--
function GTT_CreatureInspect(self)
local _, unit = self:GetUnit();
local guid = UnitGUID(unit or "none");
local prefix = string.match(guid, "^([CVP][^l][^-]+)");
if not guid or not prefix then
@Meorawr
Meorawr / RadarChart.lua
Last active January 28, 2021 00:47
Radar Chart Template
local VertexCorner = tInvert({
"TopLeft",
"BottomLeft",
"TopRight",
"BottomRight",
});
local function CreateLinePool(parent, layer, subLayer)
local function CreateLine()
return parent:CreateLine(nil, layer, nil, subLayer);