Quote:
Code:
Message: Interface\AddOns\DreamTweaks\Core.lua:701: attempt to index global 'self' (a nil value) |
Hmm, you're right, that won't work at all. You'll just need to hook it once like you were doing:
Code:
hooksecurefunc('ActionButton_Update', function(self) |
If there is a way I can tie in all the skinning to one Then maybe I can do it like you say. I don't know. Still learning this stuff.
This is the whole code for the buttons. Code:
function Style(self) |
Ok I moved on from trying to get the micro names to show hide for now since I have been stuck on it for days.
Now I need help with a minor thing just the layout look of the GUI. This is what it looks like now. I would like to move the options down. To have the scale, anchor, and offsets in same row. Can this be done? |
Quote:
Code:
enableHyperlinkTooltip = { Hope this helps. |
As well, you can use a "separator":
Code:
sep1 = { |
A description is full width by default, and will add a slight bit of empty space between his checkbox and the line below. What he should really do is give the checkbox element a width of full.
http://www.wowace.com/addons/ace3/pa...mon-parameters |
Quote:
|
I'm haveing some problems with the color picker. It works good for the Tooltip but not so god on the frame for the Mini Map.
Here's what I have. Code:
Color = { Code:
MM = { Code:
local f = CreateFrame("Frame", "MM", Minimap) |
You need to explicitly update the frame after a new color value is picked. I.E. make sure you're adjusting the frame in the "Set" handler.
|
Quote:
Code:
function Map() |
Another question here.
Before I started making my in-game GUI with Ace3 I had my addon split in 3 files one was my work on the actionbars the other was all the frames I made for my addon then the last was for the minimap, tolltip, watchframe, and chat. Then I had a config file for all 3 files. It would pull frome the other files with the comand local _, DreamTweaks = ... local cfg = DreamTweaks.Config My question is with ace3 how can you do that same thing? The only way I have seen and have gotten help in making the GUI was to put all of my code in one core file and have one config file with the ACE3 options. |
No one know how I can do this? :(
|
not sure if I understand you right but you can share data between different files this way:
Code:
local addonName, addonTable = ... So you can split your addon in as many files as you want. |
This is a life saver if you want to make some sense out of your addons.
EG. say you do the same thing in all your addons. Simply put it in a separate file and hey presto all your addons can use the same functionality without you copying and pasting chunks of code. You can even go one further and have a special folder for common files that are shared between your addons and you wouldn't even have to copy and paste the file into your individual addon folders. Since this feature came out each next update to my addons incorporated this functionality where it was possible as a quick change. I think i still have a large addon that I haven't done this with yet. Quote:
|
Modules are a little bit of work, a little too much for me to go in-depth on (too little time these days). Best bet is to find an addon that already uses modules (Postal, Mapster, etc), but since you're not too familiar with Ace/Lua yet it may take some time to understand the system, especially since most samples will contain a lot of extra stuff. Took me a few days of heavy tinkering to get my first modules to work :)
Before you start on modules, I'd recommend taking a look at this Ace3 addon guide. It'll provide a nice overview of the basic Ace functionality so you can better grasp how the system operates. For modules, basically you can create a new .lua file for your module, maybe store it under a Modules folder, and reference this in your .toc. In this new module file, you can get your Ace Addon object, as well as create your new module object, like so: Code:
local MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") |
Quote:
How do I get it called in the config file? This is the error I get. Code:
Message: Interface\AddOns\DreamTweaks\Config.lua:46: attempt to call global 'ActionBars' (a nil value) |
I have also posted this question on WowAce.
http://forums.wowace.com/showthread....659#post318659 |
Ok I have been working so hard this last few weeks but still having some problems, I don't understand the Action Bar module works fine no error, well no error till i do a change profile or reset default. But the strangest error is this one.
Code:
Message: Interface\AddOns\DreamTweaks\modules\Minimap.lua:1 25: attempt to index field 'db' (a nil value) http://www.wowace.com/paste/3979/ as you see I do have the code close to the same and it has the db = self.db.profile were it should be. So why am i getting this error. I'm very confused. |
All times are GMT -6. The time now is 03:28 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI