Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 344
Search took 0.02 seconds.
Search: Posts Made By: Vrul
Forum: Lua/XML Help 04-06-20, 04:32 PM
Replies: 11
Views: 509
Posted By Vrul
Think of your file as one large function. The...

Think of your file as one large function. The do...end block creates a new scope. That allows everything in that scope to see everything before it and globals but nothing outside of it can see or...
Forum: Lua/XML Help 04-02-20, 11:54 PM
Replies: 11
Views: 509
Posted By Vrul
You have a scope problem. The values of the...

You have a scope problem. The values of the variables inside the function you pass to C_Timer.After are still being modified by the main for-loop. You need to make local copies of each one used so...
Forum: Lua/XML Help 03-31-20, 08:21 AM
Replies: 15
Views: 404
Posted By Vrul
Both regions are sharing a layer so you need to...

Both regions are sharing a layer so you need to make sure the subLevel of your new texture is greater than the other:

local layer, subLevel =...
Forum: Lua/XML Help 03-31-20, 06:59 AM
Replies: 15
Views: 404
Posted By Vrul
The region method SetDrawLayer...

The region method SetDrawLayer (https://wow.gamepedia.com/API_LayeredRegion_SetDrawLayer) is what you want to use.
Forum: Lua/XML Help 03-28-20, 06:26 PM
Replies: 15
Views: 404
Posted By Vrul
For your example you would...

For your example you would use:

myFrame.NineSlice.TopRightCorner:SetTexture("Interface\\FrameGeneral\\UIFrameMetal")
myFrame.NineSlice.TopRightCorner:SetTexCoord(0/512, 133/512, 269/512, 401/512)

I...
Forum: Lua/XML Help 03-28-20, 05:38 PM
Replies: 15
Views: 404
Posted By Vrul
Or you would open it in an image editor and count...

Or you would open it in an image editor and count pixels to calculate the coords as they are in percentages of the image's dimensions.
Forum: Lua/XML Help 03-28-20, 02:26 PM
Replies: 15
Views: 404
Posted By Vrul
I would resize the bottom corners and not hide...

I would resize the bottom corners and not hide the edges:

local myFrame = CreateFrame("Frame", "myFrame", UIparent,...
Forum: Lua/XML Help 03-26-20, 07:06 AM
Replies: 6
Views: 259
Posted By Vrul
Same deal, adjust SetTexCoord arguments until it...

Same deal, adjust SetTexCoord arguments until it looks ok:

local myButton = CreateFrame("Button", nil,...
Forum: Lua/XML Help 03-26-20, 05:39 AM
Replies: 6
Views: 259
Posted By Vrul
I'd say mess with SetTexCoord until it looks...

I'd say mess with SetTexCoord until it looks ok:

local myButton = CreateFrame("Button", nil,...
Forum: Lua/XML Help 03-26-20, 05:12 AM
Replies: 6
Views: 259
Posted By Vrul
There are methods for button objects that seem...

There are methods for button objects that seem they would achieve this (never used them myself):
SetNormalAtlas
SetPushedAtlas
SetDisabledAtlas
SetHighlightAtlas
Forum: Lua/XML Help 03-19-20, 07:44 PM
Replies: 15
Views: 490
Posted By Vrul
Yeah, change it to this: OnLeave =...

Yeah, change it to this:

OnLeave = function(self, motion)
print("Leaving/Hiding broker frame")
if tooltip and not tooltip:IsMouseOver() then
tooltip:Release()
...
Forum: Lua/XML Help 03-19-20, 06:12 PM
Replies: 15
Views: 490
Posted By Vrul
Try getting rid of the code within the data...

Try getting rid of the code within the data broker OnLeave script. Maybe Chocolate bar doesn't pass the motion argument and that is the issue.
Forum: Lua/XML Help 03-19-20, 05:43 PM
Replies: 15
Views: 490
Posted By Vrul
If you copied the code exactly I don't see why it...

If you copied the code exactly I don't see why it wouldn't work as it works fine for me.
Forum: Lua/XML Help 03-19-20, 04:23 PM
Replies: 15
Views: 490
Posted By Vrul
You are setting an OnLeave script for the tooltip...

You are setting an OnLeave script for the tooltip which is triggered by the OnEnter script within the tooltip. You want to set an OnRelease handler instead:

local ADDON = ...

local tooltip

local...
Forum: Lua/XML Help 02-11-20, 07:20 PM
Replies: 9
Views: 442
Posted By Vrul
I used Output Search...

I used Output Search (https://www.wowinterface.com/downloads/info24041-OutputSearch.html) to look for functions in Minimap to see what was available. I entered "^set" in the search field to narrow...
Forum: Lua/XML Help 02-11-20, 05:44 PM
Replies: 9
Views: 442
Posted By Vrul
I believe direct access to the minimap player...

I believe direct access to the minimap player arrow was removed in an effort to restrict raid assist addons. But to answer your question:

Minimap:SetPlayerTexture("")
Forum: AddOn Help/Support 01-30-20, 07:06 AM
Replies: 16
Views: 1,043
Posted By Vrul
The event is "ADDON_LOADED" and the name of the...

The event is "ADDON_LOADED" and the name of the addon that just loaded would be "Blizzard_AzeriteEssenceUI"

local EventFrame = CreateFrame('Frame', nil, UIParent)
...
Forum: Macro Help 01-19-20, 05:06 AM
Replies: 3
Views: 384
Posted By Vrul
I think this is what you want: /run for...

I think this is what you want:

/run for i=1,MAX_ARENA_ENEMIES do local f=_G["ArenaEnemyFrame"..i];local c=f.CC;c:ClearAllPoints();c:SetPoint("LEFT",f,"RIGHT",-2,-2);c:SetSize(30,30)end

Change the...
Forum: Classic - AddOn Search/Requests 01-18-20, 09:53 AM
Replies: 38
Views: 1,622
Posted By Vrul
Add statusText:SetDrawLayer("OVERLAY", 7) after...

Add

statusText:SetDrawLayer("OVERLAY", 7)

after your ClearAllPoints/SetPoint calls

hooksecurefunc("DefaultCompactUnitFrameSetup", function(self)
local fontSize = 12 *...
Forum: Classic - AddOn Search/Requests 01-16-20, 04:37 AM
Replies: 38
Views: 1,622
Posted By Vrul
:ClearAllPoints() should...

:ClearAllPoints()

should be

statusText:ClearAllPoints()
Forum: Classic - AddOn Search/Requests 01-06-20, 08:42 PM
Replies: 38
Views: 1,622
Posted By Vrul
No. The only other option is "THICKOUTLINE" in...

No. The only other option is "THICKOUTLINE" in place of "OUTLINE" which makes is thicker.
Forum: Classic - AddOn Search/Requests 01-06-20, 07:32 PM
Replies: 38
Views: 1,622
Posted By Vrul
Same as...

Same as before:

statusText:SetFont("Fonts\\ARIALN.TTF", fontSize, "OUTLINE")
Forum: Classic - AddOn Search/Requests 01-06-20, 05:42 PM
Replies: 38
Views: 1,622
Posted By Vrul
Give this a...

Give this a shot:

hooksecurefunc("DefaultCompactUnitFrameSetup", function(self)
local fontSize = 16 * min(DefaultCompactUnitFrameSetupOptions.height / 36, DefaultCompactUnitFrameSetupOptions.width...
Forum: Classic - AddOn Search/Requests 01-06-20, 07:03 AM
Replies: 38
Views: 1,622
Posted By Vrul
Try changing the line (before the last...

Try changing the line (before the last change):

statusText:SetFont("Fonts\\ARIALN.TTF", 16)

to:

statusText:SetFont("Fonts\\ARIALN.TTF", 16 * min(DefaultCompactUnitFrameSetupOptions.height / 36,...
Forum: Classic - AddOn Search/Requests 01-05-20, 10:21 PM
Replies: 38
Views: 1,622
Posted By Vrul
Try changing the...

Try changing the line:

statusText:SetFont("Fonts\\ARIALN.TTF", 16)

to:

statusText:SetFont("Fonts\\ARIALN.TTF", 16 * (statusText:GetHeight() or 12) / 12)
Showing results 1 to 25 of 344