Showing results 1 to 25 of 102
Search took 0.00 seconds.
Search: Posts Made By: Sharparam
Forum: General Authoring Discussion 06-15-21, 02:03 AM
Replies: 16
Views: 5,653
Posted By Sharparam
Given this:...

Given this: https://www.devever.net/~hl/freenode_suicide

Maybe it's time to finally do a migration to somewhere else?
Forum: Lua/XML Help 09-20-19, 07:08 AM
Replies: 3
Views: 2,640
Posted By Sharparam
Yes it does. see for example: local tables = { ...

Yes it does. see for example:


local tables = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
}

print(#tables) -- prints "3"
Forum: AddOn Search/Requests 09-06-19, 11:59 AM
Replies: 4
Views: 2,509
Posted By Sharparam
And for getting that look on the action bar...

And for getting that look on the action bar buttons it's likely Masque with the "Zoomed" setting.

https://www.curseforge.com/wow/addons/masque
Forum: General Authoring Discussion 08-02-18, 05:54 PM
Replies: 11
Views: 2,794
Posted By Sharparam
When WoW loads a script file it passes two...

When WoW loads a script file it passes two arguments to it: the name of the addon and a private table you can use to store data in (to use across different files). You save them by reading them from...
Forum: AddOn Help/Support 04-07-15, 12:38 PM
Replies: 36
Views: 32,430
Posted By Sharparam
Not sure how I missed that comment, have replied...

Not sure how I missed that comment, have replied to it now.
Forum: AddOn Help/Support 04-06-15, 05:34 PM
Replies: 36
Views: 32,430
Posted By Sharparam
If you don't mind, could you elaborate on what is...

If you don't mind, could you elaborate on what is buggy or make an issue/ticket? :)
Forum: AddOn Help/Support 12-06-14, 09:13 AM
Replies: 36
Views: 32,430
Posted By Sharparam
That's true. Version v1.1.0 also has improved...

That's true. Version v1.1.0 also has improved status detection. As soon as the bodyguard does something in combat it should detect it and update status accordingly. So it should only return...
Forum: AddOn Help/Support 12-06-14, 06:10 AM
Replies: 36
Views: 32,430
Posted By Sharparam
Nice to see someone making use of the library...

Nice to see someone making use of the library :D

Note that the :Exists() (http://sharpwow.github.io/LibBodyguard-1.0/files/main.html#lib:Exists) method returns true as soon as there's a bodyguard...
Forum: AddOn Help/Support 11-27-14, 02:30 PM
Replies: 36
Views: 32,430
Posted By Sharparam
I might be looking into making a basic addon to...

I might be looking into making a basic addon to track it, it might be decently reliable actually, after advice from #wowuidev.

Maybe a good idea to make it as a library, to open up more...
Forum: AddOn Help/Support 09-27-14, 04:42 AM
Replies: 16
Views: 8,888
Posted By Sharparam
I don't know the specifics of the UI reloading...

I don't know the specifics of the UI reloading process, but I think it's pretty safe to say that the internal functions to reload files are not available to us.
Forum: AddOn Help/Support 09-27-14, 04:04 AM
Replies: 16
Views: 8,888
Posted By Sharparam
In addition to what Rilgamon said, you can avoid...

In addition to what Rilgamon said, you can avoid restarting the entire client (and get away with a /reload command), if the file you want to write to exists in the addon at load time. So you'd have...
Forum: Lua/XML Help 09-14-14, 03:19 AM
Replies: 11
Views: 5,819
Posted By Sharparam
But now that you have an SSD, you need to worry...

But now that you have an SSD, you need to worry about running out of space instead! :)
Forum: Lua/XML Help 09-09-14, 11:14 AM
Replies: 12
Views: 4,969
Posted By Sharparam
It might be worth mentioning they are not exactly...

It might be worth mentioning they are not exactly equivalent (but the cases when they aren't are very rare special cases). As mentioned in a comment to this StackOverflow answer...
Forum: Lua/XML Help 08-27-14, 09:58 AM
Replies: 25
Views: 7,783
Posted By Sharparam
Again, this is related to the scale of an addon....

Again, this is related to the scale of an addon. For small addons with just a file then yes, it's very convoluted and unnecessary, but for larger projects it can be helpful to simply add event...
Forum: Lua/XML Help 08-26-14, 08:53 AM
Replies: 25
Views: 7,783
Posted By Sharparam
Well you'd be right that SetScript isn't a good...

Well you'd be right that SetScript isn't a good name for a method that appends functions to a table I guess. Something I've done recently though, related to that, is having events be dynamically...
Forum: Lua/XML Help 08-25-14, 06:02 PM
Replies: 25
Views: 7,783
Posted By Sharparam
The default frame supports firing custom events...

The default frame supports firing custom events and multiple callback functions?

I suppose naming conventions in projects can have an effect on what the assumed type of an object is, I tend to have...
Forum: Lua/XML Help 08-25-14, 03:12 PM
Replies: 25
Views: 7,783
Posted By Sharparam
One reason could be if you make something that...

One reason could be if you make something that you want to behave like a Frame's event/script system. Say you want custom callbacks for some object you have, like:


local object =...
Forum: Lua/XML Help 08-25-14, 12:30 PM
Replies: 25
Views: 7,783
Posted By Sharparam
Well monkeypatching isn't exactly a good thing...

Well monkeypatching isn't exactly a good thing most of the time is it? :P
Forum: Lua/XML Help 08-25-14, 12:01 PM
Replies: 25
Views: 7,783
Posted By Sharparam
It's still not exactly good practice I'd say to...

It's still not exactly good practice I'd say to just modify a table from CreateFrame with your own methods, at least for addons larger than a single file. I've never really come across a design...
Forum: Lua/XML Help 08-25-14, 09:32 AM
Replies: 25
Views: 7,783
Posted By Sharparam
What I mean is you could have something in your...

What I mean is you could have something in your table named the same as an existing function or value, which means what was previously defined is overwritten with your stuff. That could lead to bugs...
Forum: Lua/XML Help 08-25-14, 08:39 AM
Replies: 25
Views: 7,783
Posted By Sharparam
There can be collisions in key names though,...

There can be collisions in key names though, depending on the AddOn, so I prefer having my AddOn specific code in its own table (the private one passed as an argument to each file).

For a small...
Forum: General Authoring Discussion 08-23-14, 07:14 PM
Replies: 16
Views: 9,315
Posted By Sharparam
Google is a very good place to find information...

Google is a very good place to find information though. There are countless StackOverflow questions/answers for example, which can often help when you are experiencing problems, and the best way to...
Forum: Lua/XML Help 08-21-14, 02:02 PM
Replies: 18
Views: 6,698
Posted By Sharparam
With garbage collection...

With garbage collection disabled:


collectgarbage("stop")

local clock = os.clock

local function func()
return 0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
end
Forum: Lua/XML Help 08-19-14, 02:52 PM
Replies: 18
Views: 6,698
Posted By Sharparam
I'm not sure if there's a performance benefit to...

I'm not sure if there's a performance benefit to declaring those local variables outside of the for loop, as they are reassigned each loop iteration anyway (although I could be wrong). There's also...
Forum: AddOn Search/Requests 08-15-14, 06:19 PM
Replies: 22
Views: 9,337
Posted By Sharparam
Problem is you can end up with a lot of stuff...

Problem is you can end up with a lot of stuff storing data in guild notes that are either incompatible with each other or use up the severely limited space (seriously, why hasn't Blizz given us more...
Showing results 1 to 25 of 102