Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: semlar
Forum: Graphics Help 10-15-17, 10:18 PM
Replies: 23
Views: 731
Posted By semlar
No, none of this is something the average addon...

No, none of this is something the average addon author should even be thinking about.

Unless you have a very compelling reason to ignore the user's UI scale, all you're doing is making your addon...
Forum: Graphics Help 10-12-17, 03:56 PM
Replies: 17
Views: 775
Posted By semlar
A pixel-perfect texture is, by definition, a...

A pixel-perfect texture is, by definition, a specific number of pixels. Every pixel is drawn where it's supposed to be.

You can have a repeating pixel-perfect image, like a 1px border around a...
Forum: Graphics Help 10-11-17, 04:06 PM
Replies: 17
Views: 775
Posted By semlar
While pixel-perfection might be desirable when...

While pixel-perfection might be desirable when trying to draw straight single-pixel borders, it produces hard, jagged lines everywhere else. A pixel-perfect image also can't be scaled, so will end up...
Forum: Graphics Help 10-10-17, 05:27 PM
Replies: 17
Views: 775
Posted By semlar
When I made pixel perfect nameplates some years...

When I made pixel perfect nameplates some years ago, rather than anchor my frame to the existing nameplates I manually calculated their offset relative to the WorldFrame and moved them OnUpdate...
Forum: Graphics Help 10-06-17, 05:22 PM
Replies: 17
Views: 775
Posted By semlar
Fractions get rounded to the nearest pixel, you...

Fractions get rounded to the nearest pixel, you can't draw something halfway between two pixels.

The client has an internal resolution with a height of 768 pixels (width depends on widescreen...
Forum: AddOn Help/Support 09-21-17, 04:55 PM
Replies: 4
Views: 332
Posted By semlar
When you hook a script like...

When you hook a script like GameTooltip:HookScript("OnUpdate"), its cpu usage is not measured correctly, it combines every other piece of code that's run along with the hooked function and counts...
Forum: AddOn Help/Support 09-21-17, 01:11 PM
Replies: 4
Views: 332
Posted By semlar
This appears to actually be something I wrote a...

This appears to actually be something I wrote a few years ago on the official forum (https://us.battle.net/forums/en/wow/topic/14928092809#post-7) to hide the cooldown that shows up on your abilities...
Forum: Lua/XML Help 09-20-17, 01:17 PM
Replies: 4
Views: 249
Posted By semlar
A /reload resets the interface to its initial...

A /reload resets the interface to its initial state; regardless of what your addon does, if you've properly disabled it and reloaded your ui it will not be doing it any more. The only exception to...
Forum: Lua/XML Help 09-19-17, 08:51 PM
Replies: 9
Views: 284
Posted By semlar
This will throw an error if x and y are both nil.

This will throw an error if x and y are both nil.
Forum: General Authoring Discussion 04-25-17, 04:44 PM
Replies: 20
Views: 3,316
Posted By semlar
There are programs that "unlock" the lua...

There are programs that "unlock" the lua environment for the game, allowing you to do things through the addon api that you wouldn't normally be allowed to do.

Since they very clearly have friendly...
Forum: Lua/XML Help 04-19-17, 01:50 PM
Replies: 5
Views: 569
Posted By semlar
Since the UI lists out your currencies on the...

Since the UI lists out your currencies on the vendor frame, you can look at how it does that (https://www.townlong-yak.com/framexml/live/MerchantFrame.lua#817) to get your currency counts.

It calls...
Forum: Lua/XML Help 04-18-17, 03:56 PM
Replies: 5
Views: 569
Posted By semlar
Looks like you can just call...

Looks like you can just call GetMerchantItemCostItem (http://wowprogramming.com/docs/api/GetMerchantItemCostItem) for the item link and then call GetItemCount(itemLink, false, false, true) for your...
Forum: General Authoring Discussion 04-13-17, 04:33 AM
Replies: 2
Views: 524
Posted By semlar
You can call the function PickupSpell(spellID) on...

You can call the function PickupSpell(spellID) on spells that you don't know yet and place them on your action bar, but I believe the game will remove them from your bars when you relog, so you would...
Forum: Lua/XML Help 02-18-17, 11:37 AM
Replies: 17
Views: 1,320
Posted By semlar
How do you intend to handle instances like...

How do you intend to handle instances like Scholomance, which was a classic instance, but recreated in Mists of Pandaria?
Forum: General Authoring Discussion 02-12-17, 06:06 AM
Replies: 2
Views: 447
Posted By semlar
On LOOT_READY you can iterate from 1 to...

On LOOT_READY you can iterate from 1 to GetNumLootItems() and call GetLootSourceInfo(index) to get the GUID of the unit being looted.

If you're looting a chest, the GUID will start with the word...
Forum: AddOn Help/Support 01-30-17, 08:46 AM
Replies: 3
Views: 639
Posted By semlar
/console alwaysCompareItems 0

/console alwaysCompareItems 0
Forum: Wish List 11-19-16, 11:51 AM
Replies: 5
Views: 2,329
Posted By semlar
It sounds like what you want is a function that...

It sounds like what you want is a function that returns a timestamp from a single time server, because different servers aren't necessarily going to be in sync.

You can actually produce a UTC...
Forum: Legion Beta archived threads 11-11-16, 07:30 PM
Replies: 2
Views: 1,315
Posted By semlar
The return values of GetMapOverlayInfo are...

The return values of GetMapOverlayInfo are textureName, textureWidth, textureHeight, offsetX, offsetY, isShownByMouseOver.
Forum: Lua/XML Help 10-23-16, 06:26 PM
Replies: 11
Views: 1,131
Posted By semlar
I made an addon that marked the nearest flight...

I made an addon that marked the nearest flight point with a flashing icon back when legion launched, but it's not always the point that the whistle takes you to. I'm not sure if it's simply due to...
Forum: General Authoring Discussion 10-23-16, 06:12 PM
Replies: 5
Views: 1,160
Posted By semlar
How I did it back on the MoP beta was I made an...

How I did it back on the MoP beta was I made an addon that called GetQuestsCompleted whenever CRITERIA_UPDATE fired, and compared the new table to the previous list of completed quests to see if...
Forum: AddOn Search/Requests 10-12-16, 12:44 PM
Replies: 1
Views: 544
Posted By semlar
This should do it: ManaPercent...

This should do it: ManaPercent (http://www.wowinterface.com/downloads/info24266-ManaPercent.html)
Forum: General Authoring Discussion 09-24-16, 02:02 PM
Replies: 3
Views: 1,619
Posted By semlar
It's a bug. You get the entire results of your...

It's a bug. You get the entire results of your query on one page if you check the "usable" box in the interface.

The "0" that you've replaced "false" with in your query is actually being interpreted...
Forum: Legion Beta archived threads 09-13-16, 11:00 PM
Replies: 3
Views: 886
Posted By semlar
I have more than 400 addons in my addons folder...

I have more than 400 addons in my addons folder so this definitely isn't the problem.

It looks like it attempted to call GetAddOnInfo(0) from your error message.
Forum: Lua/XML Help 08-24-16, 11:50 AM
Replies: 5
Views: 323
Posted By semlar
You aren't actually supposed to include "/cast"...

You aren't actually supposed to include "/cast" in the string you're feeding to SecureCmdOptionParse, just the condition and command.
Forum: General Authoring Discussion 08-11-16, 02:34 AM
Replies: 8
Views: 4,618
Posted By semlar
The "zone ID" that you're describing is the...

The "zone ID" that you're describing is the second return from GetAreaMapInfo(GetCurrentMapAreaID()).
Showing results 1 to 25 of 500