Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Phanx
Forum: Lua/XML Help 11-29-16, 09:29 AM
Replies: 68
Views: 4,396
Posted By Phanx
You need to make sure each table in the chain...

You need to make sure each table in the chain exists, and if it doesn't, you need to create it before you can add values in it:


if not addonDB then
addonDB = {}
end
if not addonDB["chars"]...
Forum: Site help, bugs, suggestions/questions 11-29-16, 09:25 AM
Replies: 4
Views: 672
Posted By Phanx
I'm currently using Vivaldi on Linux Mint...

I'm currently using Vivaldi on Linux Mint (basically Ubuntu). I don't know off the top of my head whether it's pre-selected in Firefox or Opera, the other two browsers installed on my computer, as I...
Forum: Lua/XML Help 11-29-16, 09:20 AM
Replies: 8
Views: 1,005
Posted By Phanx
Flashing every second sounds pretty annoying, and...

Flashing every second sounds pretty annoying, and wouldn't actually communicate any useful information. Generally a UI element should only flash to grab the user's attention. However, if nothing...
Forum: Lua/XML Help 11-29-16, 08:58 AM
Replies: 4
Views: 877
Posted By Phanx
There is no such way. Adding items to unit popup...

There is no such way. Adding items to unit popup menus taints the UI, period.


There are plenty of ways you could achieve that without tainting the popup menu:

Put the toggle button on your list...
Forum: General Authoring Discussion 11-29-16, 08:51 AM
Replies: 6
Views: 1,199
Posted By Phanx
If you know when the event occurs, just type...

If you know when the event occurs, just type "/etrace" soon before it happens to bring up the Blizzard event monitor tool. I'd suggest removing some of the super-spammy events like...
Forum: General Authoring Discussion 11-29-16, 08:49 AM
Replies: 8
Views: 763
Posted By Phanx
The "/etrace" command is built into the game and...

The "/etrace" command is built into the game and provides a graphical interface for monitoring all events. You can easily remove events you're not interested in (eg. CLEU) by clicking the "X" next to...
Forum: Site help, bugs, suggestions/questions 11-29-16, 08:47 AM
Replies: 1
Views: 280
Posted By Phanx
The changelog textbox supports all the same...

The changelog textbox supports all the same formatting as the description textbox; it just doesn't have a formatting toolbar. If you don't know all the BBCode tags, or don't want to type them, you...
Forum: Site help, bugs, suggestions/questions 11-28-16, 04:03 AM
Replies: 4
Views: 672
Posted By Phanx
Insert Link popup shouldn't include http prefix

When clicking the "Insert Link" button on the post formatting toolbar, the JavaScript popup that asks for the link URL is pre-populated with "http://" --- but since that text is not pre-selected,...
Forum: Lua/XML Help 11-28-16, 03:33 AM
Replies: 8
Views: 1,005
Posted By Phanx
Re: Grouping bars Just handle it like any other...

Re: Grouping bars

Just handle it like any other variable-length collection of objects or values.

Creating a bar group:

local barGroup = CreateFrame("Frame", nil, UIParent)
-- add title bar,...
Forum: Lua/XML Help 11-28-16, 02:59 AM
Replies: 4
Views: 877
Posted By Phanx
When asking for help with code, please post your...

When asking for help with code, please post your actual code or at least, if you really insist on writing new code to post as an example, code you've verified actually works. The code you posted (a)...
Forum: Lua/XML Help 11-19-16, 03:03 PM
Replies: 4
Views: 563
Posted By Phanx
What kind of messages? Chat messages from other...

What kind of messages? Chat messages from other players? Chat messages from NPCs? Mail messages? Data messages from addons? Something else?
Forum: Lua/XML Help 11-18-16, 11:47 PM
Replies: 68
Views: 4,396
Posted By Phanx
Depends on what you're counting towards/against,...

Depends on what you're counting towards/against, I guess.
Forum: Lua/XML Help 11-17-16, 11:39 PM
Replies: 68
Views: 4,396
Posted By Phanx
Not quite true -- it's applicable to other...

Not quite true -- it's applicable to other languages that don't have a ternary syntax (or at least a sensible one) like Python. Also, even for languages that do have some kind of (sensible) ternary...
Forum: Lua/XML Help 11-17-16, 11:22 PM
Replies: 9
Views: 861
Posted By Phanx
I'd suggest looking at some documentation for the...

I'd suggest looking at some documentation for the WoW API functions you are using. The Get/SetCVar functions can only be used to look up and set specific built-in game options. They have nothing to...
Forum: General Authoring Discussion 11-17-16, 11:13 PM
Replies: 1
Views: 664
Posted By Phanx
You can find a list of all the mount journal...

You can find a list of all the mount journal functions (and API functions in general) here:
http://wow.gamepedia.com/World_of_Warcraft_API#Mount_Journal_Functions

In particular, you summon a mount...
Forum: Lua/XML Help 11-13-16, 10:39 AM
Replies: 68
Views: 4,396
Posted By Phanx
Not specifically related to anything, but...

Not specifically related to anything, but another, less verbose way to do that would be:


MainFrame:SetShown(not not itemid); -- Typecast to boolean
Forum: AddOn Search/Requests 11-13-16, 10:27 AM
Replies: 2
Views: 754
Posted By Phanx
Can you be more specific about what you want? Is...

Can you be more specific about what you want? Is there just one item you want to be notified about, or a list of specific items, or any items that have certain properties (eg. all armor items, all...
Forum: General Authoring Discussion 11-13-16, 10:23 AM
Replies: 4
Views: 1,215
Posted By Phanx
I'd imagine reparenting the button (eg. to...

I'd imagine reparenting the button (eg. to UIParent) and overwriting any world map functions that refer to it (with versions where those references have been removed) would do the trick.
Forum: Lua/XML Help 11-13-16, 10:20 AM
Replies: 11
Views: 8,602
Posted By Phanx
Can you post your entire, actual code please? If...

Can you post your entire, actual code please? If you're hooking ActionButton_UpdateHotkeys, you do not need to manually look up the hotkey for the button -- just look at and modify the text the...
Forum: Lua/XML Help 11-13-16, 10:07 AM
Replies: 4
Views: 872
Posted By Phanx
You should be aware that the player's GUID is not...

You should be aware that the player's GUID is not available in the main chunk on a fresh login. The code you posted will work when reloading the UI, but won't work on a fresh login. The PlayerGUID...
Forum: AddOn Search/Requests 11-13-16, 09:44 AM
Replies: 2
Views: 834
Posted By Phanx
https://www.wowinterface.com/downloads/info4538-Ba...

https://www.wowinterface.com/downloads/info4538-Badapples.html ?
Forum: AddOn Search/Requests 11-13-16, 09:24 AM
Replies: 4
Views: 632
Posted By Phanx
You should probably also read the sticky thread...

You should probably also read the sticky thread in this forum:

Things Addons/Macros Can't Do (https://www.wowinterface.com/forums/showthread.php?t=42367)
Forum: General Authoring Discussion 11-13-16, 09:22 AM
Replies: 4
Views: 563
Posted By Phanx
The specific example you mentioned -- SetParent...

The specific example you mentioned -- SetParent before SetPoint -- is the only one I can think of where the order might matter, but you can easily make the order of those two not matter by specifying...
Forum: oUF (Otravi Unit Frames) 11-07-16, 05:15 AM
Replies: 2
Views: 871
Posted By Phanx
The simplest way would be to spawn 3 different...

The simplest way would be to spawn 3 different headers, one for each group type, and use a visibility conditional on each one so that it was only shown in the desired group type.

For...
Forum: oUF (Otravi Unit Frames) 11-04-16, 11:41 PM
Replies: 2
Views: 914
Posted By Phanx
Instead of removing the filter function, you need...

Instead of removing the filter function, you need to change the filter function so that instead of "hide unless it meets these conditions" it does "show unless it meets these conditions".
Showing results 1 to 25 of 500