Mercurial > wow > devian
comparison Dock.lua @ 66:516ceb31703d
New profile system that stores channel and tag settings for each saved AddOn list.
A boatload of structural revisions, making better use of the built-in table, and hopefully making console command issues easier to pick up.
| author | Nenue |
|---|---|
| date | Sat, 05 Mar 2016 13:35:51 -0500 |
| parents | 0a9a6740ea5d |
| children | 3745540e8996 |
comparison
equal
deleted
inserted
replaced
| 65:4148c90986e7 | 66:516ceb31703d |
|---|---|
| 2 -- @file-author@ | 2 -- @file-author@ |
| 3 -- @project-revision@ @project-hash@ | 3 -- @project-revision@ @project-hash@ |
| 4 -- @file-revision@ @file-hash@ | 4 -- @file-revision@ @file-hash@ |
| 5 -- Created: 12/26/2015 12:32 PM | 5 -- Created: 12/26/2015 12:32 PM |
| 6 -- Docking and arrangement calls | 6 -- Docking and arrangement calls |
| 7 | 7 local _, D = ... |
| 8 local D = LibStub("AceAddon-3.0"):GetAddon("Devian") | |
| 9 local ceil, floor, sqrt, pairs, GetScreenWidth, GetScreenHeight = math.ceil, math.floor, math.sqrt, pairs, GetScreenWidth, GetScreenHeight | 8 local ceil, floor, sqrt, pairs, GetScreenWidth, GetScreenHeight = math.ceil, math.floor, math.sqrt, pairs, GetScreenWidth, GetScreenHeight |
| 10 local UIFrameFadeIn, UIFrameFadeOut = UIFrameFadeIn, UIFrameFadeOut | |
| 11 local db | 9 local db |
| 10 local print = D.print | |
| 12 | 11 |
| 13 --- Spaces each frame evenly across the screen. | 12 --- Spaces each frame evenly across the screen. |
| 14 function D:DistributeFrames() -- | 13 function D:DistributeFrames() -- |
| 15 local max = self.num_channels | 14 local max = self.num_channels |
| 16 local num_side = ceil(sqrt(max)) | 15 local num_side = ceil(sqrt(max)) |
