Download
(72 Kb)
Download
Updated: 05/22/14 08:29 PM
Pictures
File Info
Compatibility:
Live (1.0)
Updated:05/22/14 08:29 PM
Created:04/04/14 03:08 PM
Monthly downloads:14
Total downloads:3,291
Favorites:3
MD5:
Unicorn
Version: 0.02
by: awesomebilly [More]
This repository will hopefully contain several reusable UI "widgets" that can be used by ESO addon developers. Right now it contains one.

The idea is to make something more useful than the ZO controls, which are too "low level" to work with without cluttering your code and mixing UI code with your logic. IMHO!

Example

Code:
lw = Unicorn.ListView:new(SomeControl, {
    width = 350,
    left = 970,
    top = 40,
})

for i = 1, 4 do
    lw:add_message("|cff0000Hello World")
    lw:add_message("|c00ff00This is line " .. i)
    lw:add_message("|c0000ffLorem ipsum sit amet etc. etc.")
    lw:add_message("")
end
Please check out https://github.com/helgefmi/Unicorn for API documentation or if you're interested in contributring.
V0.02
version 100004
Archived Files (3)
File Name
Version
Size
Uploader
Date
0.02
5kB
helgefmi
04/09/14 12:14 PM
0.01
4kB
helgefmi
04/04/14 03:23 PM
0.01
5kB
04/04/14 03:08 PM


Post A Reply Comment Options
Unread 05/17/14, 08:27 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Your library uses golbal variable "self", it can cause lots of problems. Please change line 207 of List.lua to:
Lua Code:
  1. local self = {

And I was wondering why "/zgoo self" gives me Enchanter.listview...
Report comment to moderator  
Reply With Quote
Unread 04/21/14, 07:32 PM  
awesomebilly
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 230
Uploads: 8
You rock!

Thank you so much! I couldn't figure out for the life of me the scroll view.

I had to alter the lib for my addon (I needed multiple arrays and scroll views).

When I ran Alchemy (Your addon) and my addon together I kept getting nil.

To resolve this I made a few variables local.

(Instance Variable - not local function)
local Self = {}

And changed function _on_resize to
local function _on_resize(

This seems to have resolved the conflict.



Great job, thank you for your hard work!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: