Go to Page... |
Updated: | 10-09-11 07:53 AM |
Created: | 10-01-11 06:02 PM |
Downloads: | 226 |
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 |
![]() |
|
|
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 |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 5
Uploads: 0
|
![]() 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 |
![]() |
||||
|
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 |
![]() |
|
|
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 |
![]() |
|||
|
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 |
![]() |
|
|
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 |
![]() |
||||
|
Re: Modules
Quote:
Edit: I have now added a sample file inside the ExampleModule.lua file inside the Addon. It is also loaded in the RiftAddon.toc file, so you can see the results. Quote:
__________________
Quote:
Last edited by Neglected : 10-09-11 at 06:47 AM.
|
|||
![]() ![]() |
![]() |
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 |
![]() |
|
|
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 |
Send email to Myrroddin |
Find More Posts by Myrroddin |
Add Myrroddin to Your Buddy List |
![]() |
|
|
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 |
Send email to RagebeastRT |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
![]() |