Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: Phanx
Forum: Lua/XML Help Yesterday, 05:34 AM
Replies: 4
Views: 175
Posted By Phanx
Without actually testing anything, I'd assume...

Without actually testing anything, I'd assume your problem is related to passing strings -- eg. "263" -- instead of numbers -- eg. 263. Typically anything in the WoW API that asks for any kind of ID...
Forum: Lua/XML Help Yesterday, 02:58 AM
Replies: 4
Views: 175
Posted By Phanx
Post your code.

Post your code.
Forum: Lua/XML Help Yesterday, 02:55 AM
Replies: 31
Views: 1,123
Posted By Phanx
Go install Bugger...

Go install Bugger (http://www.wowinterface.com/downloads/info23144-Bugger.html), or at the very least, turn on the "Display Lua Errors" option under Interface Options > Help. Trying to write an addon...
Forum: Lua/XML Help 11-25-14, 11:50 PM
Replies: 7
Views: 199
Posted By Phanx
Because they're used to programming in some...

Because they're used to programming in some language where semicolons are actually useful/required, and since Lua lets them include such pointless eyesores in their Lua code, they just keep using...
Forum: General Authoring Discussion 11-25-14, 11:47 PM
Replies: 18
Views: 615
Posted By Phanx
It certainly is strange. I can't even imagine...

It certainly is strange. I can't even imagine what kind of idiotic thought process leads someone to explicitly license their work under terms that allow people to fork it, and then years later...
Forum: Lua/XML Help 11-25-14, 08:23 PM
Replies: 31
Views: 1,123
Posted By Phanx
If you're just using one variable per setting...

If you're just using one variable per setting (which is a bad plan if you're going to have more than 2-3 settings, but fine for now) you don't need to do any initialization whatsoever. Just read and...
Forum: General Authoring Discussion 11-25-14, 08:16 PM
Replies: 18
Views: 615
Posted By Phanx
If that was the real motivation behind the...

If that was the real motivation behind the license change, then the author(s) must have been pretty ... well, clueless, is the most polite word I can come up with, to choose an open source license in...
Forum: General Authoring Discussion 11-25-14, 07:03 AM
Replies: 18
Views: 615
Posted By Phanx
Most likely it's a simple error in the structure...

Most likely it's a simple error in the structure of the ZIP file -- it's missing a containing folder, has too many containing folders, includes operating system files like desktop.ini or .DS_Store,...
Forum: Lua/XML Help 11-25-14, 01:59 AM
Replies: 1
Views: 162
Posted By Phanx
1. If you have UI scaling turned on in the System...

1. If you have UI scaling turned on in the System Options panel, turn it off.

2. Make sure your frame is aligned on whole pixels. Only pass integers to SetPoint, and if you drag it around in-game...
Forum: AddOn Help/Support 11-25-14, 01:55 AM
Replies: 2
Views: 214
Posted By Phanx
1. You can't overwrite methods on secure frames,...

1. You can't overwrite methods on secure frames, or you taint the whole thing.

2. Is there some reason why you can't just move it yourself in-game? Right-click, select "Unlock frame", drag to the...
Forum: Lua/XML Help 11-24-14, 08:45 PM
Replies: 9
Views: 316
Posted By Phanx
Let's call your two objects Frame and Button....

Let's call your two objects Frame and Button. When you click on Button, you want to toggle whether Frame is shown or hidden.

To do that, you need to set an OnClick script on Button, that checks...
Forum: Lua/XML Help 11-24-14, 06:47 PM
Replies: 6
Views: 4,614
Posted By Phanx
Please don't quote an entire 100+ line post,...

Please don't quote an entire 100+ line post, especially if it's the last post in the thread. :(



Yes. The defaults are just that -- default values. They should only be used to initialize the db...
Forum: Lua/XML Help 11-24-14, 06:40 PM
Replies: 31
Views: 1,123
Posted By Phanx
XML is just too unpleasant. I'll answer general...

XML is just too unpleasant. I'll answer general questions but I'm just not going to read through or write any specific XML for you, sorry.



Set an OnScript script on the button that checks if the...
Forum: Site help, bugs, suggestions/questions 11-24-14, 06:32 PM
Replies: 2
Views: 164
Posted By Phanx
That feature already exists. Hover over your...

That feature already exists. Hover over your username up in the top right area of the page, click "User Control Panel", click "Edit Options" on the left of the next page, and scroll down to the...
Forum: Lua/XML Help 11-24-14, 06:30 PM
Replies: 3
Views: 173
Posted By Phanx
Also, once you are using AceDB, you should never...

Also, once you are using AceDB, you should never do anything directly with your actual saved variable. If you want to store stuff globally (outside the selected profile) use the "global" namespace of...
Forum: Lua/XML Help 11-23-14, 04:14 AM
Replies: 31
Views: 1,123
Posted By Phanx
The Lua code I posted is a direct conversion of...

The Lua code I posted is a direct conversion of the XML code in your previous post.



You may want to read the Wowpedia page about layers (http://wowpedia.org/Draw_Layer). Draw layers only affect...
Forum: General Authoring Discussion 11-23-14, 01:27 AM
Replies: 2
Views: 233
Posted By Phanx
If you can't use unit tokens (eg. party1) instead...

If you can't use unit tokens (eg. party1) instead of names, then you'd want to register for PLAYER_ENTERING_WORLD and/or ZONE_CHANGED_NEW_AREA and check the return values from GetInstanceInfo to...
Forum: Lua/XML Help 11-23-14, 01:24 AM
Replies: 2
Views: 149
Posted By Phanx
What makes you think that DeclineGroup is "not...

What makes you think that DeclineGroup is "not working" ? If you think that because it's not hiding the invitation popup, you are mistaken -- you need to either hide the popup yourself (declining a...
Forum: Lua/XML Help 11-23-14, 01:20 AM
Replies: 31
Views: 1,123
Posted By Phanx
Unless you're really in love with XML from some...

Unless you're really in love with XML from some prior programming experience, I'd suggest writing your addon in Lua only. It's much less verbose, and reduces the need for you to learn two separate...
Forum: AddOn Search/Requests 11-23-14, 01:17 AM
Replies: 14
Views: 668
Posted By Phanx
While I admit that being a dick can be oh so...

While I admit that being a dick can be oh so satisfying sometimes, in this case it probably would have been better to point out that the frame does need to be hidden because you later set an OnUpdate...
Forum: General Authoring Discussion 11-21-14, 09:46 PM
Replies: 2
Views: 240
Posted By Phanx
Awesome, thanks.

Awesome, thanks.
Forum: Lua/XML Help 11-21-14, 09:20 PM
Replies: 5
Views: 225
Posted By Phanx
I'm not really sure what the purpose of this...

I'm not really sure what the purpose of this question is... if you have an addon that wants to add mailbox icons in Gnomeregan, you'd just have the mapID hardcoded in the addon along with the...
Forum: General Authoring Discussion 11-21-14, 08:13 AM
Replies: 2
Views: 240
Posted By Phanx
WTB instance map IDs for garrisons

I need instance map IDs for all levels of both factions' garrisons. So far I have found (and added to the instanceMapID (http://wowpedia.org/InstanceMapID) page on Wowpedia) the following:


1153 =...
Forum: Lua/XML Help 11-21-14, 04:50 AM
Replies: 12
Views: 398
Posted By Phanx
Regarding the API, it's actually using...

Regarding the API, it's actually using GetUnitPitch (http://wowprogramming.com/docs/api/GetUnitPitch), so it will only work if you don't move the camera from the default "right behind the player,...
Forum: AddOn Help/Support 11-21-14, 02:58 AM
Replies: 3
Views: 168
Posted By Phanx
Well, I don't have time (or interest) to make all...

Well, I don't have time (or interest) to make all the changes for you, but as a general idea you'd need edit the code in Indicators/Bar.lua to:

- act on the frame backdrop color instead of the...
Showing results 1 to 25 of 500