Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: Phanx
Forum: Lua/XML Help Today, 04:55 AM
Replies: 4
Views: 126
Posted By Phanx
It's not possible to create a second minimap. It...

It's not possible to create a second minimap.

It would be possible to create a map using minimap textures, but it wouldn't be able to show minimap blips on it (eg. node tracking), and it would be a...
Forum: Lua/XML Help Today, 02:22 AM
Replies: 38
Views: 1,327
Posted By Phanx
Add this to your TOC file: ## SavedVariables:...

Add this to your TOC file:

## SavedVariables: ZBarConfig

This tells WoW to save the variable named "ZBarConfig" between sessions. If you never create such a variable, the saved value will be nil....
Forum: Lua/XML Help Today, 02:06 AM
Replies: 5
Views: 226
Posted By Phanx
Just add hooks for each function you're...

Just add hooks for each function you're interested in and print the arguments so you can see how the game is using them:

/run hooksecurefunc("GarrisonMissionPage_AddFollower", function(...)...
Forum: Lua/XML Help 11-26-14, 05:34 AM
Replies: 5
Views: 226
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 11-26-14, 02:58 AM
Replies: 5
Views: 226
Posted By Phanx
Post your code.

Post your code.
Forum: Lua/XML Help 11-26-14, 02:55 AM
Replies: 38
Views: 1,327
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: 205
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: 650
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: 38
Views: 1,327
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: 650
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: 650
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: 168
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: 224
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: 323
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,632
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: 38
Views: 1,327
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: 176
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: 178
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: 38
Views: 1,327
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: 239
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: 38
Views: 1,327
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: 680
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: 246
Posted By Phanx
Awesome, thanks.

Awesome, thanks.
Forum: Lua/XML Help 11-21-14, 09:20 PM
Replies: 5
Views: 229
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...
Showing results 1 to 25 of 500