Showing results 1 to 25 of 500
Search took 0.10 seconds.
Search: Posts Made By: Phanx
Forum: Lua/XML Help Yesterday, 11:09 PM
Replies: 1
Views: 91
Posted By Phanx
If you mean the "5 m" text circled in red, that's...

If you mean the "5 m" text circled in red, that's the PvP timer text, and has nothing to do with the icon. A quick search in PlayerFrame.xml...
Forum: AddOn Search/Requests Yesterday, 11:05 PM
Replies: 3
Views: 253
Posted By Phanx
@Digital_Utopia: OP wants to modify the in-game...

@Digital_Utopia:
OP wants to modify the in-game friends list in World of Warcraft to hide the friends who are only online in the Battle.net app, rather than logged into a game. If you have any...
Forum: Lua/XML Help 04-17-14, 09:05 PM
Replies: 19
Views: 836
Posted By Phanx
Yeah, that's annoying. Imagine that every addon...

Yeah, that's annoying. Imagine that every addon you have installed prints a "welcome" message when you log into the game or reload your UI. If you only use one addon, that might be fine, but I have...
Forum: Lua/XML Help 04-17-14, 08:53 PM
Replies: 4
Views: 229
Posted By Phanx
The only thing you can't do in Lua is create a...

The only thing you can't do in Lua is create a template, but the only thing you need templates for are certain uncommon cases involving very advanced secure frames (unitframe/actionbutton) usage, so...
Forum: Tutorials & Other Helpful Info. 04-16-14, 07:29 PM
Replies: 7
Views: 396
Posted By Phanx
When you can't press Enter in the chat box, that...

When you can't press Enter in the chat box, that means an error is occuring. You should always, always, always have an error display enabled while working with addon code -- it makes debugging so...
Forum: Tutorials & Other Helpful Info. 04-16-14, 07:22 PM
Replies: 7
Views: 396
Posted By Phanx
These all accomplish exactly* the same...

These all accomplish exactly* the same result:

#1

frame:SetScript("OnEvent", function(self, event, ...) print(event) end)


#2

local OnEvent = function(self, event, ...) print(event) end
Forum: Lua/XML Help 04-15-14, 11:22 PM
Replies: 19
Views: 836
Posted By Phanx
Here's a partial rewrite of your...

Here's a partial rewrite of your file:
http://pastebin.com/qL6gijfy

May or may not work as-is, but should give you some ideas on how to clean up the many problems your code. See comments for what I...
Forum: Lua/XML Help 04-15-14, 10:48 PM
Replies: 19
Views: 836
Posted By Phanx
Yep, the problem is exactly what I...

Yep, the problem is exactly what I suspected:


local Stat = CreateFrame('Frame')
Stat:EnableMouse(true)
Stat:SetFrameStrata('BACKGROUND')
Stat:SetFrameLevel(3)

local Text =...
Forum: Lua/XML Help 04-15-14, 05:58 PM
Replies: 13
Views: 438
Posted By Phanx
That said, there's really no reason to meddle...

That said, there's really no reason to meddle with the Blizzard metatable. It's absolutely trivial to add methods to a frame, and you don't have to "replicate" anything; definte each method once, and...
Forum: Lua/XML Help 04-15-14, 03:25 AM
Replies: 5
Views: 301
Posted By Phanx
Well, I don't know about the general idea, but...

Well, I don't know about the general idea, but these parts will definitely not work while in combat. You will get "action blocked" errors and the default action bars may even stop...
Forum: Lua/XML Help 04-14-14, 08:07 PM
Replies: 19
Views: 836
Posted By Phanx
That would indicate that your stat frames are not...

That would indicate that your stat frames are not properly parented to the main panel, since when you hide a frame, all of its children are also hidden. Make sure your stat frames are parented to the...
Forum: Lua/XML Help 04-14-14, 05:47 AM
Replies: 8
Views: 533
Posted By Phanx
Please just post your entire code if you want...

Please just post your entire code if you want help. I started writing up an example for reusing objects, but there's just no way to construct a relevant example when I have no idea what the rest of...
Forum: Lua/XML Help 04-14-14, 05:10 AM
Replies: 1
Views: 83
Posted By Phanx
Not tested at all, but: /run local...

Not tested at all, but:

/run local i,n,t,k,q,_=2835,5 for b=0,4 do for s=1,32 do k=GetContainerItemLink(b,s) if k and k:find(":"..i.."%D") then t=GetItemCount(i) _,q=GetContainerItemInfo(b,s) if...
Forum: AddOn Help/Support 04-14-14, 05:00 AM
Replies: 14
Views: 570
Posted By Phanx
I need the debug messages from when you join an...

I need the debug messages from when you join an arena match, not a regular party. I am not currently able to test anything related to arenas, so I can't do anything further without your (or someone...
Forum: Lua/XML Help 04-13-14, 11:06 PM
Replies: 9
Views: 655
Posted By Phanx
Actually upon further investigation I'm not...

Actually upon further investigation I'm not really sure what your goal with this code is. Nothing in the Blizzard UI ever changes these textures after creation, so after (for example) you target a...
Forum: Lua/XML Help 04-13-14, 07:29 PM
Replies: 19
Views: 836
Posted By Phanx
All of these lines will break the default UI and...

All of these lines will break the default UI and spam you with "action blocked" errors:


MainMenuBar.ClearAllPoints = bottom
MainMenuBar.SetPoint = bottom

OverrideActionBar.ClearAllPoints = bottom...
Forum: AddOn Help/Support 04-13-14, 07:18 PM
Replies: 10
Views: 309
Posted By Phanx
I just did the same thing in GIMP so I could give...

I just did the same thing in GIMP so I could give you the steps; it's pretty straightforward.

1. Open the image.
2. Use the normal rectangular selection tool to draw a box around the wing.
3. Image...
Forum: Lua/XML Help 04-12-14, 05:09 AM
Replies: 2
Views: 221
Posted By Phanx
Easiest method: local displayString =...

Easiest method:
local displayString = BreakUpLargeNumbers(someHugeNumber)

Example:
print(BreakUpLargeNumbers(12345678)) => 12,345,678
Forum: AddOn Help/Support 04-11-14, 07:23 PM
Replies: 14
Views: 570
Posted By Phanx
Yes, that's what it's supposed to do... I thought...

Yes, that's what it's supposed to do... I thought you wanted class names on classic party frames?



I'm not really sure how that can happen... the two functions being hooked are literally the only...
Forum: AddOn Help/Support 04-10-14, 05:16 PM
Replies: 14
Views: 570
Posted By Phanx
Add this at the...

Add this at the end:


hooksecurefunc("UnitFrame_OnEvent", function(frame, event, unit)
if frame.name and event == "UNIT_NAME_UPDATE" and unit == frame.unit then
if UnitPlayerControlled(unit) and...
Forum: AddOn Help/Support 04-10-14, 12:40 AM
Replies: 14
Views: 570
Posted By Phanx
No. UNKNOWN is a Blizzard global string,...

No. UNKNOWN is a Blizzard global string, containing the appropriately translated version of the word "Unknown" for the user's current locale.
Forum: AddOn Help/Support 04-09-14, 06:49 PM
Replies: 14
Views: 570
Posted By Phanx
Now ignores NPCs and enemy players/pets, and...

Now ignores NPCs and enemy players/pets, and won't error on partially-loaded units (eg. players in the process of joining your group). Let me know if you're actually seeing "UNKNOWN" on frames and,...
Forum: AddOn Help/Support 04-09-14, 06:40 PM
Replies: 2
Views: 182
Posted By Phanx
There's no limitation (other than screen space)...

There's no limitation (other than screen space) to how much information you can add to a tooltip. If the information is available to addons, you can add it to a tooltip.

That said, there are already...
Forum: AddOn Help/Support 04-09-14, 07:07 AM
Replies: 23
Views: 1,019
Posted By Phanx
Upon a bit of testing, it looks like mounts do...

Upon a bit of testing, it looks like mounts do not fire combat log events, period. The UNIT_SPELLCAST_SUCCEEDED you see in the event trace window isn't a combat sub-event. It's a whole separate...
Forum: General Authoring Discussion 04-09-14, 05:57 AM
Replies: 9
Views: 619
Posted By Phanx
GetNumLootItems doesn't tell you anything about...

GetNumLootItems doesn't tell you anything about the individual items to be looted; it only tells you how many items to show in the list of items to loot. You can then pass values from 1-n, where n is...
Showing results 1 to 25 of 500