Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: semlar
Forum: Lua/XML Help 01-12-18, 09:02 PM
Replies: 6
Views: 229
Posted By semlar
That will only work for units with a valid UnitID...

That will only work for units with a valid UnitID like your target or mouseover.

The closest you can get to tracking what you're in combat with is to monitor the combat log for every hostile...
Forum: AddOn Help/Support 01-11-18, 08:57 PM
Replies: 22
Views: 571
Posted By semlar
Alt-F4ing out of the game does not prevent it...

Alt-F4ing out of the game does not prevent it from writing to the disk before it exits, unless it crashes during the process.
Forum: Lua/XML Help 01-11-18, 02:12 PM
Replies: 67
Views: 19,364
Posted By semlar
Upvaluing globals is a micro-optimization that...

Upvaluing globals is a micro-optimization that you shouldn't bother actively thinking about when you're coding; looking up a variable is very fast and any addon that would see an appreciable...
Forum: AddOn Help/Support 01-11-18, 01:11 PM
Replies: 22
Views: 571
Posted By semlar
If this is the case then loading later in the...

If this is the case then loading later in the loading process won't be enough to really solve this problem.

Since any addon can change any cvar at any point while the game is running, to actually...
Forum: AddOn Help/Support 01-11-18, 11:42 AM
Replies: 22
Views: 571
Posted By semlar
If he decides to disable AIO it won't be...

If he decides to disable AIO it won't be overriding his settings any more. If he sets his cvars through AIO then it won't matter if they override his addon because they'll be the same.

It does not...
Forum: AddOn Help/Support 01-11-18, 11:17 AM
Replies: 22
Views: 571
Posted By semlar
If that were the case, the addon would not need...

If that were the case, the addon would not need to set these cvars when they could be set through AIO, making worrying about the loading process a moot point.
Forum: AddOn Help/Support 01-11-18, 10:19 AM
Replies: 22
Views: 571
Posted By semlar
AIO has an option to "enforce" all cvars that...

AIO has an option to "enforce" all cvars that were set the last time you logged out, so temporary and character-specific cvars get reapplied the next time you log into any character.

It's meant to...
Forum: AddOn Help/Support 12-13-17, 06:19 AM
Replies: 20
Views: 2,042
Posted By semlar
Discord has a more robust chat system, is far...

Discord has a more robust chat system, is far more accessible to new users than IRC, and has a client that was actually designed in this century.

The only thing keeping the IRC chat going right now...
Forum: Graphics Help 10-15-17, 10:18 PM
Replies: 23
Views: 846
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: 907
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: 907
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: 907
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: 907
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: 387
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: 387
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: 298
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: 353
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,568
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: 669
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: 669
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: 552
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,397
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: 466
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: 667
Posted By semlar
/console alwaysCompareItems 0

/console alwaysCompareItems 0
Forum: Wish List 11-19-16, 11:51 AM
Replies: 5
Views: 2,514
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...
Showing results 1 to 25 of 500