Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.15 seconds.
Search: Posts Made By: SDPhantom
Forum: Lua/XML Help 08-23-17, 09:11 PM
Replies: 4
Views: 399
Posted By SDPhantom
Be aware if you use frame:GetCenter(), the...

Be aware if you use frame:GetCenter(), the numbers you get may be raw coordinates not taking into account UI scaling or anchor offsets. In this case, it's based off the coordinates at the bottom left...
Forum: Lua/XML Help 08-23-17, 04:14 AM
Replies: 4
Views: 399
Posted By SDPhantom
Long story short, the variables don't actually...

Long story short, the variables don't actually store the table itself. They store a pointer that tells Lua where the table data is. This means when the Ace profile changes, dbsetting remains pointing...
Forum: Lua/XML Help 08-09-17, 11:32 PM
Replies: 16
Views: 683
Posted By SDPhantom
What happens add this at the top of the...

What happens add this at the top of the function?
max = max or 0
This will force max to be zero if nil is passed.
Forum: General Authoring Discussion 08-09-17, 11:18 PM
Replies: 1
Views: 306
Posted By SDPhantom
The limitations on secure hooking is actually...

The limitations on secure hooking is actually part of its design. This and the entire taint system was built to stop addons from setting up or executing various automated tasks.
Forum: Lua/XML Help 07-28-17, 02:51 PM
Replies: 15
Views: 465
Posted By SDPhantom
Most character information is ready by the time...

Most character information is ready by the time PLAYER_LOGIN fires. I don't know about these functions specifically though.
Forum: Lua/XML Help 07-28-17, 02:40 PM
Replies: 6
Views: 390
Posted By SDPhantom
Explaining why, {}=={} is not doing anything...

Explaining why, {}=={} is not doing anything special to compare values in tables. What it does is create two completely different tables and compare their pointers. Since they are exactly two...
Forum: Lua/XML Help 07-28-17, 10:19 AM
Replies: 5
Views: 835
Posted By SDPhantom
Blizzard never saw the need for this data to...

Blizzard never saw the need for this data to exist, so they don't give it to us.
Forum: Lua/XML Help 07-28-17, 10:16 AM
Replies: 11
Views: 438
Posted By SDPhantom
The example you provided is for C code. While it...

The example you provided is for C code. While it is possible to emulate this in Lua, the performance impacts of doing so is far different. Not only is Lua code far slower than C, but you don't have...
Forum: Lua/XML Help 07-27-17, 02:39 PM
Replies: 11
Views: 438
Posted By SDPhantom
Trying to track the top X entries would be too...

Trying to track the top X entries would be too much work that would ultimately lead to minuscule if any benefit at all. It's entirely possible that the resulting code would have worse performance. If...
Forum: Lua/XML Help 07-27-17, 06:19 AM
Replies: 11
Views: 438
Posted By SDPhantom
The problem with trying to sort BangCharKills...

The problem with trying to sort BangCharKills directly is that the keys are not numeric. Sorting doesn't work unless they are numeric and sequential. KillSort() returns a sorted list by taking the...
Forum: Lua/XML Help 07-26-17, 07:58 AM
Replies: 11
Views: 438
Posted By SDPhantom
Here's what I came up with. I completely rewrote...

Here's what I came up with. I completely rewrote the sorting algorithm to support names as keys and kill count as values.


local KillSort;-- Function prototype (Any functions defined with this name...
Forum: Macro Help 07-06-17, 05:27 PM
Replies: 4
Views: 399
Posted By SDPhantom
It should also be noted help/harm implies exists....

It should also be noted help/harm implies exists. It's redundant to specify both in a condition.
Forum: Tutorials & Other Helpful Info. 07-03-17, 01:52 PM
Replies: 8
Views: 980
Posted By SDPhantom
There was already a discussion on this. 54784

There was already a discussion on this.
54784
Forum: Lua/XML Help 07-03-17, 01:48 PM
Replies: 3
Views: 365
Posted By SDPhantom
You need a UnitID to be able to get reaction...

You need a UnitID to be able to get reaction colors. I'm guessing since you're using GUID that this is coming from a chat event, which can come from things without valid UnitIDs.
Forum: Lua/XML Help 06-27-17, 04:43 PM
Replies: 12
Views: 498
Posted By SDPhantom
HIGHLIGHT is a special layer that only shows on...

HIGHLIGHT is a special layer that only shows on mouseover. Don't use it unless you need this behavior.
Forum: Macro Help 05-18-17, 08:47 AM
Replies: 7
Views: 501
Posted By SDPhantom
UnitExists("target") should work fine.

UnitExists("target") should work fine.
Forum: AddOn Search/Requests 05-18-17, 07:41 AM
Replies: 14
Views: 921
Posted By SDPhantom
.cmd is technically the extension to use in...

.cmd is technically the extension to use in WinNT-derived (2000, XP, and newer) systems, though .bat still works for legacy support with no real difference between them. The Windows Command interface...
Forum: AddOn Search/Requests 05-17-17, 10:13 AM
Replies: 14
Views: 921
Posted By SDPhantom
In my experience, Blizzard keeps recreating empty...

In my experience, Blizzard keeps recreating empty folders for internal LoD addons, so they shouldn't be marked for deletion. I modified the script I posted earlier to run a regex match and skip...
Forum: AddOn Search/Requests 05-16-17, 10:24 PM
Replies: 14
Views: 921
Posted By SDPhantom
I wrote this Windows Command script a long time...

I wrote this Windows Command script a long time ago to get rid of extraneous backup files and abandoned saved variables.


@echo off
pushd "C:\Program Files (x86)\World of Warcraft\WTF\Account"

del...
Forum: Lua/XML Help 05-12-17, 11:10 AM
Replies: 3
Views: 362
Posted By SDPhantom
You could register an OnDragStop handler to query...

You could register an OnDragStop handler to query :GetCenter() or any combination of the other functions that returns absolute positions in order to reconstruct your anchor(s).
Forum: Lua/XML Help 05-06-17, 10:09 PM
Replies: 1
Views: 301
Posted By SDPhantom
Here's what I've started doing with my number...

Here's what I've started doing with my number displays.

local math_abs=math.abs;
local math_floor=math.floor;
local math_log10=math.log10;
local math_max=math.max;
local tostring=tostring;

local...
Forum: Lua/XML Help 05-06-17, 09:56 PM
Replies: 3
Views: 338
Posted By SDPhantom
From my experience, the countdown text on...

From my experience, the countdown text on cooldown frames is managed by C code and seems to run after OnUpdate, so it isn't actually possible to change the format of it since it's immediately...
Forum: Lua/XML Help 05-04-17, 01:26 AM
Replies: 10
Views: 451
Posted By SDPhantom
Short explanation is this. Defined variables take...

Short explanation is this. Defined variables take up negligible space if any at all. Memory allocation in Lua is centered around values. Variables are just pointers to them in memory. Scoping is a...
Forum: Lua/XML Help 05-04-17, 12:55 AM
Replies: 10
Views: 909
Posted By SDPhantom
Just my two cents in on the topic. With...

Just my two cents in on the topic. With Blizzard's recent obsession over rewriting APIs into returning tables, the inherent problem in doing so is it can easily turn into a memory hog. The two most...
Forum: AddOn Search/Requests 04-12-17, 11:39 PM
Replies: 7
Views: 884
Posted By SDPhantom
In my experience, the game's camera doesn't like...

In my experience, the game's camera doesn't like touch screens. I haven't tested it recently, but the last time I tried to move the camera around using one, it kept spinning out of control.
Showing results 1 to 25 of 500