Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 289
Search took 0.02 seconds.
Search: Posts Made By: LudiusMaximus
Forum: General WoW Chat 04-19-22, 05:08 PM
Replies: 3
Views: 1,525
Posted By LudiusMaximus
I'm genuinely excited about this next chapter of...

I'm genuinely excited about this next chapter of WoW!

What do you think will be the implications of the UI overhaul for addon developers?

Will all the old UI textures still be available?
Will an...
Forum: Lua/XML Help 03-10-22, 08:37 AM
Replies: 5
Views: 517
Posted By LudiusMaximus
:) OK, first thing: if you declare a function as...

:)

OK, first thing: if you declare a function as "local", it will only be known within its scope, which is at max the current lua file.

So in Tank.lua, declare the function as:

addonTable.SayHi =...
Forum: Lua/XML Help 03-10-22, 07:34 AM
Replies: 5
Views: 517
Posted By LudiusMaximus
You list all your lua files in your addon's TOC...

You list all your lua files in your addon's TOC file.

Sharing data between your lua files works by putting this at the beginning of every lua file:

local folderName, Addon = ...

The "Addon" table...
Forum: AddOn Help/Support 03-09-22, 01:55 AM
Replies: 15
Views: 2,991
Posted By LudiusMaximus
I just saw this post on the German...

I just saw this post on the German...
Forum: AddOn Search/Requests 12-15-21, 09:24 AM
Replies: 5
Views: 1,319
Posted By LudiusMaximus
You can use /fstack to find out the names of...

You can use /fstack to find out the names of frames. When in the inspection mode, see what happens when you press shift, alt or ctrl while hovering with the cursor over frames. Thus you can find out...
Forum: Lua/XML Help 12-12-21, 05:37 PM
Replies: 3
Views: 984
Posted By LudiusMaximus
GetAllCompletedQuestIDs() but for world quest?

GetAllCompletedQuestIDs() (https://wowpedia.fandom.com/wiki/API_C_QuestLog.GetAllCompletedQuestIDs) returns all completed quests but apparently no world quests.

Is there really no way to find out if...
Forum: AddOn Help/Support 08-28-21, 04:10 PM
Replies: 10
Views: 1,832
Posted By LudiusMaximus
Are you checking which addon is loaded when using...

Are you checking which addon is loaded when using the ADDON_LOADED trigger? Maybe you have to wait for Blizzard_Collections to be loaded, but that's just a very wild guess.

It's difficult to...
Forum: AddOn Help/Support 08-27-21, 01:36 PM
Replies: 10
Views: 1,832
Posted By LudiusMaximus
Hi and welcome! :) You could try executing your...

Hi and welcome! :)

You could try executing your code after PLAYER_LOGIN like this:

local startupFrame =...
Forum: Chit-Chat 08-24-21, 11:09 AM
Replies: 2
Views: 5,377
Posted By LudiusMaximus
Welcome! What a nice introduction. :-) Are you...

Welcome! What a nice introduction. :-) Are you (planning on) writing addons yourself?
Forum: Macro Help 07-17-21, 01:47 PM
Replies: 2
Views: 1,814
Posted By LudiusMaximus
I use CopyPasta for...

I use CopyPasta for this:
https://www.wowinterface.com/forums/showthread.php?t=58030
Forum: Site help, bugs, suggestions/questions 06-07-21, 04:29 PM
Replies: 42
Views: 24,630
Posted By LudiusMaximus
Experimenting with my packager I accidentally...

Experimenting with my packager I accidentally kept the "compatible" tag in an upload for https://www.wowinterface.com/downloads/info25216-SellPriceperunitClassic.html leading to the creation of the...
Forum: AddOn Help/Support 04-28-21, 05:04 PM
Replies: 6
Views: 2,411
Posted By LudiusMaximus
Ah, even better! Then definitely go for this: ...

Ah, even better! Then definitely go for this:

local f = CreateFrame("Frame")
f:SetScript("OnEvent", ToggleCalendar)
f:RegisterEvent("PLAYER_LOGIN")
Forum: AddOn Help/Support 04-28-21, 04:45 PM
Replies: 6
Views: 2,411
Posted By LudiusMaximus
Good point! :-) Make it this then: local f =...

Good point! :-) Make it this then:

local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(_, _, isLogin, isReload)
if isLogin or isReload then ToggleCalendar()...
Forum: AddOn Help/Support 04-28-21, 12:59 PM
Replies: 6
Views: 2,411
Posted By LudiusMaximus
local f =...

local f = CreateFrame("Frame")
f:SetScript("OnEvent", ToggleCalendar)
f:RegisterEvent("PLAYER_ENTERING_WORLD")
Forum: Lua/XML Help 04-14-21, 03:31 PM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
That's what I supposed, too. But the...

That's what I supposed, too. But the implementation of AceEvent-3.0.lua is really beyond me...
I cannot spot any point where it would seem to maintain such a table of registered events.

What really...
Forum: Lua/XML Help 04-14-21, 02:37 PM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
That's exactly what DynamicCam allows. Users are...

That's exactly what DynamicCam allows. Users are able to create their own custom situations in which certain camera settings should be applied. This includes the events at which the situation...
Forum: Lua/XML Help 04-12-21, 01:57 PM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
Cool! Thanks to both of you! :-D

Cool! Thanks to both of you! :-D
Forum: Lua/XML Help 04-12-21, 01:47 PM
Replies: 11
Views: 7,094
Posted By LudiusMaximus
In one of my map addons, I did a work around like...

In one of my map addons, I did a work around like this:

-- If you add quest tracker entries, these are tainted until the next /reload.
-- QuestMapFrame_OpenToQuestDetails is called when clicking on...
Forum: Lua/XML Help 04-11-21, 03:12 PM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
What you suggest is a good way to check if an...

What you suggest is a good way to check if an event exists! Do you think it is more efficient than my solution:


if not APIDocumentation then
LoadAddOn("Blizzard_APIDocumentation");
end
local...
Forum: Lua/XML Help 04-10-21, 05:40 AM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
It must be something about pcall() then. Another...

It must be something about pcall() then.
Another even more minimal working example:

local folderName = ...
local myAddon = LibStub("AceAddon-3.0"):NewAddon(folderName, "AceEvent-3.0")

function...
Forum: Lua/XML Help 04-10-21, 03:49 AM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
I found a way to get a list of all events: if...

I found a way to get a list of all events:

if not APIDocumentation then
LoadAddOn("Blizzard_APIDocumentation");
end

local allEvents = APIDocumentation:GetAPITableByTypeName("event")

for k, v in...
Forum: Lua/XML Help 04-10-21, 03:14 AM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
OK, it seems that UnregisterAllEvents() tries to...

OK, it seems that UnregisterAllEvents() tries to unregister every event that was ever given to RegisterEvent(), regardless of whether it is an existing event or not.

So even when a non-existing...
Forum: Lua/XML Help 04-09-21, 05:19 PM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
If nobody has an answer to this strange behaviour...

If nobody has an answer to this strange behaviour of AceEvent-3.0,
maybe someone can tell me how to let my code check itself if an event exists?
Thanks!
Forum: Lua/XML Help 04-08-21, 02:00 PM
Replies: 16
Views: 4,145
Posted By LudiusMaximus
AceEvent-3.0 tricked into registering non-existent events??

In my addon DynamicCam, the user can create custom situations including lists of events when to check the situation conditions.

If the user enters non-existent events, I want to show them my own...
Forum: Lua/XML Help 04-07-21, 12:58 AM
Replies: 6
Views: 1,565
Posted By LudiusMaximus
Right, I ended up doing it like this: local...

Right, I ended up doing it like this:

local scrollBoxWidth = 400
local scrollBoxHeight = 120

local outerFrame = CreateFrame("Frame")
outerFrame:SetSize(scrollBoxWidth + 80, scrollBoxHeight +...
Showing results 1 to 25 of 289