Showing results 1 to 25 of 29
Search took 0.00 seconds.
Search: Posts Made By: Dio
Forum: General Authoring Discussion 04/15/14, 11:09 AM
Replies: 4
Views: 5,860
Posted By Dio
Lucky guess. I called it with two parameters,...

Lucky guess. I called it with two parameters, name and callback, and then it gave some error about invalid argument and the 2nd argument "interval" needing to be an integer. I deduced that the...
Forum: General Authoring Discussion 04/14/14, 10:22 PM
Replies: 4
Views: 5,860
Posted By Dio
Wow, nice find. It allows you to bind an update...

Wow, nice find. It allows you to bind an update handler to your addon, 2nd argument is how often to poll in milliseconds.

e.g.


EVENT_MANAGER:RegisterForUpdate(self.name, 2000,...
Forum: General Authoring Discussion 04/14/14, 12:07 PM
Replies: 9
Views: 12,065
Posted By Dio
Thanks, I'll try this when I get home. If I can...

Thanks, I'll try this when I get home. If I can extract all the information I may create a new Wiki page that has 2-3 levels deep of globals. I don't want to amend the current one because it is...
Forum: Lua/XML Help 04/14/14, 12:02 PM
Replies: 3
Views: 4,600
Posted By Dio
Alternatively, you can hook onto the "OnShow" and...

Alternatively, you can hook onto the "OnShow" and "OnHide" handler of a frame.

For example, this will call whenever you open up a character screen (bags, skills, journal,...
Forum: General Authoring Discussion 04/14/14, 11:46 AM
Replies: 9
Views: 12,065
Posted By Dio
If you're an addon developer, get zgoo...

If you're an addon developer, get zgoo (http://www.esoui.com/downloads/fileinfo.php?id=24). It's essential. Helper functions are under "zo_Helper" when you run /zgoo

Additionally, that globals wiki...
Forum: General Authoring Discussion 04/13/14, 01:03 PM
Replies: 2
Views: 2,983
Posted By Dio
Deleting or returning mail - doesn't work?

It doesn't look like the API functions ReturnMail or DeleteMail (with or without the 2nd argument) do anything, is this intended to prevent addons from removing mail?

e.g....
Forum: General Authoring Discussion 04/10/14, 05:07 PM
Replies: 19
Views: 14,501
Posted By Dio
The saved variables file is wrote from memory...

The saved variables file is wrote from memory once you reload the UI, or quit the client normally. It's probably done this way for performance and anti-exploit reasons.
Forum: General Authoring Discussion 04/10/14, 12:04 PM
Replies: 2
Views: 4,132
Posted By Dio
Thanks, I will try that. And since I posted this...

Thanks, I will try that.

And since I posted this question, I've sort of come to understand the three aforementioned methods. DrawLayer seems to have most precedence, then DrawTier, and DrawLevel...
Forum: General Authoring Discussion 04/10/14, 12:01 PM
Replies: 4
Views: 3,484
Posted By Dio
I don't believe WoW has drawing either. It would...

I don't believe WoW has drawing either. It would be cool if the API had something like HTML's SVG implementation, but alas.

I'm pretty sure IceHud is just using arc textures, and using...
Forum: General Authoring Discussion 04/08/14, 03:47 PM
Replies: 19
Views: 14,501
Posted By Dio
I just ran into one problem. ZO_CreateStringId...

I just ran into one problem.

ZO_CreateStringId must be called before EVENT_PLAYER_ACTIVATED fires. So if you use custom keybindings, you'll still need to register EVENT_ADD_ON_LOADED and do your...
Forum: General Authoring Discussion 04/08/14, 03:25 PM
Replies: 19
Views: 14,501
Posted By Dio
I suppose a real fail-safe way of doing it, if...

I suppose a real fail-safe way of doing it, if it's ever possible for the EVENT_ADD_ON_LOADED to happen *after* EVENT_PLAYER_ACTIVATED, is something like...
Forum: General Authoring Discussion 04/08/14, 03:03 PM
Replies: 19
Views: 14,501
Posted By Dio
I'm going to start doing this too for my addons....

I'm going to start doing this too for my addons. Currently in my addon "Clarity" I must use zo_callLater() after EVENT_ADD_ON_LOADED calls for *all addons* because some addon TLWs still have not been...
Forum: Lua/XML Help 04/07/14, 03:36 PM
Replies: 12
Views: 8,160
Posted By Dio
Regarding character menus, an easy way to run a...

Regarding character menus, an easy way to run a function when a menu opens or closes is to bind to the handler of the menu categories (the top icons bar when you open a...
Forum: General Authoring Discussion 04/07/14, 12:15 PM
Replies: 56
Views: 46,786
Posted By Dio
Either way works. XML certainly makes it easier...

Either way works. XML certainly makes it easier to see the hierarchy of your GUI. As a web developer I've just been conditioned against XML, having begrudgingly worked with it in years past, and it's...
Forum: General Authoring Discussion 04/05/14, 11:25 PM
Replies: 1
Views: 2,746
Posted By Dio
Get player's account name if not in a guild?

If a player is in a guild it's easy enough to get the account name using GetGuildMemberInfo(), but I have not found a way to get the account name if the player has no guilds. :(

Very peculiar..
Forum: General Authoring Discussion 04/05/14, 10:03 PM
Replies: 2
Views: 4,132
Posted By Dio
Difference from DrawLayer, DrawTier and DrawLevel?

It seems most addons use DrawLayer.

One problem I'm having is I set a TopLevelWindow (with child controls label and texture) to DrawLayer(0) but it still shows above some elements, such as the item...
Forum: General Authoring Discussion 04/05/14, 09:59 PM
Replies: 4
Views: 4,220
Posted By Dio
Problem is I'm too much of a noob with this API,...

Problem is I'm too much of a noob with this API, I would probably write inaccurate information about most of the stuff, which would be worse than having no descriptions at all.
Forum: General Authoring Discussion 04/04/14, 06:58 PM
Replies: 4
Views: 4,220
Posted By Dio
Thanks! But uh, what reason would there ever be...

Thanks!

But uh, what reason would there ever be to have it false? Edit - Actually, dumb question, now I see the usefulness.
Forum: General Authoring Discussion 04/04/14, 06:56 PM
Replies: 4
Views: 4,220
Posted By Dio
Difference between SetClampedToScreen and SetMovable?

Noob question. I know what SetMovable does, but haven't figured out what SetClampedToScreen does. Unfortunately the wiki still lacks any descriptions on just about everything. =(
Forum: General Authoring Discussion 04/04/14, 06:53 PM
Replies: 9
Views: 8,006
Posted By Dio
Although I think this breaks my Clarity add-on,...

Although I think this breaks my Clarity add-on, preventing users from having the choice to only show specified addons with a keybind if they don't want to see them all the time. :(
Forum: General Authoring Discussion 04/04/14, 06:47 PM
Replies: 3
Views: 5,721
Posted By Dio
I think you just have to make your own postHook....

I think you just have to make your own postHook. Only tested this in the Lua emulator..


foo = function()
print("Foo")
end

local bar = function()
print("Bar")
end
Forum: General Authoring Discussion 04/03/14, 09:39 AM
Replies: 0
Views: 2,885
Posted By Dio
Do hex colors work in chat or label control SetText()?

Not at home and can't test this..

WoW had a format like "|cffFF0000 RED TEXT|rNormal Text" if I recall. Anything in ESO?'"

Edit - Just answered my own question after looking at pChat's source...
Forum: General Authoring Discussion 04/02/14, 05:51 PM
Replies: 4
Views: 3,893
Posted By Dio
I can't test as I'm at work, but this is...

I can't test as I'm at work, but this is something I've also thought about. I like the idea of an AddOns submenu, even broken down by category.

Maybe something LibAddonMenu could consider if it...
Forum: General Authoring Discussion 04/01/14, 09:31 PM
Replies: 9
Views: 12,065
Posted By Dio
Tip - Found an asychronous timer function.

zo_callLater takes two arguments, in order: function, and delay in milliseconds. (LIke setTimeout in JavaScript)

Example:


/script zo_callLater(function() d("5 seconds have past!") end,...
Forum: Lua/XML Help 03/30/14, 10:17 PM
Replies: 2
Views: 3,939
Posted By Dio
Thanks again Seerah, you seem to know everything!...

Thanks again Seerah, you seem to know everything! I don't see GetAddOnManager() documented anywhere, how did you find it? I couldn't find it in Zgoo either.
Showing results 1 to 25 of 29