Forum: AddOn Help/Support
01-03-21, 08:09 AM
|
Replies: 17
Views: 2,871
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: 2,871
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: 2,871
|
Forum: AddOn Help/Support
01-01-21, 10:33 PM
|
Replies: 17
Views: 2,871
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: 824
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: 926
|
Forum: AddOn Help/Support
12-29-20, 05:21 PM
|
Replies: 17
Views: 2,871
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: 1,112
|
Forum: AddOn Help/Support
12-29-20, 02:10 PM
|
Replies: 17
Views: 2,871
|
Forum: Lua/XML Help
12-29-20, 11:13 AM
|
Replies: 5
Views: 1,144
|
Forum: Lua/XML Help
12-20-20, 05:57 PM
|
Replies: 3
Views: 1,322
|
Forum: Lua/XML Help
12-19-20, 11:15 PM
|
Replies: 5
Views: 1,165
|
Forum: Lua/XML Help
12-19-20, 07:26 AM
|
Replies: 19
Views: 6,921
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: 1,163
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: 2,441
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,005
|
Forum: Lua/XML Help
12-09-20, 06:46 PM
|
Replies: 9
Views: 2,279
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,...
|
Forum: Lua/XML Help
12-09-20, 01:32 PM
|
Replies: 9
Views: 2,279
|
Forum: Lua/XML Help
12-05-20, 06:45 PM
|
Replies: 6
Views: 1,685
|
Forum: Lua/XML Help
12-05-20, 04:04 PM
|
Replies: 6
Views: 1,685
That function runs before your code ever has a...
That function runs before your code ever has a chance to hook it.
You need something like:
local function SetIgnoreParentAlpha(_, frame)
frame:SetIgnoreParentAlpha(true)
end
for _, subSystem in...
|
Forum: Lua/XML Help
12-05-20, 03:38 PM
|
Replies: 3
Views: 1,234
I think you can use the id number in place of an...
I think you can use the id number in place of an actual path based on Blizzard's code:
function CreateTextureMarkup(file, fileWidth, fileHeight, width, height, left, right, top, bottom, xOffset,...
|
Forum: Lua/XML Help
12-01-20, 10:08 AM
|
Replies: 2
Views: 1,308
|
Forum: Lua/XML Help
11-30-20, 08:28 AM
|
Replies: 6
Views: 1,695
It is best to look at Blizzard's code ...
It is best to look at Blizzard's code (https://wow.gamepedia.com/Viewing_Blizzard%27s_interface_code)to see what is going on. In this case you have this running OnUpdate:
function...
|
Forum: Lua/XML Help
11-14-20, 07:27 AM
|
Replies: 2
Views: 2,630
|
Forum: AddOn Help/Support
10-29-20, 03:35 PM
|
Replies: 6
Views: 2,824
If you value efficiency over elegance then you...
If you value efficiency over elegance then you want a slightly modified version of what jeruku posted:
function are3EnemiesInRange()
local inRange, nameplates = 0, C_NamePlate.GetNamePlates()
...
|