This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------ | |
-- DevToolsFrameStack.lua | |
-- | |
-- Frame stacking monitor | |
-- | |
-- Globals: DevTools, SLASH_DEVTOOLS_FRAMESTACK1 | |
-- Globals: BINDING_HEADER_DEVTOOLS | |
-- Globals: BINDING_NAME_DEVTOOLS_FRAMESTACK_* | |
--------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------------------- | |
-- LUA Big Number Library | |
-- Made for Lua 5.1 by Jared Allard <jaredallard@outlook.com> | |
-- Heavly optimised for the LUA implementation in World of Warcraft, minimizing | |
-- table creation/seeks and the use of external variables. | |
-- Numbers are stored as tables containing words of [radix length] decimal digits. | |
-- [0] being the most significant, [n-1] being the least: 1234567890 = {[0]=123,4567890}. | |
-- ["n"] stores the length of the number, words in indexes >= n may contain zeros, all | |
-- words are stored as primitive type number. | |
-- ["neg"] indicates if the value is negative, true for negative false for positive, this |