Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 397
Search took 0.02 seconds.
Search: Posts Made By: Vrul
Forum: Lua/XML Help 03-05-21, 01:19 PM
Replies: 10
Views: 914
Posted By Vrul
Most of the extra code is for showing friendly...

Most of the extra code is for showing friendly specs and the arena code has still not been tested:

local addonName = ...

local INSPECT_DELAY = 40

local iconKey = addonName .. "Icon"

local...
Forum: Lua/XML Help 03-02-21, 12:15 AM
Replies: 10
Views: 914
Posted By Vrul
Like I said I don't do arenas so I couldn't test...

Like I said I don't do arenas so I couldn't test that part. I can change it to do the arena opponent specs the original way when I get some time but it may be a few days.
Forum: Lua/XML Help 03-01-21, 07:27 AM
Replies: 10
Views: 914
Posted By Vrul
I don't pvp so I didn't get to test the enemy...

I don't pvp so I didn't get to test the enemy nameplate part but here is a start:

local addonName = ...

local iconKey = addonName .. "Icon"

local GetNamePlateForUnit =...
Forum: Lua/XML Help 02-20-21, 05:41 PM
Replies: 2
Views: 375
Posted By Vrul
NotifyChange is for when something outside of...

NotifyChange is for when something outside of your AceConfig changes a value while the config is open and you want it updated. Changing a setting within AceConfig automatically updates your options....
Forum: Lua/XML Help 02-09-21, 05:33 PM
Replies: 2
Views: 406
Posted By Vrul
IsIgnoringParentAlpha

IsIgnoringParentAlpha
Forum: Lua/XML Help 01-29-21, 07:45 AM
Replies: 2
Views: 735
Posted By Vrul
You are calling checkItemOnCharacterProtectList...

You are calling checkItemOnCharacterProtectList with an itemLink when in the function itself it is expecting an itemID.
Forum: AddOn Help/Support 01-25-21, 05:09 PM
Replies: 7
Views: 926
Posted By Vrul
The OP only wanted commas between numbers...

The OP only wanted commas between numbers removed, not all commas.

Using the OP's sample text:

"The number 45,678 is big, but 1,234 is small."


Kanegasi's result:

"The number 45678 is big, but...
Forum: Lua/XML Help 01-22-21, 12:24 PM
Replies: 4
Views: 1,215
Posted By Vrul
I don't see a way to do it without taint but this...

I don't see a way to do it without taint but this didn't throw any errors the little I tested at a training dummy:

local GetNamePlateForUnit = C_NamePlate.GetNamePlateForUnit
local...
Forum: AddOn Help/Support 01-03-21, 08:09 AM
Replies: 17
Views: 6,230
Posted By Vrul
hooksecurefunc("QuestLogQuests_Update",...

hooksecurefunc("QuestLogQuests_Update", function()
for button in QuestScrollFrame.headerFramePool:EnumerateActive() do
-- button.questLogIndex
button.ButtonText:SetText("My translated...
Forum: AddOn Help/Support 01-02-21, 05:56 PM
Replies: 17
Views: 6,230
Posted By Vrul
hooksecurefunc("QuestLogQuests_Update",...

hooksecurefunc("QuestLogQuests_Update", function()
for button in QuestScrollFrame.headerFramePool:EnumerateActive() do
button.ButtonText:SetText("My translated header")
end
for button in...
Forum: AddOn Help/Support 01-02-21, 11:15 AM
Replies: 17
Views: 6,230
Posted By Vrul
Translated with Google: local objectiveSpecials...

Translated with Google:

local objectiveSpecials = {
ClickComplete = function(fontString)
fontString:SetText("(kliknij, aby zakończyć)") -- (click to complete)
end,

Failed =...
Forum: AddOn Help/Support 01-01-21, 10:33 PM
Replies: 17
Views: 6,230
Posted By Vrul
hooksecurefunc(QUEST_TRACKER_MODULE,...

hooksecurefunc(QUEST_TRACKER_MODULE, "SetBlockHeader", function(self, block)
print("QuestID:", block.id)
print("QuestHeader:", block.HeaderText:GetText())
print("QuestObjectives:")
local...
Forum: Lua/XML Help 12-31-20, 07:47 PM
Replies: 2
Views: 5,594
Posted By Vrul
function ADDITEMTOLISTFUNCTION() if...

function ADDITEMTOLISTFUNCTION()
if GameTooltip:IsShown() then
local _, itemLink = GameTooltip:GetItem()
if itemLink then
local itemID = GetItemInfoFromHyperlink(itemLink)
if itemID...
Forum: Lua/XML Help 12-31-20, 03:24 PM
Replies: 3
Views: 2,010
Posted By Vrul
All of the Set...Texture methods have an...

All of the Set...Texture methods have an equivalent Set...Atlas method so SetNormalAtlas should work as a direct substitution.
Forum: AddOn Help/Support 12-29-20, 05:21 PM
Replies: 17
Views: 6,230
Posted By Vrul
local regions = {...

local regions = { QuestMapFrame.DetailsFrame.RewardsFrame:GetRegions() }
for index = 1, #regions do
local region = regions[index]
if region:GetObjectType() == "FontString" and region:GetText() ==...
Forum: Lua/XML Help 12-29-20, 05:05 PM
Replies: 4
Views: 2,372
Posted By Vrul
Assuming you are not using the passed info table...

Assuming you are not using the passed info table in your other disabled functions (and not using handlers) then you could use:

local function GetInheritedDisabledStatus(info)
local option, options...
Forum: AddOn Help/Support 12-29-20, 02:10 PM
Replies: 17
Views: 6,230
Posted By Vrul
QuestInfoRewardsFrame uses CreateFontStringPool...

QuestInfoRewardsFrame uses CreateFontStringPool for those. You will need to do something like:

for fontString in QuestInfoRewardsFrame.spellHeaderPool:EnumerateActive() do
if fontString:GetText()...
Forum: Lua/XML Help 12-29-20, 11:13 AM
Replies: 5
Views: 2,358
Posted By Vrul
local test = {"one", "two", "three"} for i, v in...

local test = {"one", "two", "three"}

for i, v in pairs(test) do
print(v)
end
Forum: Lua/XML Help 12-20-20, 05:57 PM
Replies: 3
Views: 1,806
Posted By Vrul
Buttons don't have a SetTexture method. You can...

Buttons don't have a SetTexture method. You can only call SetTexture on an actual texture. However, buttons do have SetNormalTexture and SetPushedTexture methods for setting their visuals.
Forum: Lua/XML Help 12-19-20, 11:15 PM
Replies: 5
Views: 2,083
Posted By Vrul
You can default to a class if UnitClass returns...

You can default to a class if UnitClass returns nil:

function()
local _, class = UnitClass("player")
local colors = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class or "PRIEST"]
return colors.r,...
Forum: Lua/XML Help 12-19-20, 07:26 AM
Replies: 19
Views: 8,445
Posted By Vrul
These are the default...

These are the default names:
TopLeftCorner
TopRightCorner
BottomLeftCorner
BottomRightCorner
TopEdge
BottomEdge
LeftEdge
RightEdge
Center
Forum: Lua/XML Help 12-17-20, 12:39 PM
Replies: 7
Views: 2,068
Posted By Vrul
I grouped up duplicates and removed the...

I grouped up duplicates and removed the repetitive stuff ("sounds\\", ".ogg"):

local sounds
if UnitExists("boss1") then
local bossHP = UnitHealth("boss1") / UnitHealthMax("boss1")
if bossHP > 0.8...
Forum: Lua/XML Help 12-14-20, 10:48 PM
Replies: 10
Views: 3,379
Posted By Vrul
You are loading the xml before the lua so the...

You are loading the xml before the lua so the function is set to nil. But do as Kanegasi suggested as there is no point in having a separate xml when you are already doing everything in the lua file...
Forum: Lua/XML Help 12-12-20, 07:10 AM
Replies: 4
Views: 1,577
Posted By Vrul
LALT Cycles highest to lowest RALT Cycles lowest...

LALT Cycles highest to lowest
RALT Cycles lowest to highest
Forum: Lua/XML Help 12-09-20, 06:46 PM
Replies: 9
Views: 3,237
Posted By Vrul
local SPELL_ID = 24275 -- Hammer of Wrath local...

local SPELL_ID = 24275 -- Hammer of Wrath
local SPELL_NAME = GetSpellInfo(SPELL_ID)
local UPDATE_INTERVAL = 0.1

local frame = CreateFrame("Frame", nil, UIParent)
frame:SetPoint("CENTER", UIParent,...
Showing results 1 to 25 of 397