lib-st provides a convenient way to create and display a scrolling table of data.
Supply column info and your table data, and you're off!
To get a handle in lua:
local ScrollingTable = LibStub("ScrollingTable");
To package in your addon, add to your .pkgmeta file:
externals:
Libs/lib-st:
url: svn://svn.wowace.com/wow/lib-st/mainline/trunk
tag: latest
Leave off the tag line if you want the absolute lastest alpha version from the site. (I try to keep a stable copy tagged as latest)
New Features:
Added support for calling SetData with a minimal dataset which can drastically reduce the number of tables that exist within the mod... at a slight cost to customization.
Other recent changes
If no args or colorargs are specified for value and color functions, respectively, instead of no args, these args will be passed:
function (data, cols, realrow, column, sttable)
-- sttable is a reference to the scrolling table
end
Here's some nitty-gritty:
- Set names and widths of columns, lib-st will set the table width on it's own!
- Set the number of rows, and a value to use for row height, lib-st will set the table height on it's own!
- Set background colors for each column.
- Set column text alignment.
- Set column text color.
- Set row text color.
- Set text color on a cell-by-cell basis.
- Supply functions to be evaluated for cell data, and cell/row/column text colors!
- Filter table data via a filter funtion.
- Table sorts are NON-DESTRUCTIVE. Data or the order of data supplied is never changed (unless modified by user supplied functions) for the display of the table. No copies of the data are made either. 1 Table, your data, sort it, index it as it was when it was created, update it as you see fit.
- Hookable ui events. find out more here
- Custom cell formatting with a custom display function
- Enable selection on your scrolling table
Find out how to create a scrolling table using lib-st!
Let me know if you use it!!
-> Screenshots
Known consumers of lib-st
------------------------------------------------------------------------
r137 | ddumont | 2010-01-07 04:44:28 +0000 (Thu, 07 Jan 2010) | 1 line
Changed paths:
A /tags/v3.8 (from /trunk:136)
Tagging as v3.8
------------------------------------------------------------------------
r136 | ddumont | 2010-01-07 02:58:37 +0000 (Thu, 07 Jan 2010) | 1 line
Changed paths:
M /trunk/Core.lua
Allow to hook original DoCellUpdate by attaching it to the table.
------------------------------------------------------------------------
r134 | ddumont | 2009-12-21 23:12:03 +0000 (Mon, 21 Dec 2009) | 1 line
Changed paths:
M /trunk/Core.lua
Testing support for a minimal dataset
------------------------------------------------------------------------
r133 | ddumont | 2009-12-12 00:45:50 +0000 (Sat, 12 Dec 2009) | 1 line
Changed paths:
M /trunk/Core.lua
Testing support for a minimal dataset
------------------------------------------------------------------------
r132 | ddumont | 2009-12-10 12:58:22 +0000 (Thu, 10 Dec 2009) | 1 line
Changed paths:
M /trunk/Core.lua
Testing support for a minimal dataset
------------------------------------------------------------------------
r131 | ddumont | 2009-12-10 12:43:05 +0000 (Thu, 10 Dec 2009) | 1 line
Changed paths:
M /trunk/Core.lua
Testing support for a minimal dataset
------------------------------------------------------------------------
r130 | ddumont | 2009-12-09 02:14:21 +0000 (Wed, 09 Dec 2009) | 1 line
Changed paths:
M /trunk/Core.lua
M /trunk/lib-st.toc
wow version update
------------------------------------------------------------------------
r129 | ddumont | 2009-12-06 20:49:54 +0000 (Sun, 06 Dec 2009) | 1 line
Changed paths:
M /trunk/Core.lua
Testing support for a minimal dataset
------------------------------------------------------------------------
Installation Guide
- Exit "World of Warcraft" completely
- Download the mod you want to install
- Make a folder on your desktop called "My Mods"
- Save the .zip/.rar files to this folder.
- If, when you try to download the file, it automatically "opens" it... you need to RIGHT click on the link and "save as..." or "Save Target As".
- Extract the file - commonly known as 'unzipping'
Do this ONE FILE AT A TIME!
- Windows
- Windows XP has a built in ZIP extractor. Double click on the file to open it, inside should be the file or folders needed. Copy these outside to the "My Mods" folder.
- WinRAR: Right click the file, select "Extract Here"
- WinZip: You MUST make sure the option to "Use Folder Names" is CHECKED or it will just extract the files and not make the proper folders how the Authors designed
- Mac Users
- StuffitExpander: Double click the archive to extract it to a folder in the current directory.
- Verify your WoW Installation Path
That is where you are running WoW from and THAT is where you need to install your mods.
- Move to the Addon folder
- Open your World of Warcraft folder. (default is C:\Program Files\World of Warcraft\)
- Go into the "Interface" folder.
- Go into the "AddOns" folder.
- In a new window, open the "My Mods" folder.
- The "My Mods" folder should have the "Addonname" folder in it.
- Move the "Addonname" folder into the "AddOns" folder
- Start World of Warcraft
- Make sure AddOns are installed
- Log in
- At the Character Select screen, look in lower left corner for the "addons" button.
- If button is there: make sure all the mods you installed are listed and make sure "load out of date addons" is checked.
- If the button is NOT there: means you did not install the addons properly. Look at the above screenshots. Try repeating the steps or getting someone who knows more about computers than you do to help.
Translations
When you download a mod, please be sure that the mod is compatible with your translation of wow. Some mods only work on the US versions, while some only work on some of the various European versions. These variations are called "Localizations".
TOC Numbers (Out of Date Mods)
When Blizzard patches WoW, they change the Interface number. This means that all mods will be "out of date" unless or until the author releases a new version for that interface. Some people go into the .toc files and update the numbers themselves, but this is STRONGLY advised against as it will cause problems locating possible incompatibilities addons. When you log into WoW after a patch, you DO NOT have to delete your interface directory. All you have to do is simply tell WoW to ignore the interface numbers and load all the mods anyway. All you have to do is, while at the "character select" screen, look in the lower left corner and click on the "addons" button. A window will pop up listing all your installed mods.
If you look in the upper left corner of that window there should be a box that says "Load Out of Date AddOns". You want to CHECK this box. Now simply go into WoW normally and all your mods should load. As of the 1.9 patch, you will have to do this after EVERY patch/update that Blizzard posts! If you encounter any problems with a mod after a patch, please be sure to let the author of the mod know so they can fix it.
See also: About "Out Of Date AddOns"
Mac Support
WoW addons are not platformed based. As such, they can be used on either Mac or PC. You can extract both .zip and .rar files on a Mac using StuffitExpander.
Directory Structure
World of Warcraft
|_ Interface
|_AddOns
|_*AddonName*
|_ *AddonName*.toc
|_ *AddonName*.xml
|_ *AddonName*.lua
|_ (possibly others as well)...