Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: semlar
Forum: Lua/XML Help Yesterday, 09:10 AM
Replies: 3
Views: 244
Posted By semlar
local function OnLeave() if not...

local function OnLeave()
if not Minimap:IsMouseOver() and not MiniMapTrackingButton:IsMouseOver() then
MiniMapTrackingButton:Hide()
end
end

Minimap:HookScript('OnEnter', function()...
Forum: Wish List 09-24-14, 08:01 PM
Replies: 4
Views: 1,160
Posted By semlar
You only need to call it if you didn't actually...

You only need to call it if you didn't actually witness the summoning event so it shouldn't be that bad, but it is relatively costly to do that kind of pattern matching.

Looping over the raid names...
Forum: Wish List 09-24-14, 06:05 PM
Replies: 4
Views: 1,160
Posted By semlar
In the meantime, you can try something like this...

In the meantime, you can try something like this if you encounter a guardian without witnessing its creation.
local tip = CreateFrame('GameTooltip', 'GuardianOwnerTooltip', nil,...
Forum: AddOn Help/Support 09-22-14, 06:20 PM
Replies: 13
Views: 860
Posted By semlar
http://i.imgur.com/OCZjl6u.png Border in red is...

http://i.imgur.com/OCZjl6u.png
Border in red is the backdrop on EasyMarkerFrame, you're seeing a 2px border on top because your first button is anchored 1px above the top edge of the container.
Forum: AddOn Help/Support 09-22-14, 05:06 PM
Replies: 13
Views: 860
Posted By semlar
If your buttons have a 1px border, and the...

If your buttons have a 1px border, and the container has a 1px border, then it's possible that your first button is being anchored below the top edge of the container.
Forum: AddOn Help/Support 09-22-14, 03:57 PM
Replies: 11
Views: 321
Posted By semlar
You can try this, but I'm going to let you figure...

You can try this, but I'm going to let you figure out if something is wrong with it because I don't have any quests with optional rewards.
hooksecurefunc('QuestInfo_GetRewardButton',...
Forum: AddOn Help/Support 09-22-14, 02:09 PM
Replies: 11
Views: 321
Posted By semlar
You have your text-coloring part outside of your...

You have your text-coloring part outside of your for loops.

Actually this won't work at all because you're looping over all of the rewards but not referencing any buttons except the one being fed to...
Forum: AddOn Help/Support 09-22-14, 01:11 PM
Replies: 11
Views: 321
Posted By semlar
Rather than qinfo.type, just use the strings...

Rather than qinfo.type, just use the strings 'choice' and 'reward' because the type won't be set when QuestInfo_GetRewardButton is called.
Forum: Lua/XML Help 09-22-14, 10:19 AM
Replies: 7
Views: 625
Posted By semlar
Find a round texture to use with...

Find a round texture to use with cooldown:SetSwipeTexture.

The swipe texture isn't round on live, its corners are just being covered by the round border. It's not actually possible to create a round...
Forum: AddOn Help/Support 09-22-14, 10:00 AM
Replies: 11
Views: 321
Posted By semlar
I don't believe that these are "choices" (you...

I don't believe that these are "choices" (you don't pick one of these rewards, you just get them).

Therefor you should also be iterating over GetNumQuestRewards() / GetNumQuestLogRewards() to color...
Forum: WoD Beta API and Graphics Changes 09-21-14, 12:16 PM
Replies: 3
Views: 272
Posted By semlar
I only know that it relies on the map through...

I only know that it relies on the map through experimentation when I was working on an addon that used encounter journal functions.

I tried a few maps without EJ bosses on them and they all return 0...
Forum: WoD Beta API and Graphics Changes 09-21-14, 10:23 AM
Replies: 3
Views: 272
Posted By semlar
EJ_GetCurrentInstance relies on what the world...

EJ_GetCurrentInstance relies on what the world map is set to, you may have to call SetMapToCurrentZone() beforehand for accurate results.
Forum: Lua/XML Help 09-20-14, 07:06 PM
Replies: 7
Views: 625
Posted By semlar
Don't quote me on this, but you might try...

Don't quote me on this, but you might try something like this..
for i = 1, 6 do
local cooldown = _G['RuneButtonIndividual' .. i .. 'Cooldown']
cooldown:SetSwipeTexture('', 0, 0, 0, RHaoc)
local...
Forum: WoD Beta API and Graphics Changes 09-19-14, 10:10 AM
Replies: 39
Views: 4,407
Posted By semlar
No, it's not a new function. It's been in the...

No, it's not a new function. It's been in the game since at least the time they added the timeless isles.

Go try it on live.
Forum: AddOn Help/Support 09-19-14, 09:14 AM
Replies: 9
Views: 497
Posted By semlar
No, phanx is telling you to stop creating new...

No, phanx is telling you to stop creating new font strings on top of the old ones every time you want to update the text.

She gave you an example and you put the entire thing inside of a function...
Forum: WoD Beta API and Graphics Changes 09-19-14, 08:46 AM
Replies: 39
Views: 4,407
Posted By semlar
GetWorldLocFromMapPos is not a new function, it...

GetWorldLocFromMapPos is not a new function, it took the output from GetPlayerMapPosition and converted it to instance coordinates (and wasn't reliable enough to use).
Forum: Lua/XML Help 09-18-14, 06:19 PM
Replies: 3
Views: 183
Posted By semlar
You can try this, it's dry-coded so I might have...

You can try this, it's dry-coded so I might have missed something.
local ClassIcons = { -- [class] = raid target index
ROGUE = 1,
DRUID = 2,
WARLOCK = 3,
PALADIN = 3,
HUNTER = 4,
MONK =...
Forum: Lua/XML Help 09-18-14, 03:45 PM
Replies: 3
Views: 183
Posted By semlar
Calling SetRaidTarget on a unit that already has...

Calling SetRaidTarget on a unit that already has that particular icon above its head will clear its icon.

You can check whether it already has an icon set using GetRaidTargetIndex(unit), and if the...
Forum: Lua/XML Help 09-16-14, 10:41 AM
Replies: 17
Views: 930
Posted By semlar
Your key is called "fill" (orb.fill) and is...

Your key is called "fill" (orb.fill) and is case-sensitive, have you tried that?
Forum: AddOn Help/Support 09-16-14, 10:35 AM
Replies: 6
Views: 201
Posted By semlar
Alright, I am able to reproduce this and it...

Alright, I am able to reproduce this and it appears to be the same bug that I've previously run into with font strings inside of scrollframes, but I didn't know it also affected buttons.

This is a...
Forum: Lua/XML Help 09-16-14, 09:48 AM
Replies: 17
Views: 930
Posted By semlar
"key" refers to the name of the key in the table....

"key" refers to the name of the key in the table. "glow" is the key in "orb.glow"
Forum: AddOn Help/Support 09-16-14, 09:30 AM
Replies: 6
Views: 201
Posted By semlar
You can try changing the y offset to -10.5 and...

You can try changing the y offset to -10.5 and seeing if that makes any difference, but it's bizarre that you would have two identical buttons and only one of them is moving.

What happens if you...
Forum: AddOn Help/Support 09-16-14, 08:48 AM
Replies: 6
Views: 201
Posted By semlar
I'm not sure how you're generating the offsets...

I'm not sure how you're generating the offsets for the buttons, but it would appear that you're getting a different result for the Open and Close buttons because only one of them is being affected by...
Forum: AddOn Help/Support 09-16-14, 08:13 AM
Replies: 11
Views: 461
Posted By semlar
You can't really use timer functions to update...

You can't really use timer functions to update things like a castbar because the state of a cast can change (pushback, interrupts, etc.) and you want it updating its display every frame...
Forum: RealUI 09-15-14, 08:18 AM
Replies: 6
Views: 461
Posted By semlar
Tabbing out of the game should have no effect on...

Tabbing out of the game should have no effect on the addon loading process at all, so you're describing a fairly bizarre symptom.

It's possible that a poorly written addon is expecting events to...
Showing results 1 to 25 of 500