Go to Page... |
Updated: | 10-09-11 07:53 AM |
Created: | 10-01-11 06:02 PM |
Downloads: | 227 |
Favorites: | 2 |
MD5: |
mod = FooBarModule:new(FooBar.getFoobar(), "MyModule"); mod:setText("My Test Module"); mod:registerEvent("MouseIn", function() print("I was touched in bad places :("); end);
Dependencies = { FooBar = {"required", "before"}, };
if unknownVariable._type ~= nil and unknownVariable._type == "FooBarModule" then ... end if unknownFooBarType:getType() == "FooBarModule" then ... end
CHANGELOG: 1.0 - Initial Release. 1.0.1 - Removed test code. Woops. 1.0.2 - Added example - Changed FooBarModule:new() arguments. It now takes (name[, parent]). 1.1 - Added limited support for LibDataBroker. I say limited because I'm really not sure how to implement it properly. In terms of displaying changes etc.
do myModule = FooBarModule:new("MyModule"); -- If parent is specified for :new(), it will automatically hook on to the default FooBar. myModule:setText("My First Module"); local function myModuleLeftClick() print("Hello, World!"); end myModule:registerEvent("LeftClick", myModuleLeftClick) end
File Name |
Version |
Size |
Author |
Date |
1.0.1 |
4kB |
Neglected |
10-01-11 06:05 PM |
Comment Options |
10-05-11, 08:15 PM | |
|
Modules
Could you make a small module and include with the addon. I would like to see some kind of an example as Im not sure how to hook into this.
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
10-07-11, 08:35 PM | |
|
It would be great if you also hosted this at Curse. And support LibDataBroker-1.0 for Rift
|
|
Myrroddin |
View Public Profile |
Send a private message to Myrroddin |
Find More Posts by Myrroddin |
Add Myrroddin to Your Buddy List |
Neglected |
View Public Profile |
Send a private message to Neglected |
Find More Posts by Neglected |
Add Neglected to Your Buddy List |
10-09-11, 12:39 PM | |
|
Neglected, I second the LibDataBroker option, if you could just make this into a LDB Display Panel this would rock. If you want to look at other LDB Displays check out DockingStation / ChocolateBar on wowinterface.com
|
|
fostot |
View Public Profile |
Send a private message to fostot |
Send email to fostot |
Find More Posts by fostot |
Add fostot to Your Buddy List |
10-09-11, 02:46 PM | |||
|
Quote:
__________________
Quote:
|
||
|
Neglected |
View Public Profile |
Send a private message to Neglected |
Send email to Neglected |
Find More Posts by Neglected |
Add Neglected to Your Buddy List |
10-09-11, 03:05 PM | |
|
When using a changed global ui scale (Settings/Interface/Display) The bar does not go all the way across the screen.
I tried out your example module. renamed it and placed it in my addon folder. It shows up on your foobar but when I click it gives me an error that my window function not found. This isnt a prob with your code, just any suggestions I can do on my end. Was merely trying to run the routine that toggled the display of the window.
Last edited by RagebeastRT : 10-09-11 at 03:34 PM.
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Send email to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
10-10-11, 12:17 PM | ||||
|
Quote:
Quote:
EDIT: I locallized the handler inside the "do" loop. Please remove this - the function went out of scope, causing nil value errors. My fault. :P For future reference btw, could anyone giving an error report submit a stacktrace (nkDebug will do this quite well) - it'll help a lot :3
__________________
Quote:
Last edited by Neglected : 10-10-11 at 12:19 PM.
|
|||
|
Neglected |
View Public Profile |
Send a private message to Neglected |
Send email to Neglected |
Find More Posts by Neglected |
Add Neglected to Your Buddy List |
10-11-11, 03:02 AM | |
Forum posts: 0
File comments: 5
Uploads: 0
|
Curse
Put this on Curse, and you will be Glorified with the Gwyddion faction.
|
|
Gwyddion |
View Public Profile |
Send a private message to Gwyddion |
Send email to Gwyddion |
Find More Posts by Gwyddion |
Add Gwyddion to Your Buddy List |
10-13-11, 11:19 AM | ||
|
When first loading the bar shows about 2/3 across my screen, when I do a /reloadui it goes all the way across.
As to my code not working, it was calling a localized function in my core code. I removed the local and it works fine now. Quote:
|
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Send email to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
10-13-11, 11:51 AM | |
|
New problem
Well, ran into another problem. Everything works great as long as I have foobar turned on but if I toggle it off i get errors in my addon. I looked through the code in your descript but I get errors when trying to use it. I am most likely not placing it were it should be.
Disregard, fixed by placing the code block inside an if block: if FooBarModule ~= nil then ... end
Last edited by RagebeastRT : 10-13-11 at 12:17 PM.
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Send email to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
10-13-11, 12:19 PM | |
|
Toggles
Do you plan on adding a rightclick event to the bar where you can show/hide modules like Titan has?
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Send email to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |