Showing results 1 to 25 of 202
Search took 0.01 seconds.
Search: Posts Made By: Mayron
Forum: Lua/XML Help 06-26-15, 03:04 AM
Replies: 8
Views: 287
Posted By Mayron
Thanks a lot, especially for the kitty tutorial...

Thanks a lot, especially for the kitty tutorial haha
That helped a lot! I am currently using TexCoords the primitive way so will have to use this to my advantage!
Forum: Lua/XML Help 06-25-15, 07:28 AM
Replies: 8
Views: 287
Posted By Mayron
Interesting stuff. Not completely sure what...

Interesting stuff. Not completely sure what SetAtlas does but I can sort of understand that it links together a new texture with an already made texture? If so, what is the difference between using a...
Forum: Lua/XML Help 06-24-15, 04:21 PM
Replies: 8
Views: 287
Posted By Mayron
Ah you could be right! I'm just going blind and...

Ah you could be right! I'm just going blind and couldn't find the SetMask function for some reason..
Forum: Lua/XML Help 06-24-15, 02:31 PM
Replies: 8
Views: 287
Posted By Mayron
Silly me, there are new functions for textures....

Silly me, there are new functions for textures. The one I needed had the obvious name "SetMask"

Here is a complete list of functions for the texture...
Forum: Lua/XML Help 06-24-15, 02:20 PM
Replies: 8
Views: 287
Posted By Mayron
Cannot SetTexCoord with Masked Texture?

Hi,

I tried using SetTexCoord on a Blizzard texture but I get this Lua error message:
"Cannot set tex coords when texture has mask."

Is this something new with 6.2.0? I can't find a way around...
Forum: Lua/XML Help 06-24-15, 10:43 AM
Replies: 8
Views: 316
Posted By Mayron
I don't think virtual object names are stored in...

I don't think virtual object names are stored in there because I did a test:

In the .toc I had 3 files in this order of execution:

test1.lua
test2.xml
test3.lua

test1.lua had this:
A_GLOBAL_NAME =...
Forum: Lua/XML Help 06-24-15, 08:47 AM
Replies: 8
Views: 316
Posted By Mayron
If you mean you want a way to check whether a...

If you mean you want a way to check whether a global already exists before creating a virtual object with that name then I don't think that's possible in XML but a global template name for a virtual...
Forum: Lua/XML Help 06-24-15, 08:38 AM
Replies: 4
Views: 216
Posted By Mayron
An animation for a frame which when the close...

An animation for a frame which when the close button is pressed it will move up vertically while fading out.
I have created it using the code already posted which works fine except I just couldn't...
Forum: Lua/XML Help 06-23-15, 11:07 AM
Replies: 4
Views: 216
Posted By Mayron
I'm glad I'm not the only one who finds that...

I'm glad I'm not the only one who finds that weird. The argument is in the right place and tried incrementing it to the 3rd argument but that didn't work either. It detects that I am trying to use a...
Forum: Lua/XML Help 06-23-15, 08:05 AM
Replies: 4
Views: 216
Posted By Mayron
Inheriting AnimationGroups?

Hi,

I already posted this on mmo-champion but didn't get a reply (yet) but wish I posted it here...
Forum: Lua/XML Help 06-12-15, 03:01 AM
Replies: 11
Views: 503
Posted By Mayron
Thanks a lot! That Lua.org page just confused me...

Thanks a lot! That Lua.org page just confused me then showing the pairs and ipairs functions as Lua code. I may try the approach you recommended. It sounds much easier :)
Forum: Lua/XML Help 06-11-15, 05:35 PM
Replies: 11
Views: 503
Posted By Mayron
I would have done this but I thought that might...

I would have done this but I thought that might make my AddOn very confusing for others to use in case they wanted to build onto it but that's unlikely. I've made it possible for others to use my API...
Forum: Lua/XML Help 06-11-15, 05:05 PM
Replies: 11
Views: 503
Posted By Mayron
That's where I got confused as according to the...

That's where I got confused as according to the code from lua.org, it shows that the ipairs function (not entirely sure about the pairs function) actually does try to index sometable[n] where n is an...
Forum: Lua/XML Help 06-11-15, 04:59 PM
Replies: 11
Views: 503
Posted By Mayron
Thanks, that pretty much sums up exactly what I'm...

Thanks, that pretty much sums up exactly what I'm trying to do but unfortunately it says:



and doesn't solve this problem which is the same problem I'm having so I assume it's impossible to fix...
Forum: Lua/XML Help 06-11-15, 03:27 PM
Replies: 11
Views: 503
Posted By Mayron
It's hard explaining without showing the real...

It's hard explaining without showing the real code but doesn't the __index method only trigger if it cannot find the value in the normal table and then checks another table (the parent one like...
Forum: Lua/XML Help 06-11-15, 02:05 PM
Replies: 11
Views: 503
Posted By Mayron
Issue with iterating through values with metatables

Hi,

I don't know exactly how the pairs, ipairs, and next iterator functions in Lua work, only what they do but still I thought they have to access index's of a table but they seem to have strange...
Forum: Lua/XML Help 06-10-15, 05:15 PM
Replies: 9
Views: 422
Posted By Mayron
That sounds very similar to how I triggered this....

That sounds very similar to how I triggered this. It seems to be due to an inconsistency between the saved variable stored, and how the addon loads the saved variable just as a wild guess and perhaps...
Forum: Lua/XML Help 06-10-15, 05:07 PM
Replies: 9
Views: 422
Posted By Mayron
Oh that makes sense, I see. In that case I don't...

Oh that makes sense, I see. In that case I don't think that was my problem but the problem seems to have fixed itself but I can't remember what I changed. I don't think I did anything special except...
Forum: Lua/XML Help 06-10-15, 02:12 PM
Replies: 9
Views: 422
Posted By Mayron
I definitely had metatable's in the code before I...

I definitely had metatable's in the code before I deleted the entire body of the file. Somehow something got corrupted in the AddOn's SavedVariable files. A metatable issue could have caused it and...
Forum: Lua/XML Help 06-10-15, 11:07 AM
Replies: 9
Views: 422
Posted By Mayron
Ah I think it maybe to do with the 2 files in the...

Ah I think it maybe to do with the 2 files in the SavedVariables folder (the .lua and .lua.bak ones) because when I deleted them and the system remade them, it fixed the issue and I cannot seem to...
Forum: Lua/XML Help 06-10-15, 10:46 AM
Replies: 9
Views: 422
Posted By Mayron
Quick question on AddOn memory warning

Hi,

I was trying to figure out why I am getting this error:
http://i.imgur.com/sNE1bexm.jpg (http://i.imgur.com/sNE1bex.jpg)

So I tried making my code more efficient with no luck so then I deleted...
Forum: Lua/XML Help 05-11-15, 04:39 PM
Replies: 7
Views: 715
Posted By Mayron
Thanks for the heads up but nope it all seems to...

Thanks for the heads up but nope it all seems to be working perfectly. Testing it thoroughly with no tainting issues :)
Forum: Chit-Chat 05-09-15, 06:08 AM
Replies: 2
Views: 1,643
Posted By Mayron
I would love to see an illustration of the basic...

I would love to see an illustration of the basic concepts behind this. Because I can sort of understand how a street view would be just a basic PDF and maybe chapters are cities and book marking...
Forum: Lua/XML Help 05-08-15, 12:56 PM
Replies: 7
Views: 715
Posted By Mayron
Ah okay, thanks for clearing that up. I ended up...

Ah okay, thanks for clearing that up.

I ended up using OnUpdate because it was more convenient of a solution and used UIFrameFadeIn and UIFrameFadeOut functions rather than an animation since it...
Forum: Lua/XML Help 05-08-15, 06:03 AM
Replies: 7
Views: 715
Posted By Mayron
Thanks for that. That makes a lot of sense. Even...

Thanks for that. That makes a lot of sense. Even if I had something like:

local function someFunc()
self:UpdateCasting()
end

and used

C_Timer.After(0.01, someFunc)
Showing results 1 to 25 of 202