Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 245
Search took 0.01 seconds.
Search: Posts Made By: Vrul
Forum: PTR General Discussion 06-17-18, 09:37 AM
Replies: 3
Views: 266
Posted By Vrul
I wasted several hours on it myself before I...

I wasted several hours on it myself before I found that method.
Forum: PTR General Discussion 06-17-18, 09:25 AM
Replies: 3
Views: 266
Posted By Vrul
Blizzard actually did all the work: local x, y =...

Blizzard actually did all the work:

local x, y = WorldMapFrame.ScrollContainer:GetNormalizedCursorPosition()

That will return the x, y coordinates taking into account map zoom, pan, etc...

Just...
Forum: Lua/XML Help 05-27-18, 12:49 PM
Replies: 6
Views: 294
Posted By Vrul
SetCVar (https://wow.gamepedia.com/API_SetCVar)...

SetCVar (https://wow.gamepedia.com/API_SetCVar) has a third parameter that is used to trigger the CVAR_UPDATE event and is the value passed as the first arg. So you would want to...
Forum: Lua/XML Help 05-27-18, 05:50 AM
Replies: 5
Views: 313
Posted By Vrul
Not tested but based on that error you could...

Not tested but based on that error you could try:

--[Change Raid Frame OOR Fade/Alpha Transparency]
hooksecurefunc("CompactUnitFrame_UpdateInRange", function(frame)
local inRange, checkedRange =...
Forum: PTR API and Graphics Changes 04-24-18, 06:33 PM
Replies: 51
Views: 5,601
Posted By Vrul
Does anyone know if you can /cast a spell with a...

Does anyone know if you can /cast a spell with a spellID instead of a spellName with Beta?

Also, could anyone tell me if IsHarmfulSpell and IsHelpfulSpell take spellID again or still just spellName?
Forum: AddOn Help/Support 04-01-18, 05:40 PM
Replies: 2
Views: 406
Posted By Vrul
You have to tell your frame what to do when a...

You have to tell your frame what to do when a hyperlink is interacted with by setting the relevant scripts for OnHyperlinkClick, OnHyperlinkEnter, and/or OnHyperlinkLeave. If you want hyperlinks to...
Forum: Lua/XML Help 03-26-18, 05:57 PM
Replies: 7
Views: 615
Posted By Vrul
Maybe, maybe not. Since it is a round texture...

Maybe, maybe not. Since it is a round texture with something close above you may see a portion you don't want since you are basically rotating a square (tex coords) around a circle.

local pi_4 =...
Forum: Lua/XML Help 02-01-18, 10:20 PM
Replies: 10
Views: 655
Posted By Vrul
No. Since the code you've provided is incomplete...

No.

Since the code you've provided is incomplete we are left to guess what is going wrong. Based on what has been provided this code should throw an error:

local function RefreshConfig()
...
Forum: Lua/XML Help 01-29-18, 09:48 PM
Replies: 8
Views: 514
Posted By Vrul
You can run this after your XML: for id = 1,...

You can run this after your XML:

for id = 1, MAX_BOSS_FRAMES do
local frame = _G[("mBoss%uTargetFrame"):format(id)]
if frame then
RegisterStateDriver(frame, "visibility", ("[@boss%u,exists]...
Forum: General Authoring Discussion 12-28-17, 07:02 AM
Replies: 2
Views: 382
Posted By Vrul
By using setmetatable on ChatTypeInfo and setting...

By using setmetatable on ChatTypeInfo and setting the metatable's __index to a table or function. In this case it is a table.

It is the same reason you can iterate over pairs(CreateFrame("Frame"))...
Forum: Lua/XML Help 10-21-17, 02:38 PM
Replies: 12
Views: 784
Posted By Vrul
This may work for you: local modelFrame =...

This may work for you:

local modelFrame = CreateFrame("Frame", nil, UIParent)
modelFrame:SetPoint("Center", - 580, 300)
modelFrame:SetSize(200, 200)

local model = CreateFrame("DressUpModel", nil,...
Forum: Lua/XML Help 06-03-17, 07:10 PM
Replies: 9
Views: 934
Posted By Vrul
If you are using AceConfig to build your options...

If you are using AceConfig to build your options then you can set the number of lines in the declaration:

custom = {
type = 'input',
multiline = 20,
name = "OptionName",
desc = "Option...
Forum: Lua/XML Help 06-03-17, 06:38 AM
Replies: 11
Views: 1,051
Posted By Vrul
That is just the way the SecureStateDriver system...

That is just the way the SecureStateDriver system works. Anything related to certain events will be resolved immediately and everything else is checked every 0.2 seconds. Target changes fall under...
Forum: Lua/XML Help 06-02-17, 06:51 AM
Replies: 11
Views: 1,051
Posted By Vrul
for id = 1, NUM_ACTIONBAR_BUTTONS...

for id = 1, NUM_ACTIONBAR_BUTTONS do
RegisterStateDriver(_G["ActionButton" .. id], "visibility", "[exists] show; hide")
end
RegisterStateDriver(MultiBarBottomLeft, "visibility", "[exists] show;...
Forum: Lua/XML Help 02-08-17, 11:43 PM
Replies: 3
Views: 576
Posted By Vrul
My answer to one of your previous posts...

My answer to one of your previous posts (http://www.wowinterface.com/forums/showthread.php?t=53996) is applicable here as well:

local function ChangeDrawLayer(regionType, oldDrawLayer, newDrawLayer,...
Forum: Lua/XML Help 01-07-17, 02:40 PM
Replies: 7
Views: 1,271
Posted By Vrul
Here is a modified version of your code with the...

Here is a modified version of your code with the OnLeave script fixed. I also changed it to behave and look more like other LDB plugins I've seen.

local ADDON = ...

local fontName, fontHeight,...
Forum: Lua/XML Help 01-04-17, 07:25 PM
Replies: 7
Views: 1,271
Posted By Vrul
Menu:SetScript('OnLeave', Menu.Hide)

Menu:SetScript('OnLeave', Menu.Hide)
Forum: Lua/XML Help 07-24-16, 10:09 AM
Replies: 15
Views: 1,258
Posted By Vrul
I was thinking more along the lines of: local...

I was thinking more along the lines of:

local function ChangeDrawLayer(regionType, oldDrawLayer, newDrawLayer, ...)
for index = 1, select('#', ...) do
local region = select(index, ...)
if...
Forum: Lua/XML Help 07-24-16, 06:45 AM
Replies: 15
Views: 1,258
Posted By Vrul
For frames you use the methods SetFrameLevel...

For frames you use the methods SetFrameLevel (http://wowprogramming.com/docs/widgets/Frame/SetFrameLevel) and SetFrameStrata (http://wowprogramming.com/docs/widgets/Frame/SetFrameStrata) to adjust...
Forum: Legion Beta archived threads 07-24-16, 06:15 AM
Replies: 4
Views: 835
Posted By Vrul
The /run command does just that and runs Lua...

The /run command does just that and runs Lua code. So if you want to run that code in an addon drop the /run and keep the rest.
Forum: Legion Beta archived threads 07-10-16, 08:06 PM
Replies: 3
Views: 1,495
Posted By Vrul
Looks like it is now GetTalentTierInfo. local...

Looks like it is now GetTalentTierInfo.

local talentGroup, talents = GetActiveSpecGroup(), ""
for talentTier = 1, MAX_TALENT_TIERS do
local available, selected = GetTalentTierInfo(talentTier,...
Forum: Legion Beta archived threads 05-23-16, 09:37 PM
Replies: 32
Views: 10,073
Posted By Vrul
Instead of the CVar gxResolution you need to use...

Instead of the CVar gxResolution you need to use this instead:

local monitorIndex = (tonumber(GetCVar('gxMonitor')) or 0) + 1
local resolution = select(GetCurrentResolution(monitorIndex),...
Forum: Lua/XML Help 04-17-16, 12:11 PM
Replies: 11
Views: 2,740
Posted By Vrul
Here's a small bit of code to show the basics of...

Here's a small bit of code to show the basics of what you need:
local function UpdateInstanceInfo()
for index = 1, GetNumRFDungeons() do
local dungeonID = GetRFDungeonInfo(index)
local...
Forum: Lua/XML Help 01-17-15, 01:11 AM
Replies: 31
Views: 8,355
Posted By Vrul
I tried to make it behave as consistently as I...

I tried to make it behave as consistently as I could between the real tooltip and the pseudo-tooltips:

local tooltipForLinkType = {
-- Normal tooltip things:
achievement = ItemRefTooltip,
...
Forum: Lua/XML Help 01-16-15, 10:23 AM
Replies: 31
Views: 8,355
Posted By Vrul
I think the SetItemRef call in OnHyperlinkEnter...

I think the SetItemRef call in OnHyperlinkEnter should be this instead:

SetItemRef(linkData, link, "LeftButton", frame)


Shouldn't that SetItemRef call in OnHyperlinkLeave be this...
Showing results 1 to 25 of 245